
      :root {
    --primary-color: #ffffff;
    --secondary-color: #a1a1aa;
    --accent-color: #2e3138;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --bg-primary: #21242A;
    --bg-secondary: #2a2d34;
    --bg-card: #2f3239;
    --border-color: #464a52;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #21242A 0%, #2a2d34 100%);
}





      

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background: var(--bg-primary);
            overflow-x: hidden;
            transition: all 0.3s ease;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }



        .logo {
            height: 50px;
            width: auto;
            filter: brightness(0) invert(1);
        }


        .theme-toggle, .lang-toggle {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            cursor: pointer;
            padding: 0.6rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .theme-toggle:hover, .lang-toggle:hover {
            background: var(--accent-color);
            transform: translateY(-1px);
        }

        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
        }

    
        /* Glass Navigation Header */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.nav-menu-ipad{
    display: none;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.contact-btn {
    background: var(--bg-primary);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(33, 36, 42, 0.3);
    text-decoration: none;
}

.contact-btn:hover {
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 36, 42, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    min-height: 178vh;
    border-radius: 40px;
    /* padding: 120px 20px 60px; */
    /* position: relative; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;

}

.hero-container {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    text-align: center;
    display: flex;
    /* gap: 80px; */
    align-items: center;
    justify-content: center;
    flex: 1;
    border-radius: 40px;
}

.hero-background-video {
    position: absolute;
     top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    object-fit: cover; /* This ensures the video covers the entire area */
    z-index: -1;
    border-radius: 40px;

}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-intro {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.greeting {
    font-weight: 500;
}

.location::before {
    content: '|';
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.hero-title {
   
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.creative-text {
    color: #4ADE80;
    display: block;
}

.designer-text,
.developer-text {
    color: #ffffff;
    display: block;
}

.arrow {
    color: #ffffff;
    font-size: 0.6em;
    margin-left: 16px;
    display: inline-block;
    transform: rotate(45deg);
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Hero Visual Elements */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
    position: relative;
}

.profile-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* Curved Portfolio Text */
.portfolio-curve {
    position: absolute;
    top: -20px;
    left: -50px;
    width: 500px;
    height: 200px;
    pointer-events: none;
}

.curve-path {
    width: 100%;
    height: 100%;
}

.curve-text {
    fill: #4ADE80;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: -60px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.scroll-circle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Bottom Section */
.bottom-section {
    margin-top: 120px;
    padding: 0 20px;
}

.bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
}

.bottom-text h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.bottom-text .highlight {
    color: #4ADE80;
}

.bottom-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4ADE80;
    color: #4ADE80;
    transform: translateY(-2px);
}

/* Background Decorative Elements */
.bg-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}


/* Responsive Design */
@media (max-width: 1024px) {
   
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .bottom-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .profile-container {
        width: 300px;
        height: 300px;
    }
    
    .profile-frame {
        width: 220px;
        height: 280px;
    }
}

@media (max-width: 768px) {
  
    .glass-header {
        top: 10px;
        width: calc(100% - 20px);
    }
    
    .nav-container {
        padding: 12px 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        /* padding: 100px 20px 40px; */
    }
    
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: clamp(36px, 10vw, 60px);
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }
    
    .profile-frame {
        width: 180px;
        height: 220px;
    }
    
    .portfolio-curve {
        display: none;
    }
    
    .scroll-indicator {
        position: static;
        justify-content: center;
        margin-top: 40px;
    }
    
    .scroll-text {
        writing-mode: horizontal-tb;
        text-orientation: initial;
    }
    
    .bottom-section {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
   
    .hero-intro {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .location::before {
        display: none;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .bottom-text h2 {
        font-size: clamp(24px, 8vw, 36px);
    }
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-primary);
}

       
        .three-scene {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
            z-index: 2;
            transition: background 0.5s ease;
        }

        

        .hero-card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        padding: 2.5rem 2rem;
        max-width: 540px;
        width: 100%;
        margin: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0.5px rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transform: perspective(1000px) rotateX(6deg);
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .hero-main {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
            margin-bottom: 4rem;
        }

        .hero-text {
            max-width: 800px;
        }

        .hero-quote {
            font-size: 3.5rem;
            font-weight: 300;
            line-height: 1.1;
            margin-bottom: 2rem;
            color: white;
            opacity: 0;
            transform: translateY(50px);
            animation: fadeInUp 1s ease forwards 0.5s;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease forwards 0.7s;
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: white;
            color: #09090b;
            padding: 1rem 2rem;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 1s ease forwards 0.9s;
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
        }

        /* Time Control Panel */
        .time-control {
            position: absolute;
            top: 100px;
            right: 20px;
            z-index: 4;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0;
            transform: translateX(100px);
            animation: slideInRight 1s ease forwards 1.5s;
        }

        .time-display {
            color: white;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            text-align: center;
            font-weight: 500;
        }

        .time-slider {
            width: 150px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            outline: none;
            cursor: pointer;
            margin-bottom: 0.5rem;
        }

        .time-slider::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            background: #00ff88;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 255, 136, 0.3);
        }

        .time-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.6);
        }

        /* Weather Indicator */
        .weather-indicator {
            position: absolute;
            top: 100px;
            left: 20px;
            z-index: 4;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            opacity: 0;
            transform: translateX(-100px);
            animation: slideInLeft 1s ease forwards 1.5s;
        }

        .weather-icon {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .weather-temp {
            font-size: 0.9rem;
            text-align: center;
            font-weight: 500;
        }

        /* Stats Cards */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            opacity: 0;
            transform: translateY(50px);
            animation: fadeInUp 1s ease forwards 1.1s;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.15);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
            animation: shimmer 2s infinite;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            display: block;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-description {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.85rem;
            margin-top: 0.5rem;
        }

        /* Reports Section */
        .reports {
            padding: 8rem 0;
            background: var(--bg-primary);
        }

        /* Why Us section  */
        .why-us-section {
        display: flex;
        padding: 50px;
        /* background-color: white; */
        /* box-shadow: 0 0 30px rgba(0, 0, 0, 0.05); */
        border-radius: 20px;
        max-width: 1200px;
        margin: 60px auto;
        gap: 40px;
        }

        .left-side {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        }

        .left-side .main-image {
        width: 100%;
        height: 100%;
        border-radius: 15px;
        object-fit: cover;
        }

        .left-side .description {
        margin-top: 20px;
        font-size: 16px;
        color: #666;
        }

        .right-side {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
        }

        .images-row {
        display: flex;
        gap: 15px;
        }

        .thumb {
        width: 50%;
        border-radius: 12px;
        object-fit: cover;
        }

        .why-us h3 {
        margin-bottom: 5px;
        }

        .why-us p {
        font-size: 15px;
        color: #555;
        line-height: 1.5;
        }

        .vision {
        margin-top: 10px;
        font-size: 20px;
        color: #555;
        font-weight: bold;
        line-height: 1.4;
        }

        /* Responsive Styles */
        @media (max-width: 768px) {
        .why-us-section {
            flex-direction: column;
            padding: 20px;
            gap: 20px;
        }

        .images-row {
            flex-direction: column;
        }

        .thumb {
            width: 100%;
        }

        .vision {
            font-size: 18px;
        }

        .left-side .description,
        .why-us p {
            font-size: 14px;
        }
        }


        /* About Section */
       /* About Section - Full Screen Video Background */
