/* --- 1. CSS Variables --- */
:root {
    --ink-black: #03071eff;
    --night-bordeaux: #2a0410; 
    --black-cherry: #4a030b;
    --oxblood: #9d0208ff;
    --red-ochre: #dc2f02ff;
    --cayenne-red: #e85d04ff;
    --orange: #faa307ff;
    --amber-flame: #ffba08ff;

    --bg-main: var(--ink-black);
    --bg-shade-1: #060914; 
    --bg-shade-2: var(--night-bordeaux); 
    --bg-shade-3: #0a050f;
    --bg-card: #0f1225; 
    --nav-bg: rgba(3, 7, 30, 0.98); 
    
    --text-main: #fffcf2;
    --text-muted: #94a3b8;
    --border-ui: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(220, 47, 2, 0.3);
    --title-gradient: linear-gradient(to right, var(--amber-flame), var(--cayenne-red));

    --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 2rem;
    --space-lg: 4rem; --space-xl: 6rem; --space-xxl: 8rem;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --noise-pattern: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

[data-theme="light"] {
    --bg-main: #fdfbf7; --bg-shade-1: #f7f3ee; --bg-shade-2: #f2e9e4; --bg-shade-3: #fdfbf7;
    --bg-card: #ffffff; --nav-bg: rgba(253, 251, 247, 0.98); 
    --text-main: var(--ink-black); --text-muted: #475569; 
    --border-ui: rgba(0, 0, 0, 0.1); --accent-glow: rgba(220, 47, 2, 0.15);
    --title-gradient: linear-gradient(to right, var(--red-ochre), var(--black-cherry));
}

/* --- 2. Reset & Utilities --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-main); color: var(--text-main); font-family: var(--font-main); line-height: 1.6; overflow-x: hidden; transition: background-color 0.4s ease, color 0.4s ease; }

.pt-sm { padding-top: var(--space-sm); } .pb-sm { padding-bottom: var(--space-sm); } .py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.pt-md { padding-top: var(--space-md); } .pb-md { padding-bottom: var(--space-md); } .py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); } .px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); } .pb-lg { padding-bottom: var(--space-lg); } .py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); } .px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); } .pb-xl { padding-bottom: var(--space-xl); } .py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-xxl { padding-top: var(--space-xxl); padding-bottom: var(--space-xxl); }
.mt-sm { margin-top: var(--space-sm); } .mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); } .mb-lg { margin-bottom: var(--space-lg); }
.text-center { text-align: center; }

.bg-shade-1 { background: var(--noise-pattern), var(--bg-shade-1); }
.bg-shade-2 { background: var(--noise-pattern), var(--bg-shade-2); }
.bg-shade-3 { background: var(--noise-pattern), var(--bg-shade-3); }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-cta-small { color: var(--color-accent); }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }


.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.section { position: relative; z-index: 10; }

h1, h2, h3, h4 { line-height: 1.2; }
.section-title { font-size: 2.5rem; background: var(--title-gradient); -webkit-background-clip: text; color: transparent; display: inline-block; }
a { color: var(--orange); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--amber-flame); }
[data-theme="light"] a { color: var(--red-ochre); }

/* SVG Icons */
.social-icons-wrapper { display: flex; gap: 1rem; }
.social-icon svg { width: 26px; height: 26px; fill: var(--text-main); transition: var(--transition-smooth); }
.social-icon:hover svg { fill: var(--orange); transform: translateY(-3px); }
[data-theme="light"] .social-icon:hover svg { fill: var(--red-ochre); }

/* CSS Hardware-Animation Classes */
.animate-on-scroll { opacity: 0; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-up { transform: translateY(40px); }
.animate-left { transform: translateX(-50px); }
.animate-right { transform: translateX(50px); }
.in-view { opacity: 1 !important; transform: translate(0, 0) !important; }

/* --- 3. Navigation --- */
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: var(--space-sm) 5%; background: var(--nav-bg); border-bottom: 1px solid var(--border-ui); z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.logo span { color: var(--amber-flame); }
[data-theme="light"] .logo span { color: var(--red-ochre); }
.nav-links { display: flex; gap: var(--space-md); list-style: none; margin-left: auto; margin-right: var(--space-md); }
.nav-links a { color: var(--text-main); font-weight: 600; }
.nav-links a:hover { color: var(--amber-flame); }
[data-theme="light"] .nav-links a:hover { color: var(--red-ochre); }
.theme-btn { background: transparent; border: 1px solid var(--border-ui); color: var(--text-main); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--transition-smooth); }
.theme-btn:hover { background: var(--border-ui); transform: scale(1.1); }

/* --- 4. Hero & Lag-Free WebGL --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; position: relative; background-color: var(--ink-black); margin-bottom: 0; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 20%, var(--ink-black) 100%), rgba(3, 7, 30, 0.5); z-index: 1; pointer-events: none; }
[data-theme="light"] .hero::after { background: radial-gradient(circle at center, transparent 20%, rgba(253, 251, 247, 0.8) 100%), rgba(253, 251, 247, 0.2); }
#canvas-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; }
#canvas-container canvas { display: block; width: 100%; height: 100%; }
.canvas-visible { animation: fadeInCanvas 1.5s ease-in forwards; }
@keyframes fadeInCanvas { to { opacity: 1; } }

.hero-fade { position: absolute; bottom: 0; left: 0; width: 100%; height: 150px; background: linear-gradient(to bottom, transparent, var(--bg-shade-1)); z-index: 3; pointer-events: none; }
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; padding: 0 var(--space-md); position: relative; z-index: 4; pointer-events: none; }

.subtitle { color: var(--orange); font-weight: 700; margin-bottom: var(--space-xs); letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
[data-theme="light"] .subtitle { color: var(--red-ochre); text-shadow: none; }
#dynamic-name { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900; margin-bottom: var(--space-sm); letter-spacing: -2px; text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.6); }
[data-theme="light"] #dynamic-name { text-shadow: none; }
.role { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--text-main); margin-bottom: var(--space-xs); font-weight: 400; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
[data-theme="light"] .role { text-shadow: none; }
.location { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-lg); text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
[data-theme="light"] .location { text-shadow: none; }

.hero-cta { display: flex; gap: var(--space-sm); justify-content: center; pointer-events: auto; }
.btn { padding: 0.8rem 2rem; border-radius: 30px; text-decoration: none; font-weight: 600; transition: var(--transition-smooth); border: none; cursor: pointer; display: inline-block;}
.btn-primary { background: linear-gradient(135deg, var(--red-ochre), var(--cayenne-red)); color: #fffcf2; box-shadow: 0 4px 15px rgba(220, 47, 2, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(220, 47, 2, 0.5); background: linear-gradient(135deg, var(--cayenne-red), var(--orange)); color: white;}
.btn-secondary { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-ui); }
.btn-secondary:hover { background: var(--bg-shade-2); border-color: var(--amber-flame); }

/* --- 5. Clean Centered Video Section --- */
.video-centered-wrapper {
    max-width: 900px; margin: 0 auto; border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid var(--border-ui);
    background: #000;
}
[data-theme="light"] .video-centered-wrapper { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-centered-wrapper video { width: 100%; display: block; outline: none; }

/* --- 6. About Sektion --- */
.about-creative-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-xl); align-items: center; }
.about-image-column { position: relative; perspective: 1000px; display: flex; justify-content: center; }
.image-repel-wrapper { position: relative; width: 100%; max-width: 450px; cursor: crosshair; }
.profile-img-free { width: 100%; height: auto; border-radius: 20px; display: block; position: relative; z-index: 2; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transition: transform 0.2s ease-out; transform-style: preserve-3d; }
.glow-blob { position: absolute; top: 10%; left: 10%; width: 80%; height: 80%; background: radial-gradient(circle, var(--cayenne-red) 0%, transparent 70%); filter: blur(50px); z-index: 1; opacity: 0.6; animation: pulseGlow 4s infinite alternate; }
@keyframes pulseGlow { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.1); opacity: 0.8; } }

