:root {
    /* Vercel / Linear Inspired OLED Palette */
    --bg-1: #000000;
    --bg-2: #0a0a0a;
    --bg-3: #111111;
    --glass: rgba(10, 10, 10, 0.6);
    --glass-hover: rgba(20, 20, 20, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* The "Soul" - Highly restrained micro-accents */
    --accent-core: #3b82f6; /* Electric tech blue */
    --accent-glow: rgba(59, 130, 246, 0.15);

    /* Softened High Contrast Typography */
    --primary: #ffffff;
    --text-body: #a1a1aa; /* Warmer, softer gray for reading */
    --text-muted: #71717a;
    --gradient: linear-gradient(135deg, #ffffff, #a1a1aa);

    --shadow-lg: 0 0 40px -10px rgba(0, 0, 0, 0.8);
    --radius-lg: 12px;
    --radius-btn: 6px;
    
    /* Fluid Typography System */
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --text-xs: clamp(0.75rem, 0.7vw, 0.8rem);
    --text-sm: clamp(0.875rem, 0.8vw, 0.9rem);
    --text-base: clamp(1rem, 1vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 2vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 3vw, 2rem);
    --text-3xl: clamp(2rem, 4vw, 2.5rem);
    --text-4xl: clamp(2.5rem, 5vw, 4rem);

    /* Snappier transitions */
    --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: var(--text-base);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve focus visibility with accent color */
:focus-visible {
    outline: 2px solid var(--accent-core);
    outline-offset: 2px;
}

/* LAYOUT CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* STATUS BADGE */
.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-body); font-size: var(--text-xs); font-weight: 500;
    letter-spacing: 0.5px; padding: 6px 16px; border-radius: 30px; margin-bottom: 0;
}
.status-dot {
    width: 8px; height: 8px; background-color: #10b981; border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* CYBER GRID */
.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -3; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
}

/* NOISE LAYER */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('data:image/svg+xml;utf8,%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.04"/%3E%3C/svg%3E');
    pointer-events: none; z-index: 999; opacity: 0.8; mix-blend-mode: overlay;
}

/* PRELOADER */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-1); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.loader-content { text-align: center; color: var(--primary); }
.loader-text { font-size: var(--text-2xl); font-weight: 700; display: block; margin-bottom: 20px; letter-spacing: -1px; }
.loader-bar-wrapper {
    width: 200px; height: 1px; background: rgba(255,255,255,0.1);
    position: relative; overflow: hidden; margin: 0 auto;
}
.loader-bar {
    position: absolute; left: 0; top: 0; height: 100%; width: 0%;
    background: var(--primary); transition: width 0.1s linear;
}
.loader-percentages { margin-top: 10px; font-size: var(--text-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}
.navbar.nav-hidden { transform: translateY(-100%); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: var(--text-lg); display: inline-flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; }
.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a { position: relative; font-weight: 500; font-size: var(--text-sm); color: var(--text-body); transition: color var(--transition); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 1px;
    background: var(--primary); transform: translateX(-50%); transition: width 0.3s ease;
}
.nav-links a.active::after { width: 100%; }

.btn-nav {
    background: var(--primary); color: var(--bg-1); padding: 8px 16px; border-radius: var(--radius-btn);
    font-size: var(--text-sm); font-weight: 500; border: none; cursor: pointer; transition: all var(--transition);
}
.btn-nav:hover { background: #d4d4d4; }

/* ==========================================
   HERO SECTION (Elite Two-Column Layout)
========================================== */
.hero { 
    padding: 180px 0 100px; 
    position: relative; 
    text-align: left; 
    min-height: 100vh;
    display: flex;
    align-items: center; 
}

.hero-flex { 
    display: flex; 
    flex-direction: row; 
    align-items: flex-start; /* Forces alignment to the absolute top edge on desktop */
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-glow {
    position: absolute; top: 0; left: 30%; transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none; z-index: -1;
}
.text-glow { color: var(--primary); text-shadow: 0 0 40px rgba(255, 255, 255, 0.4); }

/* LEFT COLUMN (Identity Card) */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* PREMIUM AVATAR */
.hero-image { 
    position: relative; 
    width: 240px; 
    height: 240px; 
    overflow: hidden; 
    border-radius: 50%; 
    border: 2px solid rgba(255, 255, 255, 0.15); 
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03), 0 20px 40px rgba(0, 0, 0, 0.5); 
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    z-index: 2;
}
.hero-image img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.2, 1); 
}
.hero-image:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 6px var(--accent-glow), 0 24px 48px rgba(0, 0, 0, 0.6);
}
.hero-image:hover img { transform: scale(1.08); }

