/* ==========================================
   Global Styles & Reset
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Premium Business Theme */
    --primary-color: #00d4ff;
    --primary-light: #4de1ff;
    --primary-dark: #00a8cc;
    --secondary-color: #ffd700;
    --accent-color: #ff6b35;
    
    --bg-dark: #0a0e27;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --gradient-2: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ==========================================
   Splash / Intro Overlay
   ========================================== */
.splash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.15), transparent 55%),
                radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.12), transparent 60%),
                var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: opacity 1s ease, visibility 1s ease;
}

.splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash .symmetric-glow { /* reserved for future */ }

.splash .splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.2s forwards;
}

.splash .logo {
    transform: scale(1.6);
}

.splash .logo .logo-text {
    font-size: 4rem;
    animation: logoSpin 1.6s ease-in-out infinite, rainbowPulse 2.4s ease-in-out infinite;
}

.splash .splash-sub {
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    font-weight: 600;
}

.splash .splash-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.18);
    border-top-color: var(--primary-color);
    animation: spin 1.1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}
.nav-toggle .bar {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: opacity .25s ease;
}
.nav-toggle:hover { background: var(--bg-card-hover); }
body.nav-open .nav-toggle .bar { opacity: 0; }
body.nav-open .nav-toggle::after{
    content: '✕';
    position: absolute;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1;
}

/* Mobile-only controls hidden by default */
.nav-mobile-controls { display: none; }

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    transition: var(--transition);
    animation: none;
}

.logo:hover .logo-text {
    animation: logoSpin 0.8s ease-in-out;
}

.logo.active .logo-text {
    animation: logoJump 0.6s ease-in-out;
}

.logo.clicked .logo-text {
    animation: logoExplode 1s ease-in-out;
}

/* Logo Animations */
@keyframes logoSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(360deg) scale(1.2);
    }
}

@keyframes logoJump {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(10deg);
    }
    50% {
        transform: translateY(-10px) rotate(-10deg);
    }
    75% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes logoExplode {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    30% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(0.5) rotate(360deg);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.3) rotate(540deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(720deg);
        opacity: 1;
    }
}

/* Logo particle effect */
.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.logo:active::before {
    width: 100px;
    height: 100px;
    opacity: 0.3;
    transition: all 0s;
}

.logo:active::before {
    transition: all 0.6s ease;
    opacity: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: rotate(20deg);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    filter: blur(60px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
    filter: blur(60px);
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1) translateY(0); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.2) translateY(-20px); 
        opacity: 0.8; 
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
}

.gradient-text {
    font-size: 4.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--bg-card-hover);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

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

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

/* Hero Card */
.hero-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.95));
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2), 0 0 40px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-image {
    margin-bottom: var(--spacing-lg);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-card-hover);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-color);
}

.image-placeholder.large {
    aspect-ratio: 3/4;
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-card-content h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.role {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-item h5 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--primary-light);
}

/* ==========================================
   Section Headers
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.section-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-sm);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.section-underline::before,
.section-underline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--gradient-2);
    transform: translateY(-50%);
}

.section-underline::before {
    right: 100%;
    margin-right: 10px;
}

.section-underline::after {
    left: 100%;
    margin-left: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 26, 46, 0.5) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-1);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.experience-badge h3 {
    font-size: 3rem;
    margin-bottom: 0;
}

.experience-badge p {
    font-size: 0.9rem;
    line-height: 1.3;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.info-item strong {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-item span {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.about-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Interests */
.interests {
    margin-top: var(--spacing-xxl);
}

.interests-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.interest-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition);
}

.interest-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.interest-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.interest-card h4 {
    font-size: 1.1rem;
}

/* More About */
.more-about {
    margin-top: var(--spacing-xxl);
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.more-about h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-light);
}

.more-about p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ==========================================
   Services Section
   ========================================== */
.services {
    padding: var(--spacing-xxl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.6), rgba(31, 41, 55, 0.6));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.9));
    border-color: var(--primary-color);
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 102, 255, 0.15) 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   Experience & Education Timeline
   ========================================== */
.experience,
.education {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.3) 0%, var(--bg-dark) 100%);
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xxl);
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition);
}

.timeline-content:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.timeline-header h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.timeline-date {
    background: rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--primary-light);
}

.timeline-company {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content ul li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================
   Projects Section
   ========================================== */
.projects {
    padding: var(--spacing-xxl) 0;
}

.project-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}


.project-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(255, 215, 0, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 212, 255, 0.4);
    border-color: var(--primary-color);
}