.about-greeting { font-size: 2rem; color: var(--orange); margin-bottom: 1rem; }
[data-theme="light"] .about-greeting { color: var(--red-ochre); }
.about-desc { font-size: 1.15rem; color: var(--text-main); line-height: 1.8; opacity: 0.9; }

.personal-info ul, .language-list { list-style: none; }
.personal-info li, .language-list li { margin-bottom: 0.5rem; font-size: 1rem; color: var(--text-main); opacity: 0.85; }
.personal-info strong, .language-list strong { color: var(--orange); margin-right: 0.5rem; opacity: 1; }

.info-card { background: var(--bg-card); border: 1px solid var(--border-ui); padding: var(--space-md); border-radius: var(--border-radius); transition: var(--transition-smooth); }

.skills-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tag { background: var(--bg-shade-1); border: 1px solid var(--border-ui); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.85rem; color: var(--text-main); transition: var(--transition-smooth); }
.tag:hover { border-color: var(--amber-flame); background: var(--amber-flame); color: var(--ink-black); }
[data-theme="light"] .tag { background: var(--bg-main); }
[data-theme="light"] .tag:hover { border-color: var(--red-ochre); background: var(--red-ochre); color: white;}

/* --- 7. Kreativer Lebenslauf --- */
.central-timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-center-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--cayenne-red), var(--night-bordeaux), transparent); transform: translateX(-50%); border-radius: 2px; }
.timeline-row { display: flex; justify-content: flex-end; padding: var(--space-sm) 0; width: 50%; position: relative; }
.timeline-row.left { justify-content: flex-end; padding-right: 40px; }
.timeline-row.right { left: 50%; justify-content: flex-start; padding-left: 40px; }