.badge-wrapper { margin-bottom: 0; }
.tagline {
    font-weight: 500; font-size: var(--text-xs); letter-spacing: 1px; color: var(--text-body);
    padding: 6px 12px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--border);
    text-transform: uppercase;
    text-align: center;
}

/* RIGHT COLUMN (Value Proposition) */
.hero-text { 
    flex: 1; 
    max-width: 650px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px; 
}

.hero-text p, .hero-text .social-links, .hero-text .hero-btns {
    margin-left: 0;
    margin-right: 0;
}

.hero h1 { font-size: var(--text-4xl); font-weight: 700; color: var(--primary); letter-spacing: -2px; margin-bottom: 16px; line-height: 1.1; overflow: hidden; }
.word-wrapper { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-inner { display: inline-block; transform: translateY(110%); }

.hero p { 
    font-size: var(--text-lg); color: var(--text-body); margin-bottom: 32px; 
    max-width: 100%; 
    letter-spacing: -0.2px; 
}

/* SOCIAL ICONS */
.social-links { display: flex; gap: 16px; justify-content: flex-start; margin-bottom: 32px; width: 100%; }
.social-icon {
    width: 44px; height: 44px; border-radius: var(--radius-btn); display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); 
    color: var(--text-muted); transition: all var(--transition); text-decoration: none; font-size: 1.1rem;
}
.social-icon:hover { 
    background: var(--primary); color: var(--bg-1); border-color: var(--primary); 
    transform: translateY(-2px); 
}

/* BUTTONS */
.hero-btns { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; width: 100%; }

.btn-primary {
    background: var(--primary); color: var(--bg-1); padding: 12px 24px; border-radius: var(--radius-btn);
    font-size: var(--text-sm); font-weight: 500; border: 1px solid var(--primary); cursor: pointer; transition: all var(--transition);
    text-decoration: none;
}
.btn-primary:hover { background: transparent; color: var(--primary); }
.btn-secondary {
    background: transparent; color: var(--primary); padding: 12px 24px; border-radius: var(--radius-btn);
    font-size: var(--text-sm); font-weight: 500; border: 1px solid var(--border); cursor: pointer; transition: all var(--transition);
}
.btn-secondary:hover { background: var(--bg-2); border-color: var(--border-hover); }