.project-card:hover::after {
    opacity: 1;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image .image-placeholder {
    border-radius: 0;
    border: none;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.project-image .image-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 92, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.project-content {
    padding: var(--spacing-lg);
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--primary-light);
}

/* ==========================================
   Skills Section
   ========================================== */
.skills {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.3) 0%, var(--bg-dark) 100%);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.skills-category {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.7), rgba(31, 41, 55, 0.7));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
}

.skills-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.skills-category:hover::before {
    opacity: 0.3;
}

.skills-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.3);
}

.skills-category.featured {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 102, 255, 0.2) 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.25);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.category-icon {
    font-size: 2.5rem;
}

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

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.skill-item {
    
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

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

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

.skill-bar {
    height: 8px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    transition: width 1s ease;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: var(--spacing-xxl) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xxl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.contact-card p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card-hover);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-status {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
    margin-top: var(--spacing-md);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-card-hover);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-newsletter {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
}

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

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

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .projects-grid,
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu { display: none; }
    .nav-toggle { display: inline-flex; }
    body.nav-open .nav-menu {
        position: absolute;
        top: 70px;
        right: 16px;
        left: 16px;
        display: block;
        background: var(--bg-card);
        border: 1px solid rgba(0, 212, 255, 0.25);
        border-radius: 16px;
        padding: 8px 0;
        box-shadow: 0 18px 40px rgba(0,0,0,0.35);
        z-index: 1001;
    }
    body.nav-open .nav-menu li { padding: 10px 18px; border-top: 1px solid rgba(255,255,255,0.06); }
    body.nav-open .nav-menu li:first-child{ border-top: 0; }
    body.nav-open .nav-menu a { display: block; }
    
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Navbar: kompaktes Layout */
    /* Hide desktop controls on mobile header */
    .language-switcher:not(.mobile), .cta-button, .theme-toggle:not(.mobile) { display: none; }
    /* Show mobile controls inside menu */
    .nav-mobile-controls { display: block; padding: 8px 16px; }
    .nav-mobile-controls .language-switcher.mobile { justify-content: center; margin-bottom: 6px; }
    .nav-mobile-controls .theme-toggle.mobile { display: flex; justify-content: center; }
}

@media (max-width: 768px) {
    .gradient-text {
        font-size: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .services-grid,
    .projects-grid,
    .skills-container,
    .interests-grid {
        grid-template-columns: 1fr;
    }
    /* (Revert) Overlay bleibt wie Desktop, kein permanentes Einblenden */
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats { grid-template-columns: repeat(3, 1fr); }
    .projects-grid {
        grid-auto-flow: column;
        grid-auto-columns: 85%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--spacing-md);
        padding-bottom: 8px;
    }
    .project-card { scroll-snap-align: start; }

    /* Container-Padding enger, damit nichts quetscht */
    .container { padding: 0 var(--spacing-md); }

    /* Hero: Reihenfolge Bild zuerst, dann Text */
    .hero { padding: 120px 0 70px; }
    .hero-card { order: 1; }
    .hero-text { order: 2; }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons,
    .about-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    .container { padding: 0 var(--spacing-sm); }
    .hero { padding: 110px 0 60px; }
    .section-header h2 { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.98rem; }
    .gradient-text { font-size: 2.4rem; }
    .hero-text h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-description { font-size: 0.98rem; }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* ==========================================
   Light Mode Styles
   ========================================== */
body.light-mode {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    color: #1e293b;
}

body.light-mode::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
}

/* Navbar Light Mode */
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .logo {
    color: #0a0e27;
}

body.light-mode .nav-link {
    color: #475569;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    color: #0066ff;
}

body.light-mode .cta-button {
    background: var(--gradient-1);
    color: white;
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    color: #0a0e27;
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Language Switcher Light Mode */
body.light-mode .language-switcher {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .lang-btn {
    color: #475569;
}

body.light-mode .lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0066ff;
}

body.light-mode .lang-btn.active {
    background: var(--gradient-1);
    color: white;
}

/* Hero Section Light Mode */
body.light-mode .hero {
    background: transparent;
}

body.light-mode .hero-title,
body.light-mode .hero-subtitle,
body.light-mode .hero-text h1,
body.light-mode .hero-text h2 {
    color: #0a0e27;
}

body.light-mode .hero-text p {
    color: #475569;
}

body.light-mode .hero-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .hero-card h2,
body.light-mode .hero-card h3 {
    color: #0a0e27;
}

body.light-mode .stat-item h5 {
    color: #0066ff;
}

body.light-mode .stat-item p {
    color: #64748b;
}

body.light-mode .tech-badge {
    background: rgba(0, 212, 255, 0.1);
    color: #0066ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Buttons Light Mode */
body.light-mode .btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

body.light-mode .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

body.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #0a0e27;
    border: 2px solid #0066ff;
}

body.light-mode .btn-secondary:hover {
    background: rgba(0, 102, 255, 0.1);
}

/* Section Titles Light Mode */
body.light-mode .section-title,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
    color: #0a0e27;
}