.about {
    position: relative;
    top: 37px;
    width: 100%;
    height: 90vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
    color: var(--text-primary);
    text-align: left;
    border-radius: 40px;
}

.about-video-background {
    position: absolute;
    top: 37px;
    top: 0;
    left: 0;
    width: 100%;
    height: 86vh;
    object-fit: cover; /* Cover the entire section */
    z-index: -1; /* Send behind content */
    filter: brightness(0.8); /* Darken video for better text readability */
    transition: filter 0.5s ease;
    border-radius: 40px;

}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(9, 9, 11, 0.8) 0%, rgba(9, 9, 11, 0.6) 30%, transparent 70%, transparent 100%);
    z-index: 0;
}

[dir="rtl"] .about-overlay {
    background: linear-gradient(to left, rgba(9, 9, 11, 0.8) 0%, rgba(9, 9, 11, 0.6) 30%, transparent 70%, transparent 100%);
}

.about-content-overlay {
    position: relative;
    z-index: 1;
    padding: 0 5%; /* Add some padding from the sides */
    max-width: 800px; /* Limit content width */
    margin-left: 5%; /* Push content to the left */
}

[dir="rtl"] .about-content-overlay {
    margin-left: auto;
    margin-right: 5%;
}

.about-content-overlay h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--heading-font);
    color: var(--text-primary);
}

