/* ============================================================
   Amine Ouadaf — Portfolio
   Design system + layout
   ============================================================ */

:root {
    /* Surfaces */
    --bg: #0a0b10;
    --bg-2: #0e1018;
    --surface: #14161f;
    --surface-2: #191c27;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* Text */
    --text: #f4f5f8;
    --text-muted: #9aa3b5;
    --text-dim: #6b7384;

    /* Accents */
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --accent-soft: rgba(124, 92, 255, 0.14);
    --gradient: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);

    /* Effects */
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --ring: 0 0 0 1px var(--border);
    --radius: 18px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Theming surfaces (overridden by light theme) */
    --header-bg: rgba(10, 11, 16, 0.72);
    --glass-bg: rgba(10, 11, 16, 0.85);

    /* Fonts */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --max-width: 1180px;
}

/* ---------- Light theme ---------- */
html[data-theme="light"] {
    --bg: #f6f7f9;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #eef1f6;
    --border: rgba(17, 24, 39, 0.10);
    --border-strong: rgba(17, 24, 39, 0.20);

    --text: #11131a;
    --text-muted: #525a6b;
    --text-dim: #888f9f;

    --accent: #6a40e6;
    --accent-2: #0a9bc2;
    --accent-soft: rgba(106, 64, 230, 0.12);
    --gradient: linear-gradient(120deg, #6a40e6 0%, #0a9bc2 100%);

    --shadow: 0 24px 50px -24px rgba(23, 33, 61, 0.25);
    --shadow-sm: 0 10px 24px -14px rgba(23, 33, 61, 0.20);

    --header-bg: rgba(255, 255, 255, 0.78);
    --glass-bg: rgba(255, 255, 255, 0.90);

    color-scheme: light;
}

/* Smooth cross-fade of the page shell when switching themes */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Ambient background ---------- */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(600px circle at 15% 5%, rgba(124, 92, 255, 0.16), transparent 45%),
        radial-gradient(700px circle at 90% 30%, rgba(34, 211, 238, 0.10), transparent 45%);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient);
    z-index: 2000;
    transition: width 0.1s linear;
}

/* ---------- Shared section ---------- */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 110px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-2);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 10px;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.primary-btn {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.7);
}
.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -8px rgba(124, 92, 255, 0.8);
}

.secondary-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.secondary-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-3px);
}

/* ---------- Tag lists / pills ---------- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.tag-list span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}
.tag-list span:hover {
    border-color: var(--accent);
    color: var(--text);
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px clamp(24px, 6vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
#header.sticky {
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.logo .dot, .footer-logo .dot { color: var(--accent-2); }

nav { flex: 1; display: flex; justify-content: center; }

.nav-links { display: flex; gap: 4px; }
.nav-links li a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
}
.nav-links li a:hover { color: var(--text); }
.nav-links li a.active { color: var(--text); }
.nav-links li a.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-dropdown { position: relative; }
.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}
.lang-current:hover { border-color: var(--border-strong); }
.lang-current .arrow { font-size: 0.7rem; transition: transform var(--transition); }
.lang-dropdown.open .lang-current .arrow { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1001;
}
.lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.lang-option:hover { background: var(--surface-2); color: var(--text); }
.lang-option.active { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--accent-2); transform: translateY(-1px); }
.theme-toggle .icon-dark { display: none; }
html[data-theme="light"] .theme-toggle .icon-light { display: none; }
html[data-theme="light"] .theme-toggle .icon-dark { display: inline; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active .line1 { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .line2 { opacity: 0; }
.hamburger.active .line3 { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
    padding: 120px 24px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 40px;
}

/* Three.js particle canvas — full-bleed, behind hero content */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content { 
    position: relative; 
    z-index: 1; 
    max-width: 720px;
}
.hero-stats { 
    position: relative; 
    z-index: 1; 
    width: 100%;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent-2);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    margin-bottom: 8px;
}
.hero-content h2 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 22px;
    min-height: 1.2em;
}
.hero-content h2 .typing { color: var(--text); }
.hero-content p {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
}

.cta-buttons { display: flex; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; justify-content: center; }

.social-icons { display: flex; gap: 12px; justify-content: center; }
.social-icons a, .social-links a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.05rem;
}
.social-icons a:hover, .social-links a:hover {
    color: #fff;
    border-color: transparent;
    background: var(--gradient);
    transform: translateY(-4px);
}

/* Hero image frame */
.image-frame {
    position: relative;
    width: min(360px, 80vw);
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    padding: 6px;
    background: linear-gradient(160deg, var(--border-strong), transparent 60%);
    box-shadow: var(--shadow);
}
.image-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: var(--gradient);
    opacity: 0.35;
    filter: blur(26px);
    z-index: -1;
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}
/* Fallback when image is missing */
.image-frame img.img-fallback {
    background:
        radial-gradient(circle at 30% 30%, rgba(124,92,255,0.5), transparent 60%),
        var(--surface-2);
    min-height: 100%;
}

