 :root {
            --primary: #6366f1;
            --primary-light: #818cf8;
            --primary-dark: #4f46e5;
            --secondary: #06b6d4;
            --accent: #10b981;
            --neon: #00fffc;
            --text: #1e293b;
            --text-light: #64748b;
            --bg: #ffffff;
            --bg-secondary: #f8fafc;
            --bg-card: rgba(255, 255, 255, 0.8);
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --glass: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            --transition: all 0.3s ease;
            --radius: 16px;
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            --neon-glow: 0 0 5px var(--neon), 0 0 10px var(--neon), 0 0 15px var(--neon);
        }

        .dark-mode {
            --primary: #818cf8;
            --primary-light: #a5b4fc;
            --primary-dark: #6366f1;
            --secondary: #22d3ee;
            --accent: #34d399;
            --neon: #00fffc;
            --text: #f1f5f9;
            --text-light: #cbd5e1;
            --bg: #0f172a;
            --bg-secondary: #1e293b;
            --bg-card: rgba(30, 41, 59, 0.7);
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            --glass: rgba(15, 23, 42, 0.3);
            --glass-border: rgba(255, 255, 255, 0.1);
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
            overflow-x: hidden;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--text);
            background-color: var(--bg);
            overflow-x: hidden;
            transition: var(--transition);
        }

        /* CUBE ANIMATION - FIXED FOR MOBILE */
        .hero-visual {
            position: absolute;
            right: 10%;
            top: 50%;
            transform: translateY(-50%);
            width: 200px;
            height: 200px;
            perspective: 800px;
            z-index: 2;
        }

        .cube-container {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            animation: rotateCube 15s infinite linear;
        }

        .cube-face {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            backdrop-filter: blur(10px);
            box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
        }

        .cube-face i {
            font-size: 3rem;
            color: white;
        }

        .cube-face.front { transform: translateZ(100px); }
        .cube-face.back { transform: translateZ(-100px) rotateY(180deg); }
        .cube-face.right { transform: translateX(100px) rotateY(90deg); }
        .cube-face.left { transform: translateX(-100px) rotateY(-90deg); }
        .cube-face.top { transform: translateY(-100px) rotateX(90deg); }
        .cube-face.bottom { transform: translateY(100px) rotateX(-90deg); }

        @keyframes rotateCube {
            0% { transform: rotateY(0) rotateX(10deg); }
            100% { transform: rotateY(360deg) rotateX(10deg); }
        }

        /* ENHANCED NAVIGATION */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 1.5rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(20px);
            background-color: var(--glass);
            border-bottom: 1px solid var(--glass-border);
            transition: var(--transition);
        }

        nav.scrolled {
            padding: 1rem 5%;
            box-shadow: var(--shadow);
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary);
            text-decoration: none;
            font-family: 'Orbitron', sans-serif;
            letter-spacing: -0.5px;
            position: relative;
        }

        .logo::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--neon);
            box-shadow: var(--neon-glow);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.5s ease;
        }

        .logo:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            transition: var(--transition);
            padding: 0.5rem 0;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: var(--transition);
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .theme-toggle {
            background: none;
            border: none;
            color: var(--text);
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theme-toggle:hover {
            color: var(--primary);
            background: var(--glass);
        }

        /* MOBILE MENU BUTTON */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text);
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 1001;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .mobile-menu-btn:hover {
            background: var(--glass);
        }

        .mobile-nav {
            position: fixed;
            top: 0;
            right: -100%;
            width: 80%;
            height: 100vh;
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            z-index: 999;
            transition: right 0.4s ease;
            display: flex;
            flex-direction: column;
            padding: 6rem 2rem 2rem;
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
            border-left: 1px solid var(--glass-border);
            overflow-y: auto;
        }

        .mobile-nav.active {
            right: 0;
        }

        .mobile-nav a {
            padding: 1rem 0;
            color: var(--text);
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 500;
            border-bottom: 1px solid var(--glass-border);
            transition: var(--transition);
        }

        .mobile-nav a:hover {
            color: var(--primary);
            padding-left: 1rem;
        }

        .mobile-nav .theme-toggle {
            margin-top: 2rem;
            align-self: flex-start;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* REVOLUTIONARY HERO SECTION */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            padding: 0 5%;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        }

        .hero-content {
            text-align: center;
            max-width: 900px;
            z-index: 2;
            position: relative;
        }

        .hero h1 {
            font-size: 4.5rem;
            font-weight: 900;
            margin-bottom: 1.5rem;
            color: white;
            line-height: 1.1;
            font-family: 'Orbitron', sans-serif;
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            position: relative;
            display: inline-block;
        }

        .hero h1::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--neon);
            box-shadow: var(--neon-glow);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 1s ease;
        }

        .hero h1.animate::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        .role-title {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: rgba(255, 255, 255, 0.9);
            min-height: 2.5rem;
            font-weight: 500;
            font-family: 'Orbitron', sans-serif;
        }

        .hero p {
            font-size: 1.3rem;
            margin-bottom: 2.5rem;
            color: rgba(255, 255, 255, 0.8);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        /* FLOATING TECH ELEMENTS */
        .floating-tech {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .tech-element {
            position: absolute;
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
            animation: floatTech 20s infinite linear;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        @keyframes floatTech {
            0% {
                transform: translateY(0) rotate(0deg);
            }
            100% {
                transform: translateY(-1000px) rotate(720deg);
            }
        }

        /* SECTIONS COMMON STYLES */
        section {
            padding: 6rem 5%;
            position: relative;
        }

        .section-title {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text);
            font-family: 'Playfair Display', serif;
            position: relative;
            display: inline-block;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--primary);
            border-radius: 2px;
        }

        .section-title p {
            color: var(--text-light);
            max-width: 600px;
            margin: 0 auto;
            font-size: 1.1rem;
        }

        /* ENHANCED ABOUT SECTION WITH 3D PROFILE */
        .about {
            background-color: var(--bg-secondary);
            position: relative;
            overflow: hidden;
        }

        .about-content {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 4rem;
            align-items: center;
        }

        .about-image {
            text-align: center;
            position: relative;
            perspective: 1000px;
        }

        .profile-3d-container {
            position: relative;
            width: 300px;
            height: 300px;
            margin: 0 auto;
            transform-style: preserve-3d;
            transition: transform 0.5s ease;
        }

        .profile-3d-container:hover {
            transform: rotateY(10deg) rotateX(5deg);
        }

        .profile-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 8px solid var(--primary);
            box-shadow: var(--shadow-lg);
            transition: var(--transition);
            position: relative;
            z-index: 2;
            transform: translateZ(20px);
        }

        .profile-glow {
            position: absolute;
            top: -10px;
            left: -10px;
            width: calc(100% + 20px);
            height: calc(100% + 20px);
            border-radius: 50%;
            background: var(--primary);
            filter: blur(20px);
            opacity: 0.5;
            z-index: 1;
            animation: pulseGlow 3s infinite alternate;
        }

        @keyframes pulseGlow {
            0% {
                opacity: 0.3;
                transform: scale(0.95);
            }
            100% {
                opacity: 0.7;
                transform: scale(1.05);
            }
        }

        .tech-orbits {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 400px;
            height: 400px;
        }

        .orbit {
            position: absolute;
            top: 50%;
            left: 50%;
            border: 1px solid var(--glass-border);
            border-radius: 50%;
            transform: translate(-50%, -50%);
        }

        .orbit-1 {
            width: 350px;
            height: 350px;
            animation: rotateOrbit 20s linear infinite;
        }

        .orbit-2 {
            width: 280px;
            height: 280px;
            animation: rotateOrbit 15s linear infinite reverse;
        }

        .orbit-3 {
            width: 210px;
            height: 210px;
            animation: rotateOrbit 10s linear infinite;
        }

        .orbiting-tech {
            position: absolute;
            width: 40px;
            height: 40px;
            background: var(--bg-card);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--primary);
            box-shadow: var(--shadow);
            transform: translate(-50%, -50%);
        }

        @keyframes rotateOrbit {
            0% {
                transform: translate(-50%, -50%) rotate(0deg);
            }
            100% {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }

        .about-text h3 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            color: var(--text);
            font-family: 'Orbitron', sans-serif;
        }

        .about-text p {
            margin-bottom: 1.5rem;
            color: var(--text-light);
            font-size: 1.1rem;
            line-height: 1.7;
        }

        .info-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .info-card {
            background: var(--bg-card);
            padding: 1.5rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            cursor: pointer;
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            position: relative;
            overflow: hidden;
        }

        .info-card::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: var(--transition);
        }

        .info-card:hover::before {
            left: 100%;
        }

        .info-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .info-card.github-card {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
        }

        .info-card.github-card i,
        .info-card.github-card h4,
        .info-card.github-card p {
            color: white;
        }

        .info-card i {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .info-card h4 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .info-card p {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        /* ENHANCED SKILLS SECTION */
        .skills {
            position: relative;
            overflow: hidden;
        }

        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .skill-category {
            background: var(--bg-card);
            padding: 2rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .skill-category::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--gradient);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s ease;
        }

        .skill-category:hover::before {
            transform: scaleX(1);
        }

        .skill-category:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .skill-category h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'Orbitron', sans-serif;
        }

        .skill-item {
            margin-bottom: 1.5rem;
        }

        .skill-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .skill-name {
            font-weight: 500;
            color: var(--text);
        }

        .skill-percentage {
            font-weight: 600;
            color: var(--primary);
        }

        .skill-bar {
            height: 8px;
            background: var(--bg-secondary);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .skill-progress {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 4px;
            width: 0;
            transition: width 1.5s ease;
            position: relative;
            overflow: hidden;
        }

        .skill-progress::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(100%);
            }
        }

        /* 3D FLOATING SHAPES BACKGROUND */
        .floating-shapes {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .shape {
            position: absolute;
            opacity: 0.1;
            animation: floatShape 25s infinite linear;
        }

        .shape-1 {
            width: 100px;
            height: 100px;
            background: var(--primary);
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 150px;
            height: 150px;
            background: var(--secondary);
            border-radius: 50% 50% 50% 70% / 50% 50% 70% 60%;
            top: 60%;
            left: 80%;
            animation-delay: 5s;
        }

        .shape-3 {
            width: 120px;
            height: 120px;
            background: var(--accent);
            border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
            top: 80%;
            left: 20%;
            animation-delay: 10s;
        }

        .shape-4 {
            width: 80px;
            height: 80px;
            background: var(--primary-light);
            border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
            top: 20%;
            left: 80%;
            animation-delay: 15s;
        }

        @keyframes floatShape {
            0% {
                transform: translateY(0) rotate(0deg);
            }
            100% {
                transform: translateY(-100vh) rotate(360deg);
            }
        }

        /* PROJECTS SECTION */
        .projects {
            background-color: var(--bg-secondary);
        }

        .project-filters {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 3rem;
        }

        .filter-btn {
            padding: 0.7rem 1.5rem;
            background: var(--bg-card);
            border: none;
            border-radius: 50px;
            color: var(--text);
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
        }

        .filter-btn.active, .filter-btn:hover {
            background: var(--primary);
            color: white;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            position: relative;
            overflow: hidden;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            opacity: 0;
            transition: var(--transition);
            z-index: 1;
        }

        .project-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: var(--shadow-lg);
        }

        .project-card:hover::before {
            opacity: 0.1;
        }

        .project-image {
            height: 200px;
            width: 100%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
            position: relative;
            z-index: 2;
        }

        .project-content {
            padding: 1.5rem;
            position: relative;
            z-index: 2;
        }

        .project-content h3 {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: var(--text);
        }

        .project-content p {
            color: var(--text-light);
            margin-bottom: 1rem;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .tech-tag {
            background: var(--bg-secondary);
            color: var(--text-light);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }

        .project-links {
            display: flex;
            gap: 1rem;
        }

        .project-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
        }

        .project-link:hover {
            color: var(--primary-dark);
        }

     /* PROJECT MODAL */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .modal.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: var(--bg);
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            transform: scale(0.9);
            transition: transform 0.4s ease;
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
        }

        .modal.active .modal-content {
            transform: scale(1);
        }

        .modal-header {
            padding: 1.5rem 2rem;
            background: var(--primary);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            font-size: 1.5rem;
        }

        .close-modal {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: var(--transition);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-modal:hover {
            transform: rotate(90deg);
            background: rgba(255, 255, 255, 0.1);
        }

        .modal-body {
            padding: 2rem;
            overflow-y: auto;
            max-height: calc(90vh - 80px);
        }

        .modal-image {
            width: 100%;
            height: 300px;
            background: var(--bg-secondary);
            border-radius: var(--radius);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            font-size: 4rem;
        }

        .modal-details {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
        }

        .modal-description h4 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--text);
        }

        .modal-description p {
            color: var(--text-light);
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

        .modal-info h4 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--text);
        }

        .modal-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .modal-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .modal-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            background: var(--bg-secondary);
        }

        .modal-link:hover {
            color: var(--primary-dark);
            background: var(--bg-card);
        }


        /* HONORS SECTION */
        .honors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }

        .honor-card {
            background: var(--bg-card);
            padding: 2rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            position: relative;
            overflow: hidden;
        }

        .honor-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            opacity: 0;
            transition: var(--transition);
            z-index: 1;
        }

        .honor-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .honor-card:hover::before {
            opacity: 0.05;
        }

        .honor-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
            position: relative;
            z-index: 2;
        }

        .honor-card h3 {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: var(--text);
            position: relative;
            z-index: 2;
        }

        .honor-card p {
            color: var(--text-light);
            margin-bottom: 1rem;
            font-size: 0.9rem;
            line-height: 1.6;
            position: relative;
            z-index: 2;
        }

        .honor-date {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            font-weight: 500;
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 2;
        }

        .honor-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            z-index: 2;
        }

        .honor-btn:hover {
            color: var(--primary-dark);
        }

        /* CERTIFICATE MODAL */
        .certificate-modal .modal-content {
            max-width: 800px;
        }

        .certificate-image {
            width: 100%;
            border-radius: var(--radius);
            margin-bottom: 1.5rem;
        }

        .certificate-details {
            text-align: center;
        }

        .certificate-details h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text);
        }

        .certificate-details p {
            color: var(--text-light);
            margin-bottom: 1rem;
            line-height: 1.7;
        }

        /* TESTIMONIALS SECTION */
        .testimonials {
            background-color: var(--bg-secondary);
        }

        .testimonials-container {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }

        .testimonial-card {
            background: var(--bg-card);
            padding: 2.5rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            text-align: center;
            margin: 0 1rem;
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            position: relative;
        }

        .testimonial-card::before {
            content: '"';
            position: absolute;
            top: 20px;
            left: 20px;
            font-size: 4rem;
            color: var(--primary);
            opacity: 0.2;
            font-family: serif;
        }

        .testimonial-text {
            font-size: 1.1rem;
            font-style: italic;
            margin-bottom: 2rem;
            color: var(--text);
            line-height: 1.8;
            position: relative;
            z-index: 2;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
        }

        .author-img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }

        .author-info h4 {
            font-size: 1.1rem;
            color: var(--text);
            margin-bottom: 0.2rem;
        }

        .author-info p {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        /* CONTACT SECTION */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }

        .contact-info h3 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--text);
            font-family: 'Playfair Display', serif;
        }

        .contact-info p {
            color: var(--text-light);
            margin-bottom: 2rem;
            line-height: 1.7;
        }

        .contact-details {
            margin-bottom: 2rem;
        }

        .contact-detail {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .contact-detail i {
            width: 40px;
            height: 40px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .social-links {
            display: flex;
            gap: 1rem;
        }

        .social-link {
            width: 45px;
            height: 45px;
            background: var(--bg-secondary);
            color: var(--text);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: var(--transition);
        }

        .social-link:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-5px);
        }

        .contact-form {
            background: var(--bg-card);
            padding: 2.5rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text);
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--bg-secondary);
            border-radius: 8px;
            background: var(--bg);
            color: var(--text);
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        .submit-btn {
            padding: 1rem 2rem;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .submit-btn:hover {
            background: var(--primary-dark);
        }

        .submit-btn:disabled {
            background: var(--text-light);
            cursor: not-allowed;
        }

        .submit-btn .btn-text {
            transition: var(--transition);
        }

        .submit-btn .btn-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            transition: var(--transition);
        }

        .submit-btn.loading .btn-text {
            opacity: 0;
        }

        .submit-btn.loading .btn-loading {
            opacity: 1;
        }

        .form-message {
            margin-top: 1rem;
            padding: 1rem;
            border-radius: 8px;
            text-align: center;
            font-weight: 500;
            display: none;
        }

        .form-message.success {
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent);
            border: 1px solid var(--accent);
            display: block;
        }

        .form-message.error {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            border: 1px solid #ef4444;
            display: block;
        }

        /* FOOTER */
        footer {
            background: var(--bg-secondary);
            padding: 4rem 5% 2rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 3rem;
        }

        .footer-col h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: var(--text);
            position: relative;
            font-family: 'Playfair Display', serif;
        }

        .footer-col h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 40px;
            height: 3px;
            background: var(--primary);
            border-radius: 2px;
        }

        .footer-about p {
            color: var(--text-light);
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }

        .footer-links a {
            color: var(--text-light);
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .footer-links a:hover {
            color: var(--primary);
            transform: translateX(5px);
        }

        .footer-contact p {
            color: var(--text-light);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .footer-social {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .footer-social a {
            width: 40px;
            height: 40px;
            background: var(--bg-card);
            color: var(--text);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-social a:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-5px);
        }

        .footer-bottom {
            max-width: 1200px;
            margin: 3rem auto 0;
            padding-top: 2rem;
            border-top: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .copyright {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .footer-bottom-links {
            display: flex;
            gap: 1.5rem;
        }

        .footer-bottom-links a {
            color: var(--text-light);
            text-decoration: none;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .footer-bottom-links a:hover {
            color: var(--primary);
        }

        /* AI ASSISTANT */
        .ai-assistant {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            z-index: 1000;
        }

        .ai-toggle {
            width: 60px;
            height: 60px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: var(--shadow-lg);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .ai-toggle::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
            transform: translateX(-100%);
        }

        .ai-toggle:hover {
            background: var(--primary-dark);
            transform: scale(1.1);
        }

        .ai-toggle:hover::before {
            animation: shine 1.5s;
        }

        @keyframes shine {
            100% {
                transform: translateX(100%);
            }
        }

        .ai-chat {
            position: absolute;
            bottom: 80px;
            right: 0;
            width: 350px;
            height: 450px;
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            display: flex;
            flex-direction: column;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: var(--transition);
            border: 1px solid var(--glass-border);
        }

        .ai-chat.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .ai-header {
            padding: 1rem;
            background: var(--primary);
            color: white;
            border-radius: var(--radius) var(--radius) 0 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .ai-header h3 {
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .close-ai {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .close-ai:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .ai-messages {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .ai-message {
            max-width: 80%;
            padding: 0.8rem 1rem;
            border-radius: 18px;
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .ai-message.bot {
            background: var(--bg-secondary);
            color: var(--text);
            align-self: flex-start;
            border-bottom-left-radius: 5px;
        }

        .ai-message.user {
            background: var(--primary);
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 5px;
        }

        .ai-input {
            padding: 1rem;
            border-top: 1px solid var(--glass-border);
            display: flex;
            gap: 0.5rem;
        }

        .ai-input input {
            flex: 1;
            padding: 0.8rem;
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            background: var(--bg);
            color: var(--text);
            outline: none;
            font-family: 'Inter', sans-serif;
        }

        .ai-send {
            width: 40px;
            height: 40px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .ai-send:hover {
            background: var(--primary-dark);
        }

        /* SCROLL TO TOP BUTTON */
        .scroll-to-top {
            position: fixed;
            bottom: 2rem;
            left: 2rem;
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            opacity: 0;
            visibility: hidden;
            z-index: 99;
            box-shadow: var(--shadow);
        }

        .scroll-to-top.active {
            opacity: 1;
            visibility: visible;
        }

        .scroll-to-top:hover {
            background: var(--primary-dark);
            transform: translateY(-5px);
        }

        /* RESPONSIVE DESIGN - FIXED FOR MOBILE */
        @media (max-width: 1200px) {
            .hero-visual {
                right: 5%;
                width: 180px;
                height: 180px;
            }
            
            .cube-face.front { transform: translateZ(90px); }
            .cube-face.back { transform: translateZ(-90px) rotateY(180deg); }
            .cube-face.right { transform: translateX(90px) rotateY(90deg); }
            .cube-face.left { transform: translateX(-90px) rotateY(-90deg); }
            .cube-face.top { transform: translateY(-90px) rotateX(90deg); }
            .cube-face.bottom { transform: translateY(90px) rotateX(-90deg); }
        }

        @media (max-width: 1024px) {
            .hero h1 {
                font-size: 3.5rem;
            }
            
            .about-content {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            
            .contact-container {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            
            .modal-details {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
            }
            
            /* FIX: Cube shows on tablet */
            .hero-visual {
                width: 150px;
                height: 150px;
                right: 5%;
            }
            
            .cube-face.front { transform: translateZ(75px); }
            .cube-face.back { transform: translateZ(-75px) rotateY(180deg); }
            .cube-face.right { transform: translateX(75px) rotateY(90deg); }
            .cube-face.left { transform: translateX(-75px) rotateY(-90deg); }
            .cube-face.top { transform: translateY(-75px) rotateX(90deg); }
            .cube-face.bottom { transform: translateY(75px) rotateX(-90deg); }
            
            .cube-face i {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .mobile-menu-btn {
                display: flex;
            }
            
            .hero h1 {
                font-size: 2.8rem;
            }
            
            .role-title {
                font-size: 1.4rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
            
            .projects-grid {
                grid-template-columns: 1fr;
            }
            
            .info-cards {
                grid-template-columns: 1fr 1fr;
            }
            
            .ai-chat {
                width: 300px;
                height: 400px;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
            
            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
            
            .profile-3d-container {
                width: 250px;
                height: 250px;
            }
            
            .tech-orbits {
                width: 300px;
                height: 300px;
            }
            
            .orbit-1 {
                width: 280px;
                height: 280px;
            }
            
            .orbit-2 {
                width: 220px;
                height: 220px;
            }
            
            .orbit-3 {
                width: 160px;
                height: 160px;
            }
            
            /* FIX: Cube shows on mobile with adjusted size */
            .hero-visual {
                width: 120px;
                height: 120px;
                right: 5%;
                top: 40%;
            }
            
            .cube-face.front { transform: translateZ(60px); }
            .cube-face.back { transform: translateZ(-60px) rotateY(180deg); }
            .cube-face.right { transform: translateX(60px) rotateY(90deg); }
            .cube-face.left { transform: translateX(-60px) rotateY(-90deg); }
            .cube-face.top { transform: translateY(-60px) rotateX(90deg); }
            .cube-face.bottom { transform: translateY(60px) rotateX(-90deg); }
            
            .cube-face i {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2.2rem;
            }
            
            .role-title {
                font-size: 1.2rem;
            }

            
            .info-cards {
                grid-template-columns: 1fr;
            }
            
            .profile-3d-container {
                width: 200px;
                height: 200px;
            }
            
            .modal-body {
                padding: 1.5rem;
            }
            
            .modal-header {
                padding: 1rem 1.5rem;
            }
            
            .ai-chat {
                width: 280px;
                right: -20px;
            }
            
            .tech-orbits {
                width: 250px;
                height: 250px;
            }
            
            .orbit-1 {
                width: 230px;
                height: 230px;
            }
            
            .orbit-2 {
                width: 180px;
                height: 180px;
            }
            
            .orbit-3 {
                width: 130px;
                height: 130px;
            }
            
            .project-filters {
                flex-direction: column;
                align-items: center;
            }
            
            .filter-btn {
                width: 100%;
                max-width: 200px;
            }
            
            /* FIX: Cube shows on small mobile with further adjustments */
            .hero-visual {
                width: 100px;
                height: 100px;
                right: 5%;
                top: 35%;
            }
            
            .cube-face.front { transform: translateZ(50px); }
            .cube-face.back { transform: translateZ(-50px) rotateY(180deg); }
            .cube-face.right { transform: translateX(50px) rotateY(90deg); }
            .cube-face.left { transform: translateX(-50px) rotateY(-90deg); }
            .cube-face.top { transform: translateY(-50px) rotateX(90deg); }
            .cube-face.bottom { transform: translateY(50px) rotateX(-90deg); }
            
            .cube-face i {
                font-size: 1.5rem;
            }
        }

        /* Leadership Section Styles */
.leadership {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leadership-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.leadership-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: var(--transition);
}

.leadership-card:hover::before {
    left: 100%;
}

.leadership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.leadership-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow);
}

.leadership-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
}

.leadership-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.metrics {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.metric {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.leadership-skills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skill-tag {
    background: var(--bg-secondary);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--glass-border);
}

/* Responsive Design for Leadership Section */
@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .leadership-card {
        padding: 2rem 1.5rem;
    }
    
    .leadership-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .metrics {
        flex-direction: column;
        align-items: center;
    }
    
    .metric {
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .leadership-card {
        padding: 1.5rem 1rem;
    }
    
    .leadership-card h3 {
        font-size: 1.3rem;
    }
    
    .leadership-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===== CODE PLAYGROUND STYLES ===== */
.code-playground-section {
    padding: 6rem 5%;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.code-playground-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.playground-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.playground-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Orbitron', sans-serif;
}

.playground-title i {
    font-size: 1.5rem;
}

.playground-title h3 {
    margin: 0;
    font-size: 1.4rem;
}

.playground-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.theme-select {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.theme-select:hover {
    background: white;
    transform: translateY(-2px);
}

.run-btn, .reset-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.run-btn {
    background: var(--accent);
    color: white;
}

.run-btn:hover {
    background: #0da271;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.reset-btn {
    background: var(--text-light);
    color: white;
}

.reset-btn:hover {
    background: #475569;
    transform: translateY(-2px);
}

.playground-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 500px;
    border-top: 1px solid var(--glass-border);
}

/* Editor Panel */
.editor-panel {
    background: #1e1e1e;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: #2d2d2d;
    padding: 0.8rem 1.2rem;
    color: #ccc;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-actions, .console-actions {
    display: flex;
    gap: 0.5rem;
}

.format-btn, .clear-btn {
    background: transparent;
    border: 1px solid #666;
    color: #ccc;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.format-btn:hover, .clear-btn:hover {
    background: #444;
    border-color: #888;
}

.code-editor-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.code-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: transparent;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 1rem;
    resize: none;
    outline: none;
    caret-color: #fff;
    tab-size: 4;
    z-index: 2;
}

.syntax-highlighting {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #d4d4d4;
    white-space: pre-wrap;
    word-wrap: break-word;
    pointer-events: none;
    z-index: 1;
    overflow-y: auto;
}

/* Console Panel */
.console-panel {
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
}

.output-content {
    flex: 1;
    padding: 1rem;
    color: #00ff00;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-y: auto;
    background: #1e1e1e;
}

.welcome-message {
    color: #ccc;
    line-height: 1.6;
    text-align: center;
    padding: 2rem;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.welcome-message h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.output-line {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    border-left: 3px solid transparent;
    padding-left: 0.5rem;
}

.output-line.info {
    border-left-color: #4299e1;
    color: #90cdf4;
}

.output-line.success {
    border-left-color: #48bb78;
    color: #9ae6b4;
}

.output-line.warning {
    border-left-color: #ed8936;
    color: #fbd38d;
}

.output-line.error {
    border-left-color: #f56565;
    color: #feb2b2;
}

.output-line.log {
    border-left-color: #a0aec0;
    color: #e2e8f0;
}

/* Examples Section */
.examples-section {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.examples-section h4 {
    margin-bottom: 1rem;
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
}

.example-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.example-btn {
    padding: 0.8rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.example-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Syntax Highlighting Colors */
.keyword { color: #569cd6; }
.string { color: #ce9178; }
.comment { color: #6a9955; }
.number { color: #b5cea8; }
.function { color: #dcdcaa; }
.operator { color: #d4d4d4; }
.punctuation { color: #d4d4d4; }
.builtin { color: #4ec9b0; }

/* Light Theme Support */
.code-playground-container.light-theme .editor-panel,
.code-playground-container.light-theme .console-panel {
    background: #f8fafc;
}

.code-playground-container.light-theme .panel-header {
    background: #e2e8f0;
    color: #475569;
    border-bottom-color: #cbd5e1;
}

.code-playground-container.light-theme .code-input {
    caret-color: #1e293b;
}

.code-playground-container.light-theme .syntax-highlighting {
    color: #334155;
}

.code-playground-container.light-theme .output-content {
    background: #f8fafc;
    color: #059669;
}

.code-playground-container.light-theme .output-line.info { color: #1d4ed8; }
.code-playground-container.light-theme .output-line.success { color: #047857; }
.code-playground-container.light-theme .output-line.warning { color: #d97706; }
.code-playground-container.light-theme .output-line.error { color: #dc2626; }
.code-playground-container.light-theme .output-line.log { color: #475569; }

/* Light theme syntax highlighting */
.code-playground-container.light-theme .keyword { color: #d73a49; }
.code-playground-container.light-theme .string { color: #032f62; }
.code-playground-container.light-theme .comment { color: #6a737d; }
.code-playground-container.light-theme .number { color: #005cc5; }
.code-playground-container.light-theme .function { color: #6f42c1; }
.code-playground-container.light-theme .operator { color: #d73a49; }
.code-playground-container.light-theme .punctuation { color: #24292e; }
.code-playground-container.light-theme .builtin { color: #e36209; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .playground-content {
        height: 450px;
    }
}

@media (max-width: 1024px) {
    .playground-content {
        height: 400px;
    }
    
    .code-input, .syntax-highlighting {
        font-size: 13px;
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .playground-content {
        grid-template-columns: 1fr;
        height: 600px;
    }
    
    .editor-panel {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .playground-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .playground-controls {
        justify-content: center;
    }
    
    .examples-section {
        padding: 1rem 1.5rem;
    }
    
    .example-buttons {
        justify-content: center;
    }
    
    .code-input, .syntax-highlighting {
        font-size: 12px;
        padding: 0.8rem;
    }
}

@media (max-width: 640px) {
    .playground-content {
        height: 700px;
    }
    
    .playground-controls {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .run-btn, .reset-btn, .theme-select {
        width: 100%;
        justify-content: center;
    }
    
    .example-buttons {
        flex-direction: column;
    }
    
    .example-btn {
        justify-content: center;
    }
    
    .panel-header {
        padding: 0.6rem 1rem;
    }
    
    .output-content {
        padding: 0.8rem;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .code-playground-section {
        padding: 4rem 3%;
    }
    
    .playground-content {
        height: 650px;
    }
    
    .code-input, .syntax-highlighting {
        font-size: 11px;
        padding: 0.6rem;
    }
    
    .welcome-message {
        padding: 1rem;
    }
    
    .welcome-icon {
        font-size: 2rem;
    }
}
.modal-media {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.modal-media i {
  font-size: 80px;
  color: #ff4b5c;
}

.modal-image-display {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.modal-video iframe {
  width: 100%;
  max-width: 640px;
  height: 360px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
/* Project Modal Media Styles */
.modal-media {
    width: 100%;
    height: 300px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-media i {
    font-size: 4rem;
    color: var(--primary);
}

.modal-image-display {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.modal-video {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
}

.modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
}

/* Responsive adjustments for modal media */
@media (max-width: 768px) {
    .modal-media {
        height: 250px;
    }
    
    .modal-media i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .modal-media {
        height: 200px;
    }
    
    .modal-media i {
        font-size: 2.5rem;
    }
}