﻿/*
    Futuristic Neon Blue Theme for Motasem Ramadan's Portfolio
    Designed to be integrated with ASP.NET Core MVC (Index.cshtml)
*/

/* --- Global Styles & Background --- */
:root {
    --color-dark: #0a0a1a;
    --color-neon-blue: #00eaff;
    --color-neon-purple: #9900ff;
    --color-text-light: #e0f7fa;
    --color-text-secondary: #a0a0c0;
    --shadow-neon-blue: 0 0 10px var(--color-neon-blue), 0 0 20px var(--color-neon-blue);
    --shadow-neon-purple: 0 0 10px var(--color-neon-purple), 0 0 20px var(--color-neon-purple);
}

body {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll from shadows */
}

.futuristic-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Neon Text Styles --- */
.neon-text {
    color: var(--color-neon-blue);
    text-shadow: var(--shadow-neon-blue);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.neon-subtext {
    color: var(--color-neon-purple);
    text-shadow: var(--shadow-neon-purple);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-top: 50px;
    margin-bottom: 40px;
}

/* --- Hero Section Styling --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    min-height: 500px;
    position: relative;
    /* Background effect to mimic the futuristic city/data stream */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" stop-color="%230a0a1a"/><stop offset="50%" stop-color="%2300eaff" stop-opacity="0.1"/><stop offset="100%" stop-color="%230a0a1a"/></linearGradient></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
    background-repeat: repeat-x;
    background-size: 100% 100%;
}

.hero-text {
    max-width: 50%;
    z-index: 10;
}

    .hero-text h1 {
        font-size: 4em;
        line-height: 1.1;
    }

    .hero-text h2 {
        font-size: 1.5em;
    }

.hero-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.neon-button {
    padding: 12px 25px;
    border: 2px solid var(--color-neon-blue);
    background-color: transparent;
    color: var(--color-neon-blue);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-neon-blue);
    border-radius: 5px;
}

    .neon-button:hover {
        background-color: var(--color-neon-blue);
        color: var(--color-dark);
        text-shadow: none;
        box-shadow: 0 0 5px var(--color-neon-blue), 0 0 15px var(--color-neon-blue), 0 0 25px var(--color-neon-blue);
    }

    .neon-button.secondary {
        border-color: var(--color-neon-purple);
        color: var(--color-neon-purple);
        box-shadow: var(--shadow-neon-purple);
    }

        .neon-button.secondary:hover {
            background-color: var(--color-neon-purple);
            color: var(--color-dark);
            box-shadow: 0 0 5px var(--color-neon-purple), 0 0 15px var(--color-neon-purple), 0 0 25px var(--color-neon-purple);
        }

/* --- Image Container & Profile Image Styling --- */
.hero-image-container {
    position: relative;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 300px; /* Adjust size as needed */
    height: auto;
    border-radius: 5px; /* Change from 50% to 5px for a rectangular frame */
    border: 5px solid var(--color-neon-blue);
    box-shadow: var(--shadow-neon-blue), 0 0 40px var(--color-neon-purple);
    transition: transform 0.5s ease;
    z-index: 10;
    /* FIX: Add a semi-transparent white background to the image container */
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px; /* Add padding to separate image from border */
}

.hero-image-container {
    position: relative;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* FIX: Remove the border/shadow from the image itself and apply it to the container for better control */
    border: 5px solid var(--color-neon-blue);
    box-shadow: var(--shadow-neon-blue), 0 0 40px var(--color-neon-purple);
    border-radius: 5px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
}

.profile-image {
    width: 100%;
    max-width: 300px; /* Adjust size as needed */
    height: auto;
    border-radius: 0; /* Remove border-radius from image */
    border: none; /* Remove border from image */
    box-shadow: none; /* Remove shadow from image */
    transition: transform 0.5s ease;
    z-index: 10;
}

width: 100%;
max-width: 300px; /* Adjust size as needed */
height: auto;
border-radius: 50%; /* For the circular effect in the original design */
border: 5px solid var(--color-neon-blue);
box-shadow: var(--shadow-neon-blue), 0 0 40px var(--color-neon-purple);
transition: transform 0.5s ease;
z-index: 10;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* --- Specializations Section Styling --- */
.specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.spec-card {
    background-color: #1a1a33;
    /* FIX: Increase opacity and visibility of the cards */
    opacity: 1;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.8); /* Increased shadow intensity */
    text-align: center;
    transition: all 0.3s ease;
}

    .spec-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 25px rgba(0, 234, 255, 0.8), 0 0 30px rgba(153, 0, 255, 0.5);
    }

.spec-icon {
    font-size: 3em;
    color: var(--color-neon-blue);
    text-shadow: var(--shadow-neon-blue);
    margin-bottom: 15px;
}

.spec-card:nth-child(2) .spec-icon { /* Highlight Backend with purple */
    color: var(--color-neon-purple);
    text-shadow: var(--shadow-neon-purple);
}

.spec-title {
    font-size: 1.5em;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.spec-details {
    color: var(--color-text-secondary);
    font-size: 0.9em;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }

    .hero-text {
        max-width: 100%;
        order: 2;
    }

        .hero-text h1 {
            font-size: 3em;
        }

    .hero-image-container {
        width: 100%;
        margin-bottom: 30px;
        order: 1;
    }

    .hero-actions {
        justify-content: center;
    }

    .specializations-grid {
        grid-template-columns: 1fr;
    }
}

/* NOTE: To use the icons (fas fa-code, fas fa-server, fas fa-database), 
   you must include the Font Awesome library in your _Layout.cshtml file:
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" />
*/
/* ====== تعديل مظهر الصورة الشخصية (مع الخلفية البيضاء الشفافة والشعار الباهت) ====== */
.profile-container {
    position: relative;
    width: 320px;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* صورة الشعار الخلفية الباهتة */
.logo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08; /* يجعلها باهتة جدًا */
    z-index: 1;
}

/* الخلفية البيضاء الشفافة خلف الصورة */
.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25); /* شفافية خفيفة */
    z-index: 2;
}

/* صورة البروفايل نفسها */
.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.4s ease;
}

    .profile-image:hover {
        transform: scale(1.03);
    }
/* ====== Animation: Fade-in + Glow Zoom for Profile Image ====== */

/* حركة دخول الفريم والصورة */
@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.9);
        box-shadow: none;
    }

    60% {
        opacity: 1;
        transform: scale(1.03);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), 0 0 25px rgba(153, 0, 255, 0.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), 0 0 35px rgba(153, 0, 255, 0.3);
    }
}

/* حركة توهج خفيف مستمر (نبض ناعم) */
@keyframes softGlow {
    0% {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), 0 0 35px rgba(153, 0, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.6), 0 0 50px rgba(153, 0, 255, 0.4);
    }

    100% {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), 0 0 35px rgba(153, 0, 255, 0.3);
    }
}

/* تطبيق الحركات */
.profile-container {
    animation: fadeInZoom 1.2s ease forwards, softGlow 5s ease-in-out infinite alternate;
}

.profile-image {
    animation: fadeInZoom 1.5s ease forwards;
}