.about-content-overlay p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.meet-the-team-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--primary-color);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.meet-the-team-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive adjustments for About section */
@media (max-width: 1024px) {
    .about-content-overlay {
        margin-left: 3%;
        padding: 0 3%;
    }
    
    .about-content-overlay h2 {
        font-size: 3rem;
    }
    
    .about-content-overlay p {
        font-size: 1rem;
    }
    
    .meet-the-team-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .about {
        height: 80vh;
        text-align: center;
        justify-content: center;
    }
    
    .about-content-overlay {
        margin-left: 0;
        padding: 0 5%;
        text-align: center;
    }
    
    .about-content-overlay h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .about-content-overlay p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .about-overlay {
        background: rgba(9, 9, 11, 0.7);
    }

    [dir="rtl"] .about-content-overlay {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .about {
        height: 70vh;
    }
    
    .about-content-overlay h2 {
        font-size: 2rem;
    }
    
    .about-content-overlay p {
        font-size: 0.9rem;
    }
    
    .meet-the-team-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* Ensure scroll-reveal works with new structure */
.about-content-overlay h2.scroll-reveal,
.about-content-overlay p.scroll-reveal,
.meet-the-team-btn.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-content-overlay h2.scroll-reveal.revealed,
.about-content-overlay p.scroll-reveal.revealed,
.meet-the-team-btn.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.about-content-overlay p.scroll-reveal.revealed {
    transition-delay: 0.2s;
}

.meet-the-team-btn.scroll-reveal.revealed {
    transition-delay: 0.4s;
}

/* Team Section Styles - 2 Cards Per Row with Alternating Layout */

/* Team Section */
.team {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    align-items: stretch;
}

/* Left Card - Image Left, Content Right */
.team-card.left-card {
    grid-template-areas: "image content";
}

.team-card.left-card .team-image-container {
    grid-area: image;
}

.team-card.left-card .team-info {
    grid-area: content;
}

/* Right Card - Image Right, Content Left */
.team-card.right-card {
    grid-template-areas: "content image";
}

.team-card.right-card .team-image-container {
    grid-area: image;
}

.team-card.right-card .team-info {
    grid-area: content;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.team-image-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    padding: 2rem;
}

/* Professional Image Styling - Stacked Card Effect */
.team-image {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 8px rgba(255, 255, 255, 0.05),
        0 0 0 16px rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Stacked Card Background Effect */
.team-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    width: 200px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
    transition: all 0.3s ease;
}

.team-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(2deg);
    width: 200px;
    height: 250px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-image {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05) rotate(1deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 8px rgba(255, 255, 255, 0.08),
        0 0 0 16px rgba(255, 255, 255, 0.04);
}

.team-card:hover .team-image-container::before {
    transform: translate(-50%, -50%) rotate(-5deg) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
}

.team-card:hover .team-image-container::after {
    transform: translate(-50%, -50%) rotate(4deg) scale(1.01);
    background: rgba(255, 255, 255, 0.03);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 1rem;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.team-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card);
    position: relative;
}

/* Content Styling */
.team-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.team-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.expertise-tag {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    background: var(--secondary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Professional Card Decorative Elements */
.team-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-info::before {
    opacity: 1;
}

/* Alternating Card Accent Colors */
.team-card:nth-child(odd) .team-info::before {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.team-card:nth-child(even) .team-info::before {
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.team-card:nth-child(odd) .expertise-tag:hover {
    background: #3b82f6;
}

.team-card:nth-child(even) .expertise-tag:hover {
    background: #10b981;
}

/* Team Stats */
.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.team-stat-item {
    text-align: center;
    opacity: 0.3;
    transform: translateY(30px);
}

.team-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design for Team Section */
@media (max-width: 1200px) {
    .team-grid {
        gap: 2rem;
    }
    
    .team-image {
        width: 180px;
        height: 220px;
    }
    
    .team-image-container::before,
    .team-image-container::after {
        width: 180px;
        height: 220px;
    }
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .team-card {
        grid-template-columns: 1fr 1.5fr;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .team-image {
        width: 160px;
        height: 200px;
    }
    
    .team-image-container::before,
    .team-image-container::after {
        width: 160px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .team-card {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "content" !important;
        min-height: auto;
    }
    
    .team-card.left-card,
    .team-card.right-card {
        grid-template-areas: 
            "image"
            "content";
    }
    
    .team-image-container {
        padding: 2rem;
        min-height: 300px;
    }
    
    .team-image {
        width: 200px;
        height: 240px;
    }
    
    .team-image-container::before,
    .team-image-container::after {
        width: 200px;
        height: 240px;
    }
    
    .team-info {
        padding: 2rem;
    }
    
    .team-info h3 {
        font-size: 1.6rem;
    }
    
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .team-image {
        width: 160px;
        height: 200px;
    }
    
    .team-image-container::before,
    .team-image-container::after {
        width: 160px;
        height: 200px;
    }
    
    .team-info {
        padding: 1.5rem;
    }
    
    .team-info h3 {
        font-size: 1.4rem;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .team-description {
        font-size: 0.9rem;
    }
    
    .expertise-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* RTL Support */
[dir="rtl"] .team-card.left-card {
    grid-template-areas: "content image";
}

[dir="rtl"] .team-card.right-card {
    grid-template-areas: "image content";
}

[dir="rtl"] .team-social {
    flex-direction: row-reverse;
}

[dir="rtl"] .team-expertise {
    justify-content: flex-end;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-image,
    .team-image-container::before,
    .team-image-container::after,
    .expertise-tag,
    .meet-the-team-btn {
        transition: none;
    }
    
    .team-card:hover .team-image {
        transform: none;
    }
    
    .team-card:hover .team-image-container::before,
    .team-card:hover .team-image-container::after {
        transform: translate(-50%, -50%);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .team-card {
        border: 2px solid var(--border-color);
    }
    
    .team-image {
        border: 3px solid var(--text-primary);
    }
    
    .expertise-tag {
        border: 2px solid var(--border-color);
    }
    
    .meet-the-team-btn {
        border: 2px solid var(--primary-color);
    }
}

/* Performance Optimizations */
.team-image,
.team-image-container::before,
.team-image-container::after,
.about-video-background {
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}



        /* Team Section */
/* Updated Team Section Styles - 2 Cards Per Row with Alternating Layout */

/* Team Section */
.team {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    align-items: stretch;
}

/* Left Card - Image Left, Content Right */
.team-card.left-card {
    grid-template-areas: "image content";
}

.team-card.left-card .team-image-container {
    grid-area: image;
}

.team-card.left-card .team-info {
    grid-area: content;
}

/* Right Card - Image Right, Content Left */
.team-card.right-card {
    grid-template-areas: "content image";
}

.team-card.right-card .team-image-container {
    grid-area: image;
}

.team-card.right-card .team-info {
    grid-area: content;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.team-image-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    padding: 2rem;
}

/* Professional Image Styling - Stacked Card Effect */
.team-image {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 8px rgba(255, 255, 255, 0.05),
        0 0 0 16px rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Stacked Card Background Effect */
.team-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    width: 200px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
    transition: all 0.3s ease;
}

.team-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(2deg);
    width: 200px;
    height: 250px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-image {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05) rotate(1deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 8px rgba(255, 255, 255, 0.08),
        0 0 0 16px rgba(255, 255, 255, 0.04);
}

.team-card:hover .team-image-container::before {
    transform: translate(-50%, -50%) rotate(-5deg) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
}

.team-card:hover .team-image-container::after {
    transform: translate(-50%, -50%) rotate(4deg) scale(1.01);
    background: rgba(255, 255, 255, 0.03);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 1rem;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.team-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card);
    position: relative;
}

/* Content Styling */
.team-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.team-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.expertise-tag {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    background: var(--secondary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Professional Card Decorative Elements */
.team-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-info::before {
    opacity: 1;
}

/* Alternating Card Accent Colors */
.team-card:nth-child(odd) .team-info::before {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.team-card:nth-child(even) .team-info::before {
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.team-card:nth-child(odd) .expertise-tag:hover {
    background: #3b82f6;
}

.team-card:nth-child(even) .expertise-tag:hover {
    background: #10b981;
}

/* Team Stats */
.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.team-stat-item {
    text-align: center;
    opacity: 0.3;
    transform: translateY(30px);
}

.team-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-grid {
        gap: 2rem;
    }
    
    .team-image {
        width: 180px;
        height: 220px;
    }
    
    .team-image-container::before,
    .team-image-container::after {
        width: 180px;
        height: 220px;
    }
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .team-card {
        grid-template-columns: 1fr 1.5fr;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .team-image {
        width: 160px;
        height: 200px;
    }
    
    .team-image-container::before,
    .team-image-container::after {
        width: 160px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .team-card {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "content" !important;
        min-height: auto;
    }
    
    .team-card.left-card,
    .team-card.right-card {
        grid-template-areas: 
            "image"
            "content";
    }
    
    .team-image-container {
        padding: 2rem;
        min-height: 300px;
    }
    
    .team-image {
        width: 200px;
        height: 240px;
    }
    
    .team-image-container::before,
    .team-image-container::after {
        width: 200px;
        height: 240px;
    }
    
    .team-info {
        padding: 2rem;
    }
    
    .team-info h3 {
        font-size: 1.6rem;
    }
    
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .team-image {
        width: 160px;
        height: 200px;
    }
    
    .team-image-container::before,
    .team-image-container::after {
        width: 160px;
        height: 200px;
    }
    
    .team-info {
        padding: 1.5rem;
    }
    
    .team-info h3 {
        font-size: 1.4rem;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .team-description {
        font-size: 0.9rem;
    }
    
    .expertise-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* RTL Support */
[dir="rtl"] .team-card.left-card {
    grid-template-areas: "content image";
}

[dir="rtl"] .team-card.right-card {
    grid-template-areas: "image content";
}

[dir="rtl"] .team-social {
    flex-direction: row-reverse;
}

[dir="rtl"] .team-expertise {
    justify-content: flex-end;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-image,
    .team-image-container::before,
    .team-image-container::after,
    .expertise-tag {
        transition: none;
    }
    
    .team-card:hover .team-image {
        transform: none;
    }
    
    .team-card:hover .team-image-container::before,
    .team-card:hover .team-image-container::after {
        transform: translate(-50%, -50%);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .team-card {
        border: 2px solid var(--border-color);
    }
    
    .team-image {
        border: 3px solid var(--text-primary);
    }
    
    .expertise-tag {
        border: 2px solid var(--border-color);
    }
}

/* Performance Optimizations */
.team-image,
.team-image-container::before,
.team-image-container::after {
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}



        /* Projects Section */
        .projects {
            padding: 8rem 0;
            background: var(--bg-primary);
        }

        .section-header {
            text-align: center;
            margin-bottom: 5rem;
        }

        .section-header h2 {
            font-family: 'Playfair Display', serif;
            font-size: 3.5rem;
            font-weight: 300;
            margin-bottom: 1rem;
            opacity: 0;
            transform: translateY(30px);
        }

        .section-header p {
            font-size: 1.1rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
            opacity: 0;
            transform: translateY(20px);
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(50px);
            position: relative;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
            border-color: var(--secondary-color);
        }

        .project-image-container {
            position: relative;
            height: 280px;
            overflow: hidden;
        }

        .project-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(60%) contrast(1.2);
            transition: all 0.3s ease;
        }

        .project-card:hover .project-image {
            filter: grayscale(0%) contrast(1);
            transform: scale(1.05);
        }

        .project-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
            display: flex;
            align-items: flex-end;
            padding: 2rem;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .project-card:hover .project-overlay {
            opacity: 1;
        }

        .project-info {
            padding: 2rem;
        }

        .project-info h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .project-info p {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .project-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }

        .project-type {
            background: var(--accent-color);
            color: var(--text-primary);
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            border: 1px solid var(--border-color);
        }

        .project-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .project-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .project-stat-number {
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Featured Project Card */
        .featured-project {
            grid-column: span 2;
            display: grid;
            grid-template-columns: 1fr 1fr;
            min-height: 400px;
        }

        .featured-content {
            padding: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .featured-content h3 {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .featured-content .project-stats {
            margin-top: 2rem;
            gap: 2rem;
        }

        /* Project Detail Page Styles */

/* Main Project Detail Section */
.project-detail {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.project-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 305px;
    background: linear-gradient(135deg, rgba(33, 36, 42, 0.95) 0%, rgba(161, 161, 170, 0.1) 100%);
    z-index: 1;
}

.project-detail .container {
    position: relative;
    z-index: 2;
}

/* Project Hero Section */
.project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
    align-items: center;
}

.project-hero-content {
    padding-right: 40px;
}

.project-breadcrumb {
    margin-bottom: 30px;
    opacity: 0.8;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-link:hover {
    color: var(--text-primary);
    transform: translateX(-5px);
}

.breadcrumb-separator {
    margin: 0 15px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

.project-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.4;
}

.project-meta-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.project-status {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    width: fit-content;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Project Image */
.project-main-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-expand-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.image-expand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Project Description */
.project-description {
    margin-bottom: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    border-radius: 2px;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: left;
}

.description-text p {
    margin-bottom: 25px;
}

/* Project Features */
.project-features {
    margin-bottom: 100px;
}

.project-features .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--bg-primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Project Gallery */
.project-gallery {
    margin-bottom: 100px;
}

.project-gallery .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-expand-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-expand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Project Timeline */
.project-timeline {
    margin-bottom: 100px;
}

.project-timeline .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 3px solid var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-marker.active {
    border-color: var(--text-primary);
    background: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Related Projects */
.related-projects {
    margin-bottom: 60px;
}

.related-projects .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.related-project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.related-project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.related-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-project-card:hover .related-project-overlay {
    opacity: 1;
}

.related-project-card:hover .related-project-image img {
    transform: scale(1.05);
}

.view-project-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-project-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.related-project-info {
    padding: 25px;
}

.related-project-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.related-project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
    transform: scale(1.1);
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
@media (min-width :1024px) {

    .image-container{
        height: 600px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-hero-content {
        padding-right: 0;
        order: 2;
    }
    
    .project-main-image {
        order: 1;
    }
    
    .project-title {
        font-size: 3rem;
    }
    
    .project-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .project-stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .project-detail {
        padding: 100px 0 60px;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-subtitle {
        font-size: 1.2rem;
    }
    
    .project-meta-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-image {
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-image-container {
        height: 220px;
    }
}

/* Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* AOS Animation Support */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}



        /* Testimonials Section */
        .testimonials {
            padding: 8rem 0;
            background: var(--bg-secondary);
        }

        .testimonials-slider {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }

        .testimonial {
            text-align: center;
            padding: 3rem;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.5s ease;
        }

        .testimonial.active {
            opacity: 1;
            transform: translateY(0);
        }

        .testimonial-text {
            font-size: 1.4rem;
            font-style: italic;
            margin-bottom: 2rem;
            color: var(--text-primary);
            line-height: 1.8;
            font-weight: 300;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
        }

        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            filter: grayscale(100%);
        }

        .author-info h4 {
            color: var(--text-primary);
            margin-bottom: 0.3rem;
            font-weight: 600;
        }

        .author-info p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .testimonial-nav {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 3rem;
        }

        .nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--border-color);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .nav-dot.active {
            background: var(--text-primary);
            transform: scale(1.2);
        }

        /* Contact Section */
        .contact {
            padding: 8rem 0;
            background: var(--bg-primary);
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6rem;
        }

        .contact-info h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
            font-weight: 300;
        }

        .contact-info p {
            color: var(--text-secondary);
            margin-bottom: 3rem;
            line-height: 1.8;
        }

        .contact-details {
            space-y: 2rem;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            border-color: var(--secondary-color);
            transform: translateY(-2px);
        }

        .contact-item i {
            color: var(--text-primary);
            width: 20px;
            margin-top: 0.2rem;
        }

        .contact-form {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 3rem;
            border-radius: 20px;
        }

        .form-group {
            margin-bottom: 2rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.8rem;
            color: var(--text-primary);
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--text-primary);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
        }

        .form-group textarea {
            height: 120px;
            resize: vertical;
        }

        .submit-btn {
            width: 100%;
            background: var(--text-primary);
            color: var(--bg-primary);
            padding: 1rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .submit-btn:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
        }

        /* Footer */
        .footer {
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-color);
            padding: 4rem 0 2rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;   
    text-align: center;    
}


        .footer-section h4 {
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
            color: var(--text-primary);
            font-weight: 600;
        }

        .footer-section p,
        .footer-section a {
            color: var(--text-secondary);
            text-decoration: none;
            margin-bottom: 0.8rem;
            display: block;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: var(--text-primary);
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            background: var(--accent-color);
            transform: translateY(-2px);
            border-color: var(--secondary-color);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
            color: var(--text-secondary);
        }

        /* Animations */
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideInRight {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInLeft {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Scroll Animations */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* Moving Objects */
        .moving-object {
            position: fixed;
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            pointer-events: none;
            z-index: 1;
            transition: all 0.3s ease;
            opacity: 0.7;
            backdrop-filter: blur(10px);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .featured-project {
                grid-column: span 1;
                grid-template-columns: 1fr;
            }
            .service-item {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .service-item.right-aligned .service-content {
                order: 1;
            }

            .service-item.right-aligned .service-images {
                order: 2;
            }

            .we-text {
                font-size: 3rem;
            }

            .service-title {
                font-size: 1.5rem;
            }

            .services-list {
                padding-left: 150px;
            }

            [dir="rtl"] .services-list {
                padding-left: 0;
                padding-right: 150px;
            }
        }

        @media (max-width: 768px) {
            .mobile-menu-toggle {
                display: block;
            }

            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--bg-primary);
                flex-direction: column;
                padding: 2rem;
                border-top: 1px solid var(--border-color);
            }

            .nav-menu.active {
                display: flex;
            }

            .hero-quote {
                font-size: 2.5rem;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .about-content,
            .contact-content {
                grid-template-columns: 1fr;
                gap: 3rem;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .section-header h2 {
                font-size: 2.5rem;
            }

            .about-text h2 {
                font-size: 2.5rem;
            }

            .time-control,
            .weather-indicator {
                display: none;
            }

             .we-text {
                font-size: 2.5rem;
            }

            .service-title {
                font-size: 1.3rem;
                padding: 0.8rem 1.5rem;
            }

            .services-list {
                gap: 1.5rem;
                padding-left: 100px;
            }

            .services-list-container {
                min-height: 300px;
            }

            [dir="rtl"] .services-list {
                padding-left: 0;
                padding-right: 100px;
            }
        }

        /* RTL Support */
        [dir="rtl"] {
            text-align: right;
        }

        [dir="rtl"] .nav-menu {
            flex-direction: row-reverse;
        }

        [dir="rtl"] .hero-content {
            direction: rtl;
        }

        [dir="rtl"] .contact-item {
            flex-direction: row-reverse;
        }

        /* Language specific fonts */
        .arabic {
            font-family: 'Amiri', 'Times New Roman', serif;
            direction: rtl;
            text-align: right;
        }

        /* Loading Animation */
        body {
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        body.loaded {
            opacity: 1;
        }

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    transition: background-position 0.5s ease-out;
}



.reports, .why-us-section, .team, .footer {
    position: relative;
    overflow: hidden;
}

.reports::before, .why-us-section::before, .team::before, .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--gradient-x, 50%) var(--gradient-y, 50%), rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    transition: background-position 0.1s linear;
    z-index: 0;
}

.hero-bg-video {
    transition: opacity 0.5s ease-out;
}

.hero-bg-video.fade-out {
    opacity: 0;
}


        /* Services Section Styles */
        .services-section {
            padding: 8rem 0;
            background: var(--bg-primary);
            position: relative;
            overflow: hidden;
        }

        .services-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* background: radial-gradient(circle at var(--gradient-x, 50%) var(--gradient-y, 50%), rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%); */
            pointer-events: none;
            transition: background-position 0.1s linear;
            z-index: 0;
        }

        .services-grid {
            display: flex;
            flex-direction: column;
            gap: 8rem;
            margin-top: 6rem;
            position: relative;
            z-index: 1;
        }

        .service-item {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            min-height: 600px;
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 20px;
            padding: 2rem;
            margin: 2rem 0;
            position: relative;
            overflow: hidden;
        }

        .service-item.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        .service-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
        }

        .service-item.in-view {
            animation: serviceSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Mobile Scroll Active State - NEW */
        .service-item.mobile-scroll-active {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 20px;
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }

        .service-item.mobile-text-pushed {
            /* Additional styling for mobile text-pushed state */
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Service Item Hover Effects */
        .service-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 50%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 1;
        }

        .service-item:hover::before {
            opacity: 1;
        }

        .service-item.active-service {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 20px;
            box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
        }

        /* Left aligned services */
        .service-item.left-aligned {
            grid-template-areas: "content images";
        }

        .service-item.left-aligned .service-content {
            grid-area: content;
        }

        .service-item.left-aligned .service-images {
            grid-area: images;
        }

        /* Right aligned services */
        .service-item.right-aligned {
            grid-template-areas: "images content";
        }

        .service-item.right-aligned .service-content {
            grid-area: content;
        }

        .service-item.right-aligned .service-images {
            grid-area: images;
        }

        .service-content {
            padding: 2rem;
            position: relative;
            z-index: 2;
        }

        .service-text h3 {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            font-weight: 400;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }

        /* Service Description Container with We Element - UPDATED FOR MOBILE */
        .service-description-container {
            position: relative;
            margin-bottom: 2.5rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .service-description {
            font-size: 1.1rem;
            color: var(--text-secondary);
            line-height: 1.7;
            position: relative;
            z-index: 2;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            padding-left: 0;
        }

        /* Updated We Placeholder - Mobile and Desktop Support */
        .we-placeholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }

        /* Desktop Hover Behavior */
      

        /* Mobile Scroll Behavior - NEW */
        .service-item.mobile-text-pushed .we-placeholder {
            opacity: 1;
            width: 100px; /* Slightly smaller for mobile */
        }

        .service-item.mobile-text-pushed .service-description {
            padding-left: 110px; /* Adjusted for mobile */
        }

        .we-placeholder::before {
            content: "We";
            position: absolute;
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
            font-family: 'Playfair Display', serif;
            font-size: 4rem;
            font-weight: 700;
            color: var(--text-primary);
            opacity: 0.3;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
            white-space: nowrap;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Enhanced We Element States */
        .service-item:hover .we-placeholder::before,
        .service-item.mobile-text-pushed .we-placeholder::before {
            opacity: 0.6;
            transform: translateY(-50%) scale(1.05);
            text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
        }

        .service-item.active-service .we-placeholder::before {
            opacity: 0.5;
            transform: translateY(-50%) scale(1.1);
            animation: weStraightActive 2s ease-in-out infinite alternate;
        }

        /* Mobile-specific We Element Animation - NEW */
        .service-item.mobile-scroll-active .we-placeholder::before {
            animation: weMobileActive 2.5s ease-in-out infinite alternate;
        }

        /* Dynamic "We" Element Styles */
        .dynamic-we {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Playfair Display', serif;
            font-size: 8rem;
            font-weight: 700;
            color: var(--text-primary);
            text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
            user-select: none;
            will-change: transform, opacity;
            backface-visibility: hidden;
            perspective: 1000px;
        }

        .dynamic-we.active {
            opacity: 0.15;
            visibility: visible;
            animation: weStraightGlow 2s ease-in-out infinite alternate;
        }

        .dynamic-we.jumping {
            opacity: 0.8;
            transform: translate(-50%, -50%) scale(1.2);
            animation: weStraightJump 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        /* Service Features */
        .service-features {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .feature-item {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.2rem 1.5rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .feature-item:hover {
            border-color: var(--secondary-color);
            background: rgba(161, 161, 170, 0.05);
            transform: translateX(5px);
        }

        .feature-item.expanded {
            background: rgba(161, 161, 170, 0.1);
            border-color: var(--secondary-color);
        }

        .feature-item > span {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-weight: 500;
            color: var(--text-primary);
            font-size: 0.95rem;
        }

        .feature-item i {
            color: var(--secondary-color);
            font-size: 0.8rem;
            transition: transform 0.3s ease;
        }

        .feature-item.expanded i {
            transform: rotate(180deg);
        }

        .feature-description {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
            opacity: 1;
            max-height: 200px;
            transition: all 0.3s ease;
        }

        .feature-item:not(.expanded) .feature-description {
            display: none;
        }

        .feature-description p {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.6;
            margin: 0;
        }

        /* Service Images */
        .service-images {
            position: relative;
            height: 500px;
        }

        .service-images::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            border-radius: 20px;
        }

        .service-item:hover .service-images::after {
            opacity: 1;
        }

        .image-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            gap: 1rem;
            height: 100%;
            border-radius: 20px;
            overflow: hidden;
        }

        .main-image {
            grid-column: 1 / 3;
            grid-row: 1 / 2;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 16px;
            filter: grayscale(20%) contrast(1.1);
            transition: all 0.3s ease;
        }

        .secondary-image {
            grid-column: 1 / 3;
            grid-row: 2 / 3;
            width: 50%;
            height: 100%;
            object-fit: cover;
            border-radius: 16px;
            filter: grayscale(20%) contrast(1.1);
            transition: all 0.3s ease;
        }

        .service-item:hover .main-image,
        .service-item:hover .secondary-image {
            filter: grayscale(0%) contrast(1);
            transform: scale(1.02);
        }

        /* Services CTA */
        .services-cta {
            margin-top: 8rem;
            text-align: center;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 4rem 3rem;
            position: relative;
            overflow: hidden;
        }

        .services-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
            animation: shimmer 3s infinite;
        }

        .cta-content h3 {
            font-family: 'Playfair Display', serif;
            font-size: 2.2rem;
            font-weight: 400;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
        }

        .cta-content p {
            font-size: 1.1rem;
            color: var(--text-secondary);
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.7;
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            background: var(--text-primary);
            color: var(--bg-primary);
            padding: 1.2rem 2.5rem;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .cta-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .cta-button:hover::before {
            left: 100%;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
        }

        .cta-button i {
            transition: transform 0.3s ease;
        }

        .cta-button:hover i {
            transform: translateX(5px);
        }

        /* Section Header */
        .section-header {
            text-align: center;
            margin-bottom: 5rem;
        }

        .section-header h2 {
            font-family: 'Playfair Display', serif;
            font-size: 3.5rem;
            font-weight: 300;
            margin-bottom: 1rem;
            opacity: 0;
            transform: translateY(30px);
        }

        .section-header p {
            font-size: 1.1rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
            opacity: 0;
            transform: translateY(20px);
        }

        /* Scroll Animations */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* Updated Animations - Mobile Support */
        @keyframes serviceSlideIn {
            0% {
                opacity: 0;
                transform: translateY(50px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes weStraightGlow {
            0% {
                text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
                transform: translate(-50%, -50%);
            }
            100% {
                text-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
                transform: translate(-50%, -50%) scale(1.05);
            }
        }

        @keyframes weStraightJump {
            0% {
                transform: translate(-50%, -50%) scale(1);
                opacity: 0.15;
            }
            25% {
                transform: translate(-50%, -60%) scale(1.3);
                opacity: 0.6;
            }
            50% {
                transform: translate(-50%, -40%) scale(1.5);
                opacity: 0.8;
            }
            75% {
                transform: translate(-50%, -55%) scale(1.2);
                opacity: 0.7;
            }
            100% {
                transform: translate(-50%, -50%) scale(1.1);
                opacity: 0.4;
            }
        }

        @keyframes weStraightActive {
            0% {
                transform: translateY(-50%) scale(1.1);
                opacity: 0.5;
                text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
            }
            100% {
                transform: translateY(-50%) scale(1.15);
                opacity: 0.6;
                text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
            }
        }

        /* NEW: Mobile-specific We Animation */
        @keyframes weMobileActive {
            0% {
                transform: translateY(-50%) scale(1.05);
                opacity: 0.6;
                text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
            }
            100% {
                transform: translateY(-50%) scale(1.1);
                opacity: 0.7;
                text-shadow: 0 0 35px rgba(255, 255, 255, 0.5);
            }
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Responsive Design - Enhanced for Mobile */
        @media (max-width: 1024px) {
            .service-item {
                grid-template-columns: 1fr;
                gap: 3rem;
                min-height: auto;
            }

            .service-item.left-aligned,
            .service-item.right-aligned {
                grid-template-areas: 
                    "content"
                    "images";
            }

            .service-text h3 {
                font-size: 2.2rem;
            }

            .services-grid {
                gap: 6rem;
            }

            .dynamic-we {
                font-size: 6rem;
            }
            
            .we-placeholder::before {
                font-size: 3rem;
            }

            /* Mobile text pushing adjustments */
            .service-item.mobile-text-pushed .service-description {
                padding-left: 90px;
            }

            .service-item.mobile-text-pushed .we-placeholder {
                width: 80px;
            }
        }

        @media (max-width: 768px) {
            .services-section {
                padding: 6rem 0;
            }

            .service-item {
                gap: 2rem;
                padding: 1.5rem;
            }

            .service-content {
                padding: 1rem;
            }

            .service-text h3 {
                font-size: 1.8rem;
            }

            .service-description {
                font-size: 1rem;
            }

            .service-images {
                height: 350px;
            }

            .image-grid {
                grid-template-columns: 1fr;
                grid-template-rows: 2fr 1fr;
            }

            .secondary-image {
                grid-column: 1 / 2;
                grid-row: 2 / 3;
            }

            .services-cta {
                margin-top: 6rem;
                padding: 3rem 2rem;
            }

            .cta-content h3 {
                font-size: 1.8rem;
            }

            .cta-content p {
                font-size: 1rem;
            }

            .services-grid {
                gap: 4rem;
                margin-top: 4rem;
            }

            .section-header h2 {
                font-size: 2.5rem;
            }

            .dynamic-we {
                font-size: 4rem;
            }
            
            .we-placeholder::before {
                font-size: 2rem;
                left: 10px;
            }

            /* Mobile text pushing for smaller screens */
            .service-item.mobile-text-pushed .service-description {
                padding-left: 70px;
            }

            .service-item.mobile-text-pushed .we-placeholder {
                width: 60px;
            }
        }

        @media (max-width: 480px) {
            .feature-item {
                padding: 1rem;
            }

            .feature-item > span {
                font-size: 0.9rem;
            }

            .feature-description p {
                font-size: 0.85rem;
            }

            .service-images {
                height: 300px;
            }

            .dynamic-we {
                font-size: 3rem;
            }
            
            .we-placeholder::before {
                font-size: 1.5rem;
                left: 5px;
            }

            /* Mobile text pushing for very small screens */
            .service-item.mobile-text-pushed .service-description {
                padding-left: 50px;
            }

            .service-item.mobile-text-pushed .we-placeholder {
                width: 45px;
            }

            .service-item {
                padding: 1rem;
            }
        }

        /* RTL Support - Enhanced for Mobile */
        [dir="rtl"] .service-item.left-aligned {
            grid-template-areas: "images content";
        }

        [dir="rtl"] .service-item.right-aligned {
            grid-template-areas: "content images";
        }

        [dir="rtl"] .feature-item > span {
            flex-direction: row-reverse;
        }

        [dir="rtl"] .cta-button {
            flex-direction: row-reverse;
        }

        [dir="rtl"] .feature-item:hover {
            transform: translateX(-5px);
        }

        [dir="rtl"] .we-placeholder {
            left: auto;
            right: 0;
        }

        [dir="rtl"] .we-placeholder::before {
            left: auto;
            right: 20px;
            transform: translateY(-50%);
        }

        /* RTL Mobile text pushing */
        [dir="rtl"] .service-item:hover .service-description,
        [dir="rtl"] .service-item.mobile-text-pushed .service-description {
            padding-left: 0;
            padding-right: 0px;
        }

        [dir="rtl"] .dynamic-we {
            transform: translate(-50%, -50%);
        }

        [dir="rtl"] .dynamic-we.active {
            animation: weStraightGlow 2s ease-in-out infinite alternate;
        }

        [dir="rtl"] .dynamic-we.jumping {
            transform: translate(-50%, -50%) scale(1.2);
            animation: weStraightJump 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        /* RTL Mobile responsive adjustments */
        @media (max-width: 1024px) {
            [dir="rtl"] .service-item.mobile-text-pushed .service-description {
                padding-right: 90px;
                padding-left: 0;
            }
        }

        @media (max-width: 768px) {
            [dir="rtl"] .service-item.mobile-text-pushed .service-description {
                padding-right: 70px;
                padding-left: 0;
            }
        }

        @media (max-width: 480px) {
            [dir="rtl"] .service-item.mobile-text-pushed .service-description {
                padding-right: 50px;
                padding-left: 0;
            }

             .we-text {
                font-size: 2rem;
            }

            .service-title {
                font-size: 1.1rem;
                padding: 0.6rem 1rem;
            }

            .services-list {
                padding-left: 80px;
            }

            [dir="rtl"] .services-list {
                padding-left: 0;
                padding-right: 80px;
            }
        }

        /* Touch Device Optimizations - NEW */
        @media (hover: none) and (pointer: coarse) {
            /* Remove hover effects on touch devices */
            .service-item:hover {
                transform: none;
                box-shadow: none;
            }

            .service-item:hover::before {
                opacity: 0;
            }

            .service-item:hover .service-images::after {
                opacity: 0;
            }

            .service-item:hover .main-image,
            .service-item:hover .secondary-image {
                filter: grayscale(20%) contrast(1.1);
                transform: none;
            }

            /* Enhance mobile scroll active states */
            .service-item.mobile-scroll-active {
                background: rgba(255, 255, 255, 0.03);
                box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
            }

            .service-item.mobile-scroll-active .main-image,
            .service-item.mobile-scroll-active .secondary-image {
                filter: grayscale(0%) contrast(1);
                transform: scale(1.01);
            }
        }

        /* Accessibility - Enhanced */
        @media (prefers-reduced-motion: reduce) {
            .dynamic-we,
            .we-placeholder::before,
            .service-item,
            .service-description {
                animation: none !important;
                transition: opacity 0.3s ease, padding 0.3s ease !important;
            }
            
            .dynamic-we.jumping {
                transform: translate(-50%, -50%) scale(1.1);
                transition: opacity 0.3s ease;
            }

            .service-item {
                transition: opacity 0.3s ease, transform 0.3s ease;
            }

            .feature-item {
                transition: background-color 0.3s ease, border-color 0.3s ease;
            }

            .service-description {
                transition: padding 0.3s ease;
            }

            /* Disable mobile scroll animations for reduced motion */
            .service-item.mobile-scroll-active {
                animation: none;
                transition: background-color 0.3s ease, box-shadow 0.3s ease;
            }
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .dynamic-we {
                color: #ffffff;
                text-shadow: 0 0 10px #000000;
            }
            
            .we-placeholder::before {
                color: #ffffff;
                text-shadow: 0 0 5px #000000;
            }

            .service-item {
                border: 2px solid var(--border-color);
            }

            .feature-item {
                border: 2px solid var(--border-color);
            }

            .service-item.mobile-scroll-active {
                border: 2px solid var(--secondary-color);
            }
        }

        /* Performance Optimizations */
        .dynamic-we,
        .we-placeholder,
        .service-item,
        .service-description {
            backface-visibility: hidden;
            perspective: 1000px;
        }

        /* GPU acceleration for smooth animations */
        .dynamic-we,
        .service-item,
        .feature-item,
        .service-description {
            transform: translateZ(0);
        }

        /* Mobile-specific performance optimizations */
        @media (max-width: 768px) {
            .service-item.mobile-text-pushed .we-placeholder,
            .service-item.mobile-text-pushed .service-description {
                will-change: width, padding, opacity;
            }
        }

        
        /* Services Section */
        .services-section {
            padding: 8rem 0;
            background: var(--bg-primary);
            position: relative;
        }

        .services-details{
            padding: 8rem 8rem;
            background: var(--gradient-primary);
            position: relative;
        }
         @media (max-width: 768px) {
            .services-details{
            padding: 2rem 2rem;
           
        }
         }

        /* Services List Container with Floating We */
        .services-list-container {
            position: relative;
            margin: 3rem 0;
            min-height: 400px;
        }

        .dynamic-we-floating {
            position: absolute;
            left: 0;
            top: 0;
            z-index: 10;
            pointer-events: none;
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .we-text {
            font-size: 3.5rem;
            font-weight: 700;
            color: var(--text-primary);
            opacity: 0.9;
            text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
            display: block;
            white-space: nowrap;
            transform: scale(1);
            transition: all 0.4s ease;
        }

        .we-text.moving {
            opacity: 1;
            transform: scale(1.05);
            text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
        }

        /* Services List Styles */
        .services-list {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2rem;
            padding-left: 200px; /* Space for the floating We */
        }

        .service-title-container {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .service-title {
            font-size: 1.8rem;
            font-weight: 500;
            color: var(--text-secondary);
            transition: all 0.4s ease;
            cursor: pointer;
            padding: 1rem 2rem;
            border-radius: 12px;
            position: relative;
            opacity: 0.7;
            text-align: center;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .service-title:hover {
            color: var(--text-primary);
            opacity: 1;
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.05);
        }

        .service-title.active {
            color: var(--text-primary);
            opacity: 1;
            background: rgba(255, 255, 255, 0.1);
            transform: scale(1.05);
            box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
        }

        .service-title::before {
            content: '';
            position: absolute;
            left: -200px;
            top: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--text-primary), transparent);
            transition: width 0.4s ease;
            transform: translateY(-50%);
        }

        .service-title.active::before {
            width: 180px;
        }

        /* Services Grid */
        .services-grid {
            display: grid;
            gap: 4rem;
            margin-top: 6rem;
        }

        .service-item {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
            padding: 3rem;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(50px);
        }

        .service-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: var(--secondary-color);
        }

        .service-item.right-aligned {
            grid-template-columns: 1fr 1fr;
        }

        .service-item.right-aligned .service-content {
            order: 2;
        }

        .service-item.right-aligned .service-images {
            order: 1;
        }

        .service-content h3 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        .service-description {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        .service-images {
            position: relative;
        }

        .image-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            height: 300px;
        }

        .main-image {
            grid-column: span 2;
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 12px;
            transition: all 0.3s ease;
        }

        .secondary-image {
            width: 50%;
            height: 100px;
            object-fit: cover;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .service-item:hover .main-image,
        .service-item:hover .secondary-image {
            transform: scale(1.02);
            filter: brightness(1.1);
        }

        /* Services CTA */
        .services-cta {
            text-align: center;
            margin-top: 6rem;
            padding: 4rem;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            opacity: 0;
            transform: translateY(30px);
        }

        .cta-content h3 {
            font-size: 2.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        .cta-content p {
            font-size: 1.1rem;
            color: var(--text-secondary);
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

/* Projects Banner Styles */

/* Banner Container */
.projects-banner {
    position: relative;
    width: 100%;
    height: 90vh;
        border-radius: 40px;

    overflow: hidden;
    background: var(--bg-primary);
  
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner Overlay */


/* Banner Slides */
.banner-slides {
    position: relative;
    top: 42px;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 40px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.banner-slide.prev {
    transform: translateX(-100%);
}

.banner-slide.next {
    transform: translateX(100%);
}

/* Banner Image */
.banner-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
    filter: grayscale(75%) contrast(1.2);

}

.banner-slide.active .banner-image {
    transform: scale(1.05);
}

/* Banner Content */
.banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.banner-text {
    max-width: 600px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    align-items: center;
}

.banner-slide.active .banner-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Banner Typography */
.banner-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.banner-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Banner Stats */
.banner-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.banner-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.banner-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Banner Actions */
.banner-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.banner-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.banner-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.banner-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--text-primary);
    padding: 1.2rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.banner-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Banner Navigation */
.banner-navigation {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.banner-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.banner-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Banner Indicators */
.banner-indicators {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.banner-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    transition: width 0.3s ease;
}

.banner-indicator.active .indicator-progress {
    width: 100%;
}

/* Banner Progress Bar */
.banner-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 4;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), rgba(255, 255, 255, 0.8));
    width: 0;
    transition: width 0.3s ease;
}

/* Floating Counter */
.floating-counter {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 4;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-slide {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.counter-separator {
    color: var(--text-secondary);
}

.total-slides {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .banner-title {
        font-size: 3.5rem;
    }
    
    .banner-content {
        padding: 0 1.5rem;
    }
    
    .banner-stats {
        gap: 1.5rem;
    }
    .banner-slides {
        top: 0px;
    }
}

@media (max-width: 768px) {
    .projects-banner {
        height: 80vh;
        margin-top: 70px;
    }
    
    .banner-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .banner-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .banner-stats {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .banner-stat .stat-number {
        font-size: 1.5rem;
    }
    
    .banner-stat .stat-label {
        font-size: 0.8rem;
    }
    
    .banner-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .banner-cta-primary,
    .banner-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
    
    .banner-navigation {
        bottom: 1rem;
        gap: 1rem;
    }
    
    .banner-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .floating-counter {
        top: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .current-slide {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 0.9rem;
    }
    
    .banner-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .banner-stat {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .banner-stat .stat-number {
        font-size: 1.2rem;
    }
    
    .banner-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .banner-indicators {
        order: -1;
    }
}

/* RTL Support */
[dir="rtl"] .banner-content {
    text-align: right;
}

[dir="rtl"] .banner-text {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .floating-counter {
    right: auto;
    left: 2rem;
}

[dir="rtl"] .banner-cta-primary i,
[dir="rtl"] .banner-cta-secondary i {
    transform: rotate(180deg);
}

/* Animation Keyframes */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced hover effects */
.banner-slide:hover .banner-image {
    transform: scale(1.08);
}

/* Loading states */
.banner-image {
    background: var(--bg-card);
    transition: opacity 0.3s ease;
}

.banner-image[loading] {
    opacity: 0.7;
}

.banner-image.loaded {
    opacity: 1;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .banner-slide,
    .banner-image,
    .banner-text,
    .banner-nav-btn,
    .banner-indicator {
        transition: none;
        animation: none;
    }
    
    .banner-slide.active .banner-image {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .banner-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .banner-category,
    .banner-nav-btn,
    .floating-counter {
        border-width: 2px;
    }
}

/* Mobile Responsive Styles for Landing Page */

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Hide the glass header on mobile */
    .glass-header {
        display: none;
    }
    
    /* Create new mobile header */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 0;
    }
    
    .mobile-nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        position: relative;
    }
    
    /* Logo positioning - left side */
    .mobile-logo {
        display: flex;
        align-items: center;
        z-index: 1001;
    }
    
    .mobile-logo img {
        height: 40px;
        width: auto;
        filter: brightness(0) invert(1);
    }
    
    /* Menu toggle button - right side */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 1px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    /* Animated hamburger to X transformation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile menu dropdown */
    .mobile-nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(33, 36, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        list-style: none;
        margin: 0;
        padding: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .mobile-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Glass effect for mobile menu */
    .mobile-nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(255, 255, 255, 0.05) 50%, 
            rgba(255, 255, 255, 0.1) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: -1;
    }
    
    .mobile-nav-menu li {
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-nav-menu.active li {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Staggered animation for menu items */
    .mobile-nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .mobile-nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .mobile-nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .mobile-nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .mobile-nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    
    .mobile-nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 500;
        font-size: 24px;
        padding: 16px 32px;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        text-align: center;
        min-width: 200px;
    }
    
    .mobile-nav-menu .nav-link:hover,
    .mobile-nav-menu .nav-link.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transform: scale(1.05);
    }
    
    .mobile-nav-menu .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 1px;
    }
    
    /* Mobile contact button */
    .mobile-contact-btn {
        background: var(--bg-primary);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 16px 32px;
        border-radius: 25px;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        margin-top: 20px;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 16px rgba(33, 36, 42, 0.3);
    }
    
    .mobile-contact-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #4ADE80;
        color: #4ADE80;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(33, 36, 42, 0.4);
    }
    
    /* Adjust hero section for mobile header */
    .hero-section {
        padding-top: 80px; /* Account for mobile header height */
        min-height: calc(100vh - 80px);
    }
    
    /* Hide desktop navigation elements */
    .nav-menu {
        display: none;
    }
    
    .contact-btn {
        display: none;
    }
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .glass-header {
        width: calc(100% - 20px);
        top: 10px;
    }
    
    .nav-container {
        padding: 14px 24px;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .contact-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .mobile-nav-container {
        padding: 14px 16px;
    }
    
    .mobile-logo img {
        height: 35px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
    }
    
    .mobile-nav-menu .nav-link {
        font-size: 20px;
        min-width: 180px;
    }
    
    .mobile-contact-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .hero-section {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        padding: 20px;
    }
    
    .mobile-nav-menu .nav-link {
        font-size: 16px;
        padding: 12px 20px;
        min-width: auto;
    }
    
    .mobile-contact-btn {
        margin-top: 0;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-toggle span,
    .mobile-nav-menu,
    .mobile-nav-menu li,
    .mobile-nav-menu .nav-link,
    .mobile-contact-btn {
        transition: none;
    }
    
    .mobile-nav-menu.active li {
        transition-delay: 0s;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-header {
        border-bottom: 2px solid #ffffff;
    }
    
    .mobile-nav-menu {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .mobile-nav-menu .nav-link {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .mobile-contact-btn {
        border: 2px solid #ffffff;
    }
}

/* Default styles - hide mobile header by default */
.mobile-header {
    display: none;
}

/* Desktop styles - ensure glass header is visible on desktop */
@media (min-width: 769px) {
    /* Ensure glass header is visible on desktop */
    .glass-header {
        display: block !important;
    }
    
    /* Hide mobile header on desktop */
    .mobile-header {
        display: none !important;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Hide the glass header on mobile */
    .glass-header {
        display: none !important;
    }
    
    /* Create new mobile header */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        display: block !important;
    }
    
    .mobile-nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        position: relative;
    }
    
    /* Logo positioning - left side */
    .mobile-logo {
        display: flex;
        align-items: center;
        z-index: 1001;
    }
    
    .mobile-logo img {
        height: 40px;
        width: auto;
        filter: brightness(0) invert(1);
    }
    
    /* Menu toggle button - right side */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 1px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    /* Animated hamburger to X transformation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile menu dropdown */
    .mobile-nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(33, 36, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        list-style: none;
        margin: 0;
        padding: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .mobile-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Glass effect for mobile menu */
    .mobile-nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(255, 255, 255, 0.05) 50%, 
            rgba(255, 255, 255, 0.1) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: -1;
    }
    
    .mobile-nav-menu li {
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-nav-menu.active li {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Staggered animation for menu items */
    .mobile-nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .mobile-nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .mobile-nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .mobile-nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .mobile-nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    
    .mobile-nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 500;
        font-size: 24px;
        padding: 16px 32px;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        text-align: center;
        min-width: 200px;
    }
    
    .mobile-nav-menu .nav-link:hover,
    .mobile-nav-menu .nav-link.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transform: scale(1.05);
    }
    
    .mobile-nav-menu .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 1px;
    }
    
    /* Mobile contact button */
    .mobile-contact-btn {
        background: var(--bg-primary);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 16px 32px;
        border-radius: 25px;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        margin-top: 20px;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 16px rgba(33, 36, 42, 0.3);
    }
    
    .mobile-contact-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #4ADE80;
        color: #4ADE80;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(33, 36, 42, 0.4);
    }
    
    /* Adjust hero section for mobile header */
    .hero-section {
        padding-top: 80px; /* Account for mobile header height */
        min-height: calc(100vh - 80px);
    }
    
    /* Hide desktop navigation elements */
    .nav-menu {
        display: none;
    }
    
    .contact-btn {
        display: none;
    }
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .glass-header {
        width: calc(100% - 20px);
        top: 10px;
    }
    
    .nav-container {
        padding: 14px 24px;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .contact-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .mobile-nav-container {
        padding: 14px 16px;
    }
    
    .mobile-logo img {
        height: 35px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
    }
    
    .mobile-nav-menu .nav-link {
        font-size: 20px;
        min-width: 180px;
    }
    
    .mobile-contact-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .hero-section {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        padding: 20px;
    }
    
    .mobile-nav-menu .nav-link {
        font-size: 16px;
        padding: 12px 20px;
        min-width: auto;
    }
    
    .mobile-contact-btn {
        margin-top: 0;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-toggle span,
    .mobile-nav-menu,
    .mobile-nav-menu li,
    .mobile-nav-menu .nav-link,
    .mobile-contact-btn {
        transition: none;
    }
    
    .mobile-nav-menu.active li {
        transition-delay: 0s;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-header {
        border-bottom: 2px solid #ffffff;
    }
    
    .mobile-nav-menu {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .mobile-nav-menu .nav-link {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .mobile-contact-btn {
        border: 2px solid #ffffff;
    }
}
/* موبايل فقط */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* تابلت */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        display: flex;
        flex: 1;
        justify-content: center; /* يوسّط العناصر */
    }
    .mobile-menu-toggle {
        display: block;
    }
    .contact-btn {
        margin-left: auto; /* يخلي الزر يظل على الطرف */
    }
    .nav-menu-ipad{
        display: flex;
        flex: 1;
        justify-content: center; 
        gap: 32px;
    }
}

/* ديسكتوب */
@media (min-width: 1025px) {
    .nav-menu {
        display: flex;
        gap: 24px;
    }
    .mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .banner-category{
        display: none;
    }
    .banner-title{
        display: none;
    }
    .banner-actions{
        display: none;
    }
    .projects-banner{
        height: 45vh;
    }

}
