/* ==================== DESIGN SYSTEM ==================== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --surface-0: #09090b;
    --surface-1: #0f0f14;
    --surface-2: #16161d;
    --surface-3: #1e1e28;
    --surface-4: #27273a;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --glass: rgba(255,255,255,0.03);
    --glass-hover: rgba(255,255,255,0.06);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --font: 'Noto Sans Thai', 'Inter', system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    background: var(--surface-0);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==================== BACKGROUND ==================== */
#bg-canvas {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6,182,212,0.08), transparent),
        radial-gradient(ellipse 50% 50% at 20% 60%, rgba(99,102,241,0.06), transparent),
        var(--surface-0);
}

.grain-overlay {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hidden { display: none !important; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(9,9,11,0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(9,9,11,0.92);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none; color: var(--text-primary);
    font-weight: 700; font-size: 1.15rem;
}

.logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: white;
}

.logo-dot { color: var(--primary-light); }

.nav-links {
    display: flex; align-items: center; gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--text-secondary);
    font-size: 0.85rem; font-weight: 500;
    display: flex; align-items: center; gap: 0.4rem;
    transition: var(--transition);
}

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

.nav-link.active { color: var(--primary-light); }

.nav-link i { font-size: 0.75rem; }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative;
    flex-direction: column; justify-content: space-between;
}

.nav-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--text-secondary); border-radius: 2px;
    transition: var(--transition);
}

/* ==================== LOADER ==================== */
.loader-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--surface-0);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-overlay.fade-out { opacity: 0; pointer-events: none; }

.loader-content { text-align: center; }

.loader-ring {
    width: 56px; height: 56px; margin: 0 auto 1.5rem;
    position: relative;
}

.ring-segment {
    position: absolute; inset: 0;
    border: 2.5px solid transparent; border-radius: 50%;
}

.ring-segment:nth-child(1) {
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.ring-segment:nth-child(2) {
    border-right-color: var(--accent);
    animation: spin 1.5s linear reverse infinite;
    inset: 5px;
}

.ring-segment:nth-child(3) {
    border-bottom-color: var(--primary-light);
    animation: spin 2s linear infinite;
    inset: 10px;
}

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

.loader-text {
    color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.5px;
}

.dots::after {
    content: ''; animation: dots 1.5s infinite;
}

@keyframes dots {
    0% { content: ''; } 33% { content: '.'; } 66% { content: '..'; } 100% { content: '...'; }
}

/* ==================== HERO ==================== */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 6rem 2rem 4rem;
}

.hero-container {
    max-width: 900px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; gap: 4rem;
}

.hero-avatar-wrapper {
    position: relative; flex-shrink: 0;
}

.hero-avatar-wrapper img {
    width: 180px; height: 180px; border-radius: 50%;
    object-fit: cover; position: relative; z-index: 2;
    border: 3px solid var(--surface-3);
    transition: transform 0.5s ease;
}

.hero-avatar-wrapper:hover img { transform: scale(1.05); }

.avatar-ring {
    position: absolute; inset: -6px; border-radius: 50%; z-index: 1;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary-light), var(--primary));
    animation: ring-rotate 4s linear infinite;
    opacity: 0.7;
}

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

.avatar-glow {
    position: absolute; inset: -20px; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from { opacity: 0.5; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1.05); }
}

.avatar-status {
    position: absolute; bottom: 12px; right: 12px; z-index: 3;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--success); border: 3px solid var(--surface-0);
    display: flex; align-items: center; justify-content: center;
}

.status-pulse {
    width: 100%; height: 100%; border-radius: 50%;
    background: var(--success);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
    100% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
}

.hero-info { flex: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 1rem; border-radius: 20px;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
    color: var(--primary-light); font-size: 0.8rem; font-weight: 600;
    margin-bottom: 1rem; letter-spacing: 0.5px;
}

.hero-name {
    font-size: 3rem; font-weight: 800; line-height: 1.2;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--accent-light) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-secondary); font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle i { color: var(--accent); font-size: 0.9rem; }

.hero-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-tag {
    padding: 0.3rem 0.85rem; border-radius: 6px;
    background: var(--surface-3); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.78rem; font-weight: 500;
    transition: var(--transition);
}