.status-badge {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #36e07f;
    box-shadow: 0 0 0 0 rgba(54, 224, 127, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(54, 224, 127, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(54, 224, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(54, 224, 127, 0); }
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; min-width: 120px; }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-num .plus { font-size: 1.4rem; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}
.about-image { justify-self: center; }
.about-content--single { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.about-text h3 {
    font-size: 1.3rem;
    margin: 22px 0 8px;
    color: var(--text);
}
.about-text h3:first-child { margin-top: 0; }
.about-text p { color: var(--text-muted); margin-bottom: 6px; }
.about-text .btn { margin-top: 26px; }

/* ============================================================
   TIMELINE (Education + Experience)
   ============================================================ */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 36px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--accent), var(--accent-2));
    opacity: 0.4;
}
.timeline-item {
    position: relative;
    margin-bottom: 34px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
    font-size: 0.7rem;
}
.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    transition: var(--transition);
}
.timeline-content:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.timeline-content .date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-2);
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 4px; }
.timeline-content .place { color: var(--accent); font-weight: 500; font-size: 0.92rem; margin-bottom: 10px; }
.timeline-content p { color: var(--text-muted); }
.achievements { margin: 14px 0 4px; padding-left: 4px; }
.achievements li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.achievements li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-2);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}
.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.skill-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.skill-card-head i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    background: var(--gradient);
}
.skill-card-head h3 { font-size: 1.15rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
}
.filter-btn {
    padding: 8px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active {
    color: #fff;
    background: var(--gradient);
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 28px;
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.project-info { display: flex; flex-direction: column; flex: 1; }
.project-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-2);
    margin-bottom: 12px;
    font-weight: 600;
}
.project-info h3 { font-size: 1.35rem; margin-bottom: 14px; line-height: 1.3; }
.project-info > p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; }
.project-info .tag-list { margin-top: 18px; margin-bottom: 20px; }
.project-links { display: flex; gap: 16px; margin-top: auto; }
.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}
.project-links a:hover { color: var(--accent-2); }

.project-detail { display: none; }

.details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-2);
    transition: var(--transition);
}
.details-btn i { transition: transform var(--transition); }
.details-btn:hover { color: var(--accent); }
.details-btn:hover i { transform: translateX(4px); }

/* ---------- Project modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 6, 10, 0.72);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    position: relative;
    width: min(620px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 38px 34px 32px;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }

.modal-body .project-tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-2);
    margin-bottom: 8px;
}
.modal-body h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    padding-right: 36px;
}
.modal-detail-list { margin: 0 0 20px; padding: 0; }
.modal-detail-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.96rem;
}
.modal-detail-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-2);
}
.modal-body .tag-list { margin-top: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 16px;
    transition: var(--transition);
}
.contact-item:hover { border-color: var(--border-strong); transform: translateX(4px); }
.contact-item i {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-2);
    background: var(--accent-soft);
}
.contact-item h3 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); font-size: 0.92rem; }

.social-links { display: flex; gap: 12px; margin-top: 24px; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 22px; }
.hidden-field { display: none; }
.form-group { margin-bottom: 16px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { height: 140px; resize: vertical; }
.contact-form .btn { width: 100%; }
.form-status {
    margin-top: 14px;
    font-size: 0.9rem;
    min-height: 1.2em;
    text-align: center;
}
.form-status.success { color: #36e07f; }
.form-status.error { color: #ff6b6b; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding: 50px 24px 36px;
}
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.footer-tagline { color: var(--text-muted); max-width: 460px; }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }
.footer-copy i { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .hero {
        text-align: center;
        padding-top: 110px;
        min-height: auto;
        gap: 32px;
    }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .cta-buttons, .social-icons, .eyebrow { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-content { grid-template-columns: 1fr; gap: 36px; }
    .about-image { order: -1; }
    .contact-content { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(75%, 320px);
        flex-direction: column;
        justify-content: center;
        background: var(--bg-2);
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 999;
    }
    nav.open { transform: translateX(0); }
    .nav-links { flex-direction: column; gap: 8px; text-align: center; }
    .nav-links li a { font-size: 1.1rem; display: block; }
    .hamburger { display: flex; z-index: 1000; }
    .section { padding: 80px 20px; }
}

@media (max-width: 480px) {
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
    .hero-stats { gap: 10px; }
    .stat { min-width: 0; flex: 1; }
    .stat-num { font-size: 1.8rem; }
    .filter-buttons { gap: 8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