body.light-mode .section-subtitle {
    color: #475569;
}

body.light-mode .section-underline {
    background: var(--gradient-1);
}

/* Cards Light Mode */
body.light-mode .about-card,
body.light-mode .service-card,
body.light-mode .project-card,
body.light-mode .skills-category,
body.light-mode .interest-card,
body.light-mode .timeline-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.light-mode .service-card:hover,
body.light-mode .project-card:hover,
body.light-mode .skills-category:hover,
body.light-mode .interest-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
}

body.light-mode .service-card h3,
body.light-mode .project-card h3,
body.light-mode .skills-category h3,
body.light-mode .interest-card h3 {
    color: #0a0e27;
}

body.light-mode .service-card p,
body.light-mode .project-card p,
body.light-mode .interest-card p {
    color: #475569;
}

body.light-mode .service-icon {
    background: rgba(0, 212, 255, 0.1);
    color: #0066ff;
}

/* About Section Light Mode */
body.light-mode .about-text p,
body.light-mode .about-info p {
    color: #475569;
}

body.light-mode .about-info strong {
    color: #0a0e27;
}

body.light-mode .experience-badge {
    background: var(--gradient-1);
    color: white;
}

/* Timeline Light Mode */
body.light-mode .timeline::before {
    background: rgba(0, 212, 255, 0.3);
}

body.light-mode .timeline-content h3 {
    color: #0a0e27;
}

body.light-mode .timeline-content h4,
body.light-mode .timeline-content p {
    color: #475569;
}

body.light-mode .timeline-date {
    background: var(--gradient-1);
    color: white;
}

body.light-mode .timeline-icon {
    background: white;
    border: 3px solid #0066ff;
    color: #0066ff;
}

/* Projects Light Mode */
body.light-mode .filter-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .filter-btn:hover,
body.light-mode .filter-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

body.light-mode .project-link {
    color: #0066ff;
}

body.light-mode .tag {
    background: rgba(0, 212, 255, 0.1);
    color: #0066ff;
}

body.light-mode .image-placeholder {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .placeholder-text {
    color: #94a3b8;
}

/* Skills Light Mode */
body.light-mode .skill-item p {
    color: #475569;
}

body.light-mode .skill-bar {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .skill-progress {
    background: var(--gradient-1);
}

/* Contact Light Mode */
body.light-mode .contact-info-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-info-item:hover {
    border-color: rgba(0, 212, 255, 0.5);
}

body.light-mode .contact-icon {
    background: rgba(0, 212, 255, 0.1);
    color: #0066ff;
}

body.light-mode .contact-info-item h4 {
    color: #0a0e27;
}

body.light-mode .contact-info-item p,
body.light-mode .contact-info-item a {
    color: #475569;
}

body.light-mode input,
body.light-mode textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0a0e27;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: #94a3b8;
}

/* Social Links Light Mode */
body.light-mode .social-links a {
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .social-links a:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

/* Footer Light Mode */
body.light-mode footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .footer-section h4 {
    color: #0a0e27;
}

body.light-mode .footer-section p,
body.light-mode .footer-links a,
body.light-mode .footer-contact li {
    color: #475569;
}

body.light-mode .footer-links a:hover {
    color: #0066ff;
}

body.light-mode .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .footer-bottom p,
body.light-mode .footer-links a {
    color: #64748b;
}

/* Scroll to Top Light Mode */
body.light-mode #scrollTop {
    background: var(--gradient-1);
    color: white;
}

body.light-mode #scrollTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

/* Animations - Smooth Transitions */
body.light-mode,
body.light-mode * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==========================================
   Project Modal
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: var(--spacing-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.modal-header {
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    padding-bottom: var(--spacing-md);
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.modal-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-details h3,
.modal-gallery h3,
.modal-technologies h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.modal-details ul {
    list-style: none;
    padding: 0;
}

.modal-details li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-secondary);
}

.modal-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    font-size: 3rem;
    opacity: 0.5;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.tech-item {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    color: var(--primary-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

/* Light Mode Modal */
body.light-mode .modal {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .modal-content {
    background: white;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-close {
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .modal-close:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
}

body.light-mode .modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-description p,
body.light-mode .modal-details li {
    color: #475569;
}

body.light-mode .gallery-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .gallery-item:hover {
    border-color: #0066ff;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: var(--spacing-lg);
        max-height: 95vh;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