.timeline-card { width: 100%; position: relative; transition: transform 0.3s ease; border: 1px solid var(--border-ui); background: var(--bg-card); }
.timeline-card:hover { transform: translateY(-5px); border-color: var(--orange); z-index: 2; }
[data-theme="light"] .timeline-card:hover { border-color: var(--red-ochre); }

.timeline-row::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--bg-main); border: 4px solid var(--orange); z-index: 2; }
.timeline-row.left::after { right: -10px; }
.timeline-row.right::after { left: -10px; }
[data-theme="light"] .timeline-row::after { border-color: var(--red-ochre); }

.cv-tag { display: inline-block; padding: 4px 10px; border-radius: 15px; font-size: 0.75rem; font-weight: bold; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;}
.cv-tag.praxis { background: rgba(250, 163, 7, 0.1); color: var(--orange); border: 1px solid var(--orange); }
.cv-tag.edu { background: rgba(220, 47, 2, 0.1); color: var(--red-ochre); border: 1px solid var(--red-ochre); }
.cv-year { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; margin-bottom: 5px;}
.timeline-card h4 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 5px; }
.timeline-card p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* --- 8. Featured & Blog --- */
.featured-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-lg); align-items: stretch; }
.featured-main { position: relative; }
.featured-label { position: absolute; top: 15px; right: 15px; background: var(--red-ochre); color: white; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; z-index: 2;}
.featured-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.btn-text { color: var(--orange); font-weight: bold; font-size: 0.9rem; }
[data-theme="light"] .btn-text { color: var(--red-ochre); }

.latest-updates { display: flex; flex-direction: column; }
.blog-title { font-size: 1.3rem; margin-bottom: var(--space-md); border-bottom: 1px solid var(--border-ui); padding-bottom: 0.5rem; }
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-item { border-left: 2px solid var(--border-ui); padding-left: 15px; transition: var(--transition-smooth); cursor: pointer; }
.blog-item:hover { border-color: var(--orange); }
[data-theme="light"] .blog-item:hover { border-color: var(--red-ochre); }
.blog-date { display: block; font-size: 0.8rem; color: var(--orange); margin-bottom: 0.2rem; font-weight: bold; }
[data-theme="light"] .blog-date { color: var(--red-ochre); }
.blog-item p { font-size: 0.95rem; margin: 0; line-height: 1.4; color: var(--text-muted); }
.blog-item strong { color: var(--text-main); }

/* --- 9. Project Archive (Dynamische Cards) --- */
.filter-buttons { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.filter-btn { background: var(--bg-card); border: 1px solid var(--border-ui); color: var(--text-main); padding: 0.6rem 1.5rem; border-radius: 30px; cursor: pointer; transition: var(--transition-smooth); font-family: inherit; font-weight: 600; }
.filter-btn.active, .filter-btn:hover { background: var(--text-main); border-color: var(--text-main); color: var(--bg-main); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-md); }

/* Globale Card Styles für alle JS generierten Karten */
.project-card { background: var(--bg-card); border: 1px solid var(--border-ui); border-radius: var(--border-radius); overflow: hidden; transition: var(--transition-smooth); cursor: pointer; }
.project-card:hover { transform: translateY(-8px); border-color: var(--border-ui); }
[data-theme="light"] .project-card:hover { border-color: var(--border-ui); }

