 @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');
        
        .font-mono { font-family: 'JetBrains Mono', monospace; }
        .font-inter { font-family: 'Inter', sans-serif; }
        
* {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
        
        /* Interactive Particle Background */
        #particles-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }
        
        /* Cursor Trail Effect */
        .cursor-trail {
            position: fixed;
            width: 20px;
            height: 20px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            transition: transform 0.1s ease;
        }
        
        .typing-animation {
            border-right: 3px solid #06b6d4;
            animation: blink 1.2s infinite;
        }
        
        @keyframes blink {
            0%, 50% { border-color: #06b6d4; }
            51%, 100% { border-color: transparent; }
        }
        
        .code-block {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border: 1px solid #334155;
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.4s ease;
        }
        
        .code-block:hover {
            transform: scale(1.02) rotateY(5deg);
            box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
        }
        
        .code-block::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
            animation: shimmer 3s infinite;
        }
        
        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        
        .glow-effect {
            box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
            position: relative;
        }
        
        .glow-effect:hover {
            box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
            transform: translateY(-2px);
        }
        
        .service-card {
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .service-card:hover::before {
            opacity: 1;
        }
        
        .service-card:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: rgba(59, 130, 246, 0.3);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .floating-animation {
            animation: float 6s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }
        
        .nav-blur {
            backdrop-filter: blur(20px);
            background: rgba(15, 23, 42, 0.8);
            -webkit-backdrop-filter: blur(20px);
        }
        
        .section-fade {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
        }
        
        .section-fade.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        .pulse-glow {
            animation: pulse-glow 2s ease-in-out infinite alternate;
        }
        
        @keyframes pulse-glow {
            from { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
            to { box-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }
        }
        
        .glass-effect {
            background: rgba(30, 41, 59, 0.7);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .modern-input {
            background: rgba(30, 41, 59, 0.5);
            border: 2px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }
        
        .modern-input:focus {
            border-color: #3b82f6;
            background: rgba(30, 41, 59, 0.8);
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
        }

        .modern-input,
        .interactive-btn,
        .mobile-nav-link,
        #mobile-menu-btn {
            touch-action: manipulation;
        }
        
        /* Interactive Terminal */
        .terminal-window {
            background: rgba(0, 0, 0, 0.9);
            border: 1px solid #3b82f6;
            border-radius: 8px;
            font-family: 'JetBrains Mono', monospace;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 95%;
            max-width: 600px;
            height: 70vh;
            max-height: 400px;
            z-index: 1000;
            display: none;
        }
        
        @media (min-width: 640px) {
            .terminal-window {
                width: 80%;
                height: 400px;
            }
        }
        
        .terminal-header {
            background: #1e293b;
            padding: 10px;
            border-bottom: 1px solid #3b82f6;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .terminal-body {
            padding: 20px;
            height: calc(100% - 60px);
            overflow-y: auto;
            color: #06b6d4;
        }
        
        .terminal-cursor {
            animation: blink 1s infinite;
        }
        
        /* Skill Progress Bars */
        .skill-progress {
            width: 0%;
            height: 4px;
            background: linear-gradient(90deg, #3b82f6, #06b6d4);
            border-radius: 2px;
            transition: width 2s ease-in-out;
        }
        
        .skill-item.animate .skill-progress {
            width: var(--progress);
        }
        
        /* Interactive Buttons */
        .interactive-btn {
            position: relative;
            overflow: hidden;
        }
        
        .interactive-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .interactive-btn:active::after {
            width: 300px;
            height: 300px;
        }
        
        /* Timeline Styles */
        .timeline-item {
            opacity: 0;
            transform: translateX(-50px);
            transition: all 0.8s ease;
        }
        
        .timeline-item.visible {
            opacity: 1;
            transform: translateX(0);
        }
        
        .timeline-item:nth-child(even) {
            transform: translateX(50px);
        }
        
        .timeline-item:nth-child(even).visible {
            transform: translateX(0);
        }
        
        /* Project Card Hover Effects */
        .project-card {
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(148, 163, 184, 0.2);
        }
        
        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .project-card:hover::before {
            opacity: 1;
        }
        
        .project-card:hover {
            transform: translateY(-12px) scale(1.03);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
        }

        .project-media {
            position: relative;
            height: 12rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        }

        .project-media--dibo {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%);
        }

        .project-media--rayehni {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%);
        }

        .project-media--pos {
            background: linear-gradient(135deg, rgba(147, 51, 234, 0.16) 0%, rgba(59, 130, 246, 0.16) 100%);
        }

        .project-media--menu {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.16) 0%, rgba(20, 184, 166, 0.16) 100%);
        }

        .project-cta {
            width: 100%;
            border-radius: 0.75rem;
            border: 1px solid rgba(59, 130, 246, 0.35);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(6, 182, 212, 0.95) 100%);
            color: #fff;
            padding: 0.625rem 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .project-cta:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 24px rgba(8, 47, 73, 0.35);
        }
        
        /* Counter Animation */
        .counter {
            font-variant-numeric: tabular-nums;
        }
        

        
        /* Blog Card Hover */
        .blog-card {
            transition: all 0.4s ease;
        }
        
        .blog-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
        
        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border: 1px solid #334155;
            border-radius: 16px;
            padding: 2rem;
            max-width: 90vw;
            max-height: 90vh;
            overflow-y: auto;
            transform: scale(0.8) translateY(20px);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .modal-overlay.active .modal-content {
            transform: scale(1) translateY(0);
        }
        
        .demo-frame {
            width: 100%;
            height: 60vh;
            border: none;
            border-radius: 12px;
            background: #fff;
        }

        /* Video and 3D Card Wrapper */
        .card-video-3d-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 400px;
        }

        .card-video {
            max-width: 400px;
            width: 100%;
            height: auto;
            cursor: pointer;
            border-radius: 16px;
        }

        .card-video.hidden {
            display: none;
        }

        @media (min-width: 640px) {
            .card-video {
                max-width: 450px;
            }
        }

        @media (min-width: 1024px) {
            .card-video {
                max-width: 500px;
            }
        }

        /* 3D Floating Card Styles */
        .card-3d-container {
            perspective: 1000px;
            cursor: grab;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
            -webkit-perspective: 1000px;
        }

        .card-3d-container:active {
            cursor: grabbing;
        }

        .card-3d {
            position: relative;
            transform-style: preserve-3d;
            -webkit-transform-style: preserve-3d;
            will-change: transform;
        }

        .card-3d-inner {
            position: relative;
            border-radius: 16px;
            transform-style: preserve-3d;
            -webkit-transform-style: preserve-3d;
            box-shadow: 
                0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(59, 130, 246, 0.2);
            transition: box-shadow 0.3s ease;
        }

        .card-3d-image {
            display: block;
            max-width: 320px;
            width: 100%;
            height: auto;
            border-radius: 16px;
            pointer-events: none;
            -webkit-user-drag: none;
            user-select: none;
        }

        @media (min-width: 640px) {
            .card-3d-image {
                max-width: 360px;
            }
        }

        @media (min-width: 1024px) {
            .card-3d-image {
                max-width: 400px;
            }
        }

        /* Back of the card */
        .card-3d-back {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border-radius: 16px;
            transform: rotateY(180deg);
            -webkit-transform: rotateY(180deg);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            padding: 20px;
            box-sizing: border-box;
            border: 2px solid rgba(59, 130, 246, 0.3);
        }

        .card-3d-back-content {
            text-align: center;
            color: white;
        }

        .card-3d-back-content h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #3b82f6, #06b6d4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .card-3d-back-content p {
            color: #94a3b8;
            font-size: 0.9rem;
        }

        .card-3d-front {
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            position: relative;
        }

        .card-3d-front img {
            display: block;
        }

        .card-3d-shine {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                105deg,
                transparent 20%,
                rgba(255, 255, 255, 0.1) 35%,
                rgba(255, 255, 255, 0.5) 50%,
                rgba(255, 255, 255, 0.1) 65%,
                transparent 80%
            );
            pointer-events: none;
            opacity: 0;
            border-radius: 16px;
        }

        /* Shadow element that moves with card */
        .card-3d-shadow {
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 20px;
            background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
            filter: blur(12px);
            pointer-events: none;
        }

        /* Glowing border effect */
        .card-3d::before {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 20px;
            background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6, #ec4899, #3b82f6);
            background-size: 400% 400%;
            animation: gradient-border 3s ease infinite;
            z-index: -1;
            opacity: 0.8;
        }

        @keyframes gradient-border {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Glow aura around card */
        .card-3d::after {
            content: '';
            position: absolute;
            inset: -25px;
            border-radius: 30px;
            background: 
                radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.25) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.25) 0%, transparent 40%);
            z-index: -2;
            animation: sparkle-pulse 2s ease-in-out infinite alternate;
            pointer-events: none;
        }

        @keyframes sparkle-pulse {
            0% { opacity: 0.6; transform: scale(1); }
            100% { opacity: 1; transform: scale(1.03); }
        }

        /* Hint text */
        .card-3d-hint {
            position: absolute;
            bottom: -35px;
            left: 50%;
            transform: translateX(-50%);
            color: #94a3b8;
            font-size: 0.8rem;
            white-space: nowrap;
            opacity: 1;
            pointer-events: none;
            text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
        }

                @media (max-width: 1023px) {
                        .pulse-glow {
                                animation: none;
                        }

                        .service-card:hover,
                        .project-card:hover {
                                transform: translateY(-4px) scale(1.01);
                        }
                }

                @media (max-width: 768px) {
                        #particles-canvas {
                                opacity: 0.45;
                        }

                        .cursor-trail {
                                display: none;
                        }

                        .terminal-window {
                                width: 95%;
                                height: 62vh;
                                max-height: 360px;
                        }

                        .terminal-body {
                                padding: 14px;
                        }

                        .card-video-3d-wrapper {
                                min-height: 300px;
                        }

                        .card-3d-container {
                                padding: 12px;
                        }

                        .card-3d::before,
                        .card-3d::after,
                        .card-3d-hint {
                                display: none;
                        }

                        .modal-content {
                                padding: 1.125rem;
                        }
                }

                @media (max-width: 640px) {
                        .interactive-btn {
                                min-height: 48px;
                        }

                        .modern-input,
                        #terminal-input,
                        #project-type,
                        #project-details {
                                font-size: 16px;
                        }

                        .project-media {
                                height: 10.5rem;
                        }

                        .service-card,
                        .project-card {
                                margin-bottom: 0.25rem;
                        }
                }

                @media (prefers-reduced-motion: reduce) {
                        * {
                                animation-duration: 0.01ms !important;
                                animation-iteration-count: 1 !important;
                                transition-duration: 0.01ms !important;
                                scroll-behavior: auto !important;
                        }

                        .section-fade,
                        .timeline-item {
                                opacity: 1;
                                transform: none;
                        }
                }
 @keyframes rocket-fly {
            0% { 
                transform: translateY(0) rotate(0deg) scale(1); 
            }
            25% { 
                transform: translateY(-8px) rotate(-3deg) scale(1.1); 
            }
            50% { 
                transform: translateY(-15px) rotate(3deg) scale(1.2); 
            }
            75% { 
                transform: translateY(-10px) rotate(-2deg) scale(1.15); 
            }
            100% { 
                transform: translateY(0) rotate(0deg) scale(1); 
            }
        }

        @keyframes fire-flicker {
            0%, 100% { 
                fill: #ff6b35; 
                transform: scale(1);
            }
            50% { 
                fill: #ff8c42; 
                transform: scale(1.3);
            }
        }

        #rocket.animate {
            display: inline-block !important;
            animation: rocket-fly 0.6s ease-in-out infinite;
        }

        .fire-animate {
            animation: fire-flicker 0.4s ease-in-out infinite;
        }

        .glow-effect {
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
        }

        .glow-effect:hover {
            box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
        }