/* SECTIONS */
.section-light { background: var(--bg-2); padding: 120px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-white { background: transparent; padding: 120px 0; }
.section-title { font-size: var(--text-3xl); font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 12px; letter-spacing: -1.5px; }
.section-header p { text-align: center; color: var(--text-body); margin: 0 auto 60px; max-width: 500px; font-size: var(--text-base); }

/* SPOTLIGHT CARD LOGIC */
.spotlight-card {
    position: relative; border-radius: var(--radius-lg); background: rgba(10, 10, 10, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; isolation: isolate;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
    transform: translateZ(0);
}
.spotlight-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.1), transparent 40%);
    z-index: -1; opacity: 0; transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none;
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card:hover { transform: translateY(-2px); background: rgba(20, 20, 20, 0.7); border-color: rgba(255,255,255,0.1); }
.spotlight-card > * { z-index: 2; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.skill-card { padding: 32px 28px; }
.skill-card h3 { color: var(--primary); font-size: var(--text-lg); margin-bottom: 8px; font-weight: 600; letter-spacing: -0.5px; }
.skill-card .icon { font-size: var(--text-xl); color: var(--text-muted); margin-bottom: 16px; transition: color var(--transition); }
.skill-card:hover .icon { color: var(--primary); }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; cursor: pointer; }
.img-wrapper { position: relative; overflow: hidden; height: 220px; border-bottom: 1px solid rgba(255,255,255,0.05); clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
.project-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%); transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1), filter 0.6s; }
.project-card:hover .project-img { transform: scale(1.03); filter: grayscale(0%); }
.img-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); transition: 0.3s; }
.project-card:hover .img-overlay { background: transparent; }
.project-content { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.project-content h3 { color: var(--primary); font-size: var(--text-lg); margin-bottom: 8px; font-weight: 600; letter-spacing: -0.5px; }
.project-content p { color: var(--text-body); margin-bottom: 20px; font-size: var(--text-sm); flex-grow: 1; }
.tech-tags { font-size: 0.75rem !important; color: var(--text-muted) !important; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

/* DEMOS */
.demos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.demo-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; text-decoration: none; color: inherit; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-icon { font-size: var(--text-lg); color: var(--text-muted); transition: color var(--transition); }
.demo-card:hover .demo-icon { color: var(--primary); }
.demo-chip { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.demo-title { color: var(--primary); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.5px; }
.demo-desc { color: var(--text-body); font-size: var(--text-sm); margin: 0; }
.demo-meta { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 14px; }
.demo-url { font-size: var(--text-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.demo-cta { font-size: var(--text-xs); font-weight: 500; color: var(--text-body); display: inline-flex; align-items: center; gap: 6px; transition: color var(--transition); white-space: nowrap; }
.demo-card:hover .demo-cta { color: var(--primary); }

/* TIMELINE */
.timeline-grid { display: grid; gap: 24px; max-width: 700px; margin: 0 auto; }
.timeline-item { background: transparent; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; border-left: 1px solid rgba(255,255,255,0.15); transition: background var(--transition), border-color var(--transition); }
.timeline-item:hover { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.1); }
.timeline-date { color: var(--text-muted); font-size: var(--text-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.timeline-title { color: var(--primary); font-size: var(--text-lg); font-weight: 600; margin-bottom: 2px; letter-spacing: -0.5px; }
.timeline-subtitle { color: var(--text-body); font-size: var(--text-sm); margin-bottom: 12px; }

/* ==========================================
   CONTACT SECTION & FORMS
========================================== */
.contact-section { position: relative; padding: 120px 0; background: var(--bg-1); border-top: 1px solid var(--border); overflow: hidden; }
.contact-section::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none; z-index: 0; opacity: 0.8;
}

.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }

.contact-info-card, .contact-form-card { padding: 40px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.contact-info-card h2 { color: var(--primary); font-size: var(--text-2xl); margin-bottom: 12px; letter-spacing: -1px; }
.contact-info-card p { font-size: var(--text-sm); margin-bottom: 48px; color: var(--text-body); }

.contact-item { 
    display: flex; 
    gap: 16px; 
    align-items: flex-start; 
    margin-bottom: 32px; 
}
.contact-item > div:not(.contact-icon) {
    display: flex;
    flex-direction: column;
    gap: 2px; 
    margin-top: 2px; 
}

.contact-icon { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.contact-item:hover .contact-icon { color: var(--accent-core); }

.label { 
    font-size: 0.7rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 600; 
    line-height: 1; 
}
.value { 
    color: var(--primary); 
    font-size: 0.95rem; 
    font-weight: 500; 
    line-height: 1.2; 
}
.value a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.value a:hover {
    color: var(--accent-core);
}

.contact-socials { display: flex; gap: 16px; margin-top: 48px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 32px; }

/* Form Aesthetics */
.form-group { margin-bottom: 24px; }
.form-group label { color: var(--text-muted); font-weight: 600; font-size: 0.7rem; margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-btn); 
    border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.02); 
    color: var(--primary); font-size: var(--text-sm); transition: all var(--transition);
    font-family: var(--font); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255, 255, 255, 0.2); }
.form-group input:hover, .form-group textarea:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); }

.form-group input:focus, .form-group textarea:focus { 
    outline: none; border-color: var(--accent-core); background: var(--bg-1); 
    box-shadow: 0 0 0 1px var(--accent-core), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-form .btn-submit {
    width: 100%; padding: 14px; margin-top: 8px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.2);
    color: var(--primary); font-weight: 500; border-radius: var(--radius-btn);
    transition: all var(--transition); cursor: pointer; font-size: var(--text-sm);
}
.contact-form .btn-submit:hover {
    background: var(--primary); color: var(--bg-1); border-color: var(--primary);
}

/* ==========================================
   MODALS 
========================================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; z-index: 2000;
    opacity: 0; visibility: hidden; transition: all var(--transition); padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--bg-2); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; 
    max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto;
    position: relative; transform: translateY(10px) scale(0.98); transition: transform var(--transition);
}
.modal-lg { max-width: 800px; }
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
    border-radius: var(--radius-btn); border: none; background: transparent;
    color: var(--text-muted); cursor: pointer; display: grid; place-items: center; 
    font-size: var(--text-lg); transition: color var(--transition);
}
.modal-close:hover { color: var(--primary); }

.modal-header { padding: 40px 40px 24px; }
.modal-header h2 { font-size: var(--text-xl); letter-spacing: -0.5px; margin-bottom: 8px; color: var(--primary); }
.modal-header p { font-size: var(--text-sm); color: var(--text-body); }
.modal .contact-form { padding: 0 40px 40px; }
.project-modal-content { padding: 40px; }
.form-success, .form-error { display: none; text-align: center; padding: 40px; }
.form-success.show, .form-error.show { display: block; }

/* FOOTER */
footer { padding: 80px 0 40px; background: transparent; text-align: center; border-top: 1px solid var(--border); }
footer h2 { font-size: var(--text-2xl); letter-spacing: -1px; color: var(--primary); margin-bottom: 8px; }
footer p { font-size: var(--text-sm); color: var(--text-body); }
.footer-bottom { margin-top: 60px; padding-top: 32px; color: var(--text-muted); font-size: var(--text-xs); }

/* UTILITY ANIMATIONS */
.fade-in-up { opacity: 0; transform: translateY(20px); }

/* ==========================================
   RESPONSIVE LAYOUTS (Perfect Collapsing - FIXED)
========================================== */
@media (max-width: 1024px) {
    .hero { 
        padding-top: 140px; 
        min-height: auto; 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-flex { 
        flex-direction: column; 
        align-items: center; /* THIS ENSURES EVERYTHING CENTERS ON MOBILE */
        justify-content: center;
        gap: 40px; 
        text-align: center; 
    }
    
    .hero-left {
        width: 100%;
        align-items: center;
    }

    .hero-text { 
        align-items: center; 
        text-align: center; 
        margin-top: 0; 
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links, .hero-btns { 
        justify-content: center; 
    }
    
    .hero-image { 
        width: 200px; 
        height: 200px; 
    }
    
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-1);
        flex-direction: column; display: none; padding: 20px 0; border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
    .mobile-menu-btn span { width: 24px; height: 2px; background: var(--primary); transition: 0.3s; }
}

@media (max-width: 600px) {
    .demo-card, .project-card, .skill-card, .timeline-item { padding: 20px; }
    .section-title { font-size: var(--text-2xl); }
    .modal-header, .modal .contact-form, .contact-info-card, .contact-form-card { padding: 24px; }
    .hero-image { width: 160px; height: 160px; }
}

/* TILT & ACCESSIBILITY */
.tilt-element { position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.tilt-element::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle 300px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 40%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 2;
}
.tilt-element:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in-up { opacity: 1 !important; transform: none !important; }
}