.hero-tag:hover {
    border-color: var(--primary); color: var(--primary-light);
    background: rgba(99,102,241,0.08);
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.5rem; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 600; text-decoration: none;
    transition: var(--transition); cursor: pointer; border: none;
    font-family: var(--font);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

.btn-outline {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary); color: var(--primary-light);
    background: rgba(99,102,241,0.05);
}

.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%); text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.mouse {
    width: 24px; height: 38px; border-radius: 12px;
    border: 2px solid var(--text-muted); margin: 0 auto 0.5rem;
    display: flex; justify-content: center; padding-top: 8px;
}

.wheel {
    width: 3px; height: 8px; border-radius: 3px;
    background: var(--text-muted);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

.scroll-indicator span {
    font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==================== SECTIONS ==================== */
.section { padding: 5rem 2rem; position: relative; }

.section-alt {
    background: linear-gradient(180deg, rgba(99,102,241,0.02) 0%, transparent 100%);
}

.section-container { max-width: 1000px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 1rem; border-radius: 20px;
    background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
    color: var(--primary-light); font-size: 0.78rem; font-weight: 600;
    margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px;
}

.section-title {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-desc { color: var(--text-muted); font-size: 0.95rem; }

/* ==================== ABOUT GRID ==================== */
.about-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}

.info-card {
    display: flex; align-items: center; gap: 1.25rem;
    padding: 1.5rem; border-radius: var(--radius-lg);
    background: var(--glass); border: 1px solid var(--border);
    transition: var(--transition); cursor: default;
}

.info-card:hover {
    background: var(--glass-hover); border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-card-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.05));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--primary-light); flex-shrink: 0;
    border: 1px solid rgba(99,102,241,0.1);
    transition: var(--transition);
}

.info-card:hover .info-card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(99,102,241,0.2);
}

.info-card-icon.phone {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
    color: var(--success); border-color: rgba(16,185,129,0.1);
}

.info-card-icon.email {
    background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(6,182,212,0.05));
    color: var(--accent); border-color: rgba(6,182,212,0.1);
}

.info-card-content { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.info-card-label {
    font-size: 0.72rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

.info-card-value {
    font-size: 1rem; font-weight: 600; color: var(--text-primary);
    word-break: break-word;
}

/* ==================== STATUS GRID ==================== */
.status-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}

.status-card {
    position: relative; overflow: hidden;
    padding: 2rem; border-radius: var(--radius-xl);
    background: var(--surface-2); border: 1px solid var(--border);
    transition: var(--transition);
}

.status-card:hover {
    transform: translateY(-4px); border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.status-card-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
}

.status-card-header h3 {
    font-size: 1rem; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.status-icon {
    width: 44px; height: 44px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}

.status-icon.main {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
    color: var(--success); border: 1px solid rgba(16,185,129,0.15);
}

.status-icon.side {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
    color: var(--warning); border: 1px solid rgba(245,158,11,0.15);
}

.status-card-body { position: relative; z-index: 1; }

.status-badge {
    display: inline-block; padding: 0.35rem 1rem; border-radius: 20px;
    font-size: 0.82rem; font-weight: 700; margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.status-badge.success {
    background: rgba(16,185,129,0.1); color: var(--success);
    border: 1px solid rgba(16,185,129,0.2);
}

.status-badge.warning {
    background: rgba(245,158,11,0.1); color: var(--warning);
    border: 1px solid rgba(245,158,11,0.2);
}

.status-company {
    color: var(--text-secondary); font-size: 0.92rem; font-weight: 500;
    display: flex; align-items: center; gap: 0.5rem;
}

.status-company i { font-size: 0.8rem; color: var(--text-muted); }

.status-card-glow {
    position: absolute; top: -50%; right: -30%; width: 200px; height: 200px;
    border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, rgba(16,185,129,0.06), transparent 70%);
    pointer-events: none;
}

.status-card-glow.side {
    background: radial-gradient(circle, rgba(245,158,11,0.06), transparent 70%);
}

/* ==================== TIMELINE ==================== */
.timeline-container { position: relative; max-width: 700px; margin: 0 auto; }

.timeline-line {
    position: absolute; left: 18px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(99,102,241,0.1));
    border-radius: 2px;
}

.timeline { padding-left: 3.5rem; }

.timeline-item {
    position: relative; margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--glass); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item:hover {
    background: var(--glass-hover); border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.timeline-item::before {
    content: '';
    position: absolute; left: -2.35rem; top: 1.5rem;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--primary); border: 3px solid var(--surface-0);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    z-index: 1; transition: var(--transition);
}

.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(99,102,241,0.3), 0 0 15px rgba(99,102,241,0.3);
}

.timeline-date {
    display: inline-block; font-size: 0.75rem;
    padding: 0.2rem 0.7rem; border-radius: 6px;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.15);
    color: var(--primary-light); margin-bottom: 0.5rem;
    font-weight: 600; letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.timeline-desc {
    color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.site-footer { padding: 2rem; }

.footer-inner { max-width: 1000px; margin: 0 auto; }

.footer-divider {
    height: 1px; margin-bottom: 2rem;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.footer-content { text-align: center; }

.footer-brand {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; margin-bottom: 0.75rem;
    font-weight: 700; font-size: 1rem; color: var(--text-primary);
}

.footer-logo {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: white;
}

.footer-note {
    color: var(--text-muted); font-size: 0.82rem;
    display: flex; align-items: center; justify-content: center;
    gap: 0.4rem; margin-bottom: 0.5rem;
}

.footer-note i { color: var(--accent); font-size: 0.75rem; }

.footer-copy { color: var(--text-muted); font-size: 0.75rem; opacity: 0.6; }

/* ==================== REVEAL ==================== */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
                transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==================== RESPONSIVE ==================== */

/* --- Tablet & small laptops (max-width: 900px) --- */
@media (max-width: 900px) {
    /* Navbar mobile menu */
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(9,9,11,0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 4rem 2rem 2rem;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
        animation: fadeSlideIn 0.3s ease forwards;
    }

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

    .nav-link {
        font-size: 1.1rem;
        padding: 0.85rem 1.5rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        border-radius: var(--radius-md);
    }

    .nav-link.active {
        background: rgba(99,102,241,0.12);
    }

    /* Hamburger toggle */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Hero */
    .hero-section {
        padding: 5rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-subtitle { justify-content: center; }
    .hero-tags { justify-content: center; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-name { font-size: 2.2rem; }
    .hero-badge { font-size: 0.75rem; }

    .hero-avatar-wrapper img {
        width: 160px; height: 160px;
    }

    .scroll-indicator { display: none; }

    /* Grids */
    .about-grid { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: 1fr; }

    /* Sections */
    .section { padding: 3.5rem 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .section-header { margin-bottom: 2.5rem; }

    /* Timeline */
    .timeline-container { max-width: 100%; }

    /* Footer */
    .footer-inner { padding: 0 1rem; }
}

/* --- Mobile phones (max-width: 600px) --- */
@media (max-width: 600px) {
    html {
        scroll-padding-top: 64px;
    }

    /* Navbar */
    .navbar {
        padding: 0.6rem 0;
    }

    .nav-inner {
        padding: 0 1rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .logo-icon {
        width: 32px; height: 32px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    /* Hero */
    .hero-section {
        padding: 4.5rem 1rem 2.5rem;
    }

    .hero-container {
        gap: 1.5rem;
    }

    .hero-avatar-wrapper img {
        width: 130px; height: 130px;
    }

    .avatar-ring { inset: -5px; }
    .avatar-glow { inset: -15px; }

    .avatar-status {
        width: 20px; height: 20px;
        bottom: 8px; right: 8px;
        border-width: 2.5px;
    }

    .hero-name {
        font-size: 1.85rem;
        line-height: 1.3;
    }

    .hero-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.72rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero-tags {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }

    .hero-tag {
        padding: 0.25rem 0.65rem;
        font-size: 0.72rem;
    }

    .hero-actions {
        gap: 0.6rem;
        width: 100%;
    }

    .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.82rem;
        flex: 1;
        justify-content: center;
        min-height: 44px;
    }

    /* Sections */
    .section {
        padding: 2.5rem 1rem;
    }

    .section-tag {
        font-size: 0.72rem;
        padding: 0.3rem 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-desc {
        font-size: 0.85rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* About cards */
    .about-grid {
        gap: 0.75rem;
    }

    .info-card {
        padding: 1.15rem;
        gap: 1rem;
        border-radius: var(--radius-md);
    }

    .info-card-icon {
        width: 42px; height: 42px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .info-card-label {
        font-size: 0.68rem;
        letter-spacing: 1.2px;
    }

    .info-card-value {
        font-size: 0.9rem;
    }

    /* Status cards */
    .status-grid {
        gap: 1rem;
    }

    .status-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .status-card-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .status-card-header h3 {
        font-size: 0.88rem;
    }

    .status-icon {
        width: 40px; height: 40px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .status-badge {
        font-size: 0.78rem;
        padding: 0.3rem 0.85rem;
    }

    .status-company {
        font-size: 0.85rem;
    }

    /* Timeline */
    .timeline-line {
        left: 14px;
    }

    .timeline {
        padding-left: 2.75rem;
    }

    .timeline-item {
        padding: 1rem 1.15rem;
        border-radius: var(--radius-md);
        margin-bottom: 1.25rem;
    }

    .timeline-item::before {
        left: -1.95rem;
        top: 1.25rem;
        width: 12px; height: 12px;
    }

    .timeline-date {
        font-size: 0.7rem;
        padding: 0.15rem 0.6rem;
    }

    .timeline-title {
        font-size: 0.95rem;
    }

    .timeline-desc {
        font-size: 0.82rem;
    }

    /* Footer */
    .site-footer {
        padding: 1.5rem 1rem;
    }

    .footer-brand {
        font-size: 0.9rem;
    }

    .footer-logo {
        width: 24px; height: 24px;
        border-radius: 6px;
        font-size: 0.6rem;
    }

    .footer-note {
        font-size: 0.78rem;
    }

    .footer-copy {
        font-size: 0.7rem;
    }
}

/* --- Very small phones (max-width: 380px) --- */
@media (max-width: 380px) {
    .hero-name {
        font-size: 1.5rem;
    }

    .hero-avatar-wrapper img {
        width: 110px; height: 110px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        flex: unset;
    }

    .section {
        padding: 2rem 0.75rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .info-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .info-card-icon {
        width: 38px; height: 38px;
        font-size: 0.9rem;
    }

    .info-card-value {
        font-size: 0.82rem;
    }

    .status-card {
        padding: 1.25rem;
    }

    .timeline {
        padding-left: 2.25rem;
    }

    .timeline-item {
        padding: 0.85rem 1rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

/* --- Disable hover on touch devices --- */
@media (hover: none) {
    .info-card:hover,
    .status-card:hover,
    .timeline-item:hover,
    .glass-panel:hover {
        transform: none;
        box-shadow: none;
    }

    .info-card:hover .info-card-icon {
        transform: none;
        box-shadow: none;
    }

    .timeline-item:hover::before {
        transform: none;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    }

    /* Use active state instead for touch feedback */
    .info-card:active {
        background: var(--glass-hover);
        border-color: var(--border-hover);
    }

    .status-card:active {
        background: var(--surface-3);
    }

    .timeline-item:active {
        background: var(--glass-hover);
    }

    .btn-primary:hover {
        transform: none;
    }

    .btn-primary:active {
        transform: scale(0.97);
    }

    .hero-avatar-wrapper:hover img {
        transform: none;
    }
}

/* --- Safe area for notched devices (iPhone X+, etc.) --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .site-footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    .nav-links {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* --- Landscape mobile --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 5rem 2rem 2rem;
    }

    .hero-container {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
    }

    .hero-avatar-wrapper img {
        width: 100px; height: 100px;
    }

    .avatar-ring { inset: -4px; }
    .avatar-glow { inset: -10px; }

    .hero-name {
        font-size: 1.5rem;
    }

    .hero-subtitle { justify-content: flex-start; }
    .hero-tags { justify-content: flex-start; }
    .hero-actions { justify-content: flex-start; }

    .section {
        padding: 2rem 1.5rem;
    }
}