/* HORIZONTAL PROJECTS SECTION */
.projects-horizontal-section {
    position: relative;
    height: 400vh;
    background-color: #0f172a;
    transition: background-color 0.8s ease;
}

@media (max-width: 768px) {
    .projects-horizontal-section {
        height: auto !important;
    }
}

.projects-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .projects-sticky-container {
        position: relative;
        height: auto;
        overflow: visible;
        display: block;
    }
}

.projects-header-sticky {
    position: absolute;
    top: 10vh;
    left: 10vw;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    .projects-header-sticky {
        position: relative;
        top: 0;
        left: 0;
        padding: 4rem 1rem 1rem;
        text-align: center;
    }
}

.projects-track {
    display: flex;
    height: 100vh;
    width: 400vw;
    will-change: transform;
}

@media (max-width: 768px) {
    .projects-track {
        flex-direction: column;
        width: 100%;
        height: auto;
        transform: none !important;
    }
}

.project-panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5vw;
}

@media (max-width: 768px) {
    .project-panel {
        height: auto;
        min-height: 80vh;
        padding: 4rem 1.5rem;
    }
}

.project-content-wrapper {
    display: flex;
    align-items: center;
    gap: 4vw;
    max-width: 1200px;
    width: 100%;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.project-content-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: rgba(30, 41, 59, 0.6);
}

@media (max-width: 1024px) {
    .project-content-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
}

/* APP MOCKUP UI */
.mockup-window {
    flex: 1;
    width: 100%;
    min-width: 300px;
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    max-width: 600px;
}

.phone-mockup {
    max-width: 320px !important;
    border-radius: 36px;
    border: 8px solid #0f172a;
    margin: 0 auto;
}

.tablet-mockup {
    max-width: 500px;
}

.mockup-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #334155;
}

.phone-mockup .mockup-header {
    justify-content: center;
    padding: 10px;
    background: #0f172a;
    border-bottom: none;
}

.phone-mockup .mockup-dot {
    display: none;
}

.phone-mockup .mockup-header::after {
    content: '';
    width: 60px;
    height: 6px;
    background: #1e293b;
    border-radius: 10px;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.mockup-body {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.phone-mockup .mockup-body {
    aspect-ratio: 9 / 19;
}

.mockup-bg-dibo { background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.16)); }
.mockup-bg-rayehni { background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(6, 182, 212, 0.16)); }
.mockup-bg-pos { background: linear-gradient(135deg, rgba(147, 51, 234, 0.16), rgba(59, 130, 246, 0.16)); }
.mockup-bg-menu { background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(20, 184, 166, 0.16)); }

.mockup-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.phone-mockup .mockup-body img {
    object-fit: contain;
    padding: 10px;
}

.project-content-wrapper:hover .mockup-body img {
    transform: scale(1.05);
}

.mockup-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-content-wrapper:hover .mockup-hover-overlay {
    opacity: 1;
}

.explore-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    font-weight: bold;
    border-radius: 30px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-content-wrapper:hover .explore-btn {
    transform: translateY(0);
}

.project-info-minimal {
    flex: 1;
}

/* MODERN EXPANDING MODAL */
.modern-project-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modern-project-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modern-project-modal {
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .modern-project-modal {
        width: 90vw;
        height: 90vh;
        border-radius: 24px;
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    }
}

.modern-project-overlay.active .modern-project-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.close-modern-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modern-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-dynamic-content {
    flex: 1;
    padding: 2rem;
}