/* Bilder werden über JS als inline background-image gesetzt, wir definieren nur das Verhalten */
.card-img { height: 220px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border-ui); background-color: var(--bg-shade-1); }
.card-info { padding: var(--space-md); }
.card-info h3 { margin-bottom: var(--space-xs); font-size: 1.2rem; color: var(--text-main); }
.category { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.card-desc { margin-bottom: var(--space-md); color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.card-keywords { margin-top: var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: flex-start; }

/* --- 10. Modal --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { width: 100%; max-width: 1000px; max-height: 90vh; overflow-y: auto; position: relative; padding: 0; transform: translateY(30px); transition: all 0.3s ease; border: 1px solid var(--border-ui); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 20px; background: rgba(0,0,0,0.6); color: white; border: 1px solid rgba(255,255,255,0.2); font-size: 1.5rem; cursor: pointer; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; z-index: 10; transition: var(--transition-smooth); }
.modal-close:hover { background: var(--text-main); color: var(--bg-main); transform: scale(1.1); }

.modal-video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; border-bottom: 1px solid var(--border-ui); }
.modal-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.modal-hero-img { width: 100%; height: 350px; object-fit: cover; border-bottom: 1px solid var(--border-ui); display: block; }

.modal-header-meta { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-ui); flex-wrap: wrap; gap: 1rem;}
#modal-title { font-size: 2.5rem; margin: 0;}
.modal-status { font-weight: bold; color: var(--orange); font-size: 0.9rem; padding: 5px 15px; border: 1px solid var(--orange); border-radius: 20px;}
[data-theme="light"] .modal-status { color: var(--red-ochre); border-color: var(--red-ochre);}

.modal-layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-xl); }
.modal-main-content { font-size: 1.05rem; padding-top: 1rem; }
.modal-team { color: var(--text-muted); margin-bottom: 3.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-ui); }
.modal-desc { line-height: 1.9; color: var(--text-main); opacity: 0.95; font-size: 1.05rem; }
.modal-desc p { margin-bottom: 1.8rem; letter-spacing: 0.3px; }
.modal-desc p:first-child { font-size: 1.15rem; font-weight: 500; color: var(--amber-flame); margin-bottom: 2rem; }
[data-theme="light"] .modal-desc p:first-child { color: var(--red-ochre); }
.modal-desc img { max-width: 100%; height: auto; border-radius: var(--border-radius); margin: 2.5rem 0; border: 1px solid var(--border-ui); box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: var(--transition-smooth); }
.modal-desc img:hover { transform: scale(1.02); box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.modal-desc h4 { font-size: 1.4rem; color: var(--text-main); margin-top: 2.5rem; margin-bottom: 1.2rem; font-weight: 700; letter-spacing: 0.5px; border-bottom: 2px solid var(--border-ui); padding-bottom: 0.8rem; }
.modal-desc ul, .modal-desc ol { margin-left: 2rem; margin-bottom: 2rem; background: var(--bg-shade-1); padding: 1.5rem 2rem; border-radius: var(--border-radius); border-left: 3px solid var(--orange); }
[data-theme="light"] .modal-desc ul, [data-theme="light"] .modal-desc ol { border-left-color: var(--red-ochre); background: var(--bg-main); }
.modal-desc li { margin-bottom: 0.8rem; color: var(--text-main); }
.modal-desc li strong { color: var(--orange); font-weight: 600; }
.modal-desc strong { color: var(--orange); font-weight: 600; }
[data-theme="light"] .modal-desc strong { color: var(--red-ochre); }
[data-theme="light"] .modal-desc li strong { color: var(--red-ochre); }

.modal-sidebar { background: var(--bg-shade-1); border-radius: var(--border-radius); border: 1px solid var(--border-ui); height: fit-content;}
.modal-sidebar h4 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-main); border-bottom: 1px solid var(--border-ui); padding-bottom: 0.5rem;}
.modal-timeline-list { display: flex; flex-direction: column; gap: 1rem; }
.modal-timeline-item { border-left: 2px solid var(--border-ui); padding-left: 15px; }
.modal-timeline-date { font-size: 0.8rem; color: var(--orange); font-weight: bold; margin-bottom: 0.2rem;}
[data-theme="light"] .modal-timeline-date { color: var(--red-ochre); }
.modal-timeline-task { font-size: 0.9rem; color: var(--text-muted); margin: 0;}

.related-projects-section { border-top: 1px solid var(--border-ui); }
.related-projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-md); }
.mini-card { background: var(--bg-shade-1); border: 1px solid var(--border-ui); border-radius: var(--border-radius); overflow: hidden; cursor: pointer; transition: var(--transition-smooth); }
.mini-card:hover { border-color: var(--text-main); }
.mini-card-img { height: 100px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border-ui);}
.mini-card-info h4 { font-size: 1rem; margin: 0; }

/* --- 11. Footer --- */
footer { border-top: 1px solid var(--border-ui); background-color: var(--bg-card); }
.footer-content { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; }

/* --- 12. Mobile --- */
@media (max-width: 900px) {
    .about-creative-layout, .featured-grid, .modal-layout-grid { grid-template-columns: 1fr; }
    .about-image-column { margin-bottom: var(--space-md); }
    .timeline-center-line { left: 20px; }
    .timeline-row, .timeline-row.left, .timeline-row.right { width: 100%; left: 0; padding-left: 50px; padding-right: 0; justify-content: flex-start; transform: translateX(0); }
    .timeline-row.left { transform: translateX(-20px); }
    .timeline-row.right { transform: translateX(20px); }
    .timeline-row::after, .timeline-row.left::after, .timeline-row.right::after { left: 12px; right: auto; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-cta { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; gap: var(--space-sm); }
    .modal-hero-img { height: 200px; }
    /* Ensure projects section is visible on mobile */
    #projects .container { opacity: 1 !important; }
    #projects .project-card { opacity: 1; }
}