/* ==========================================================================
   Bittácora Portfolio - Retro-Futuristic Vector Poster Stylesheet
   Inspired by flat vector space poster design
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   CSS VARIABLES - Retro Vector Palette
   ============================================================ */
:root {
    /* Background Palette */
    --bg-dark:    #111520;
    --bg-card:    #1a1f30;
    --bg-card-alt:#1e2438;
    --bg-navy:    #1c2340;

    /* Accent Colors — pulled directly from reference image */
    --coral:      #f2725e;   /* Warm coral planet/cloud */
    --coral-light:#ff9980;   /* Light coral highlight */
    --coral-dark: #c8503e;   /* Shadow coral */
    --teal:       #00b4c8;   /* Electric teal grid lines */
    --teal-dark:  #007f8f;
    --orange:     #e8954a;   /* Warm amber/orange accent */
    --cream:      #f0ebe1;   /* Off-white text & outlines */
    --cream-dim:  #b8b0a2;   /* Dimmed cream for secondary text */

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono:    'Space Mono', monospace;

    /* Sizes */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --t-fast: 0.18s ease;
    --t-mid:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Card border */
    --border: 1.5px solid rgba(240, 235, 225, 0.12);
    --border-accent: 2px solid var(--teal);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--cream);
    font-family: var(--font-heading);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: var(--teal-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cream);
}

p { color: var(--cream-dim); }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--t-fast);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--cream);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--cream-dim);
    line-height: 1.7;
}

/* Episode label tag — monospaced, teal accented */
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal);
    border: 1.5px solid var(--teal);
    padding: 5px 14px;
    border-radius: 3px;
    margin-bottom: 20px;
    background: rgba(0, 180, 200, 0.07);
}

/* ============================================================
   VECTOR CARD — Flat dark card, crisp border
   ============================================================ */
.vector-card {
    background: var(--bg-card);
    border: var(--border);
    border-radius: var(--radius-md);
    transition: var(--t-mid);
}

.vector-card:hover {
    border-color: rgba(0, 180, 200, 0.45);
    transform: translateY(-5px);
    background: var(--bg-card-alt);
}

/* ============================================================
   BUTTONS — Flat retro poster style
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--t-mid);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

/* Primary — coral solid fill */
.btn-primary {
    background: var(--coral);
    color: var(--cream);
    box-shadow: 4px 4px 0px var(--coral-dark);
}
.btn-primary:hover {
    background: var(--coral-light);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--coral-dark);
}
.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--coral-dark);
}

/* Secondary — teal outlined */
.btn-secondary {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
    box-shadow: 4px 4px 0px var(--teal-dark);
}
.btn-secondary:hover {
    background: rgba(0, 180, 200, 0.1);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--teal-dark);
}

/* ============================================================
   DECORATIVE ELEMENTS — CSS-only vector art
   ============================================================ */

/* Orbit rings (concentric circles like in the posters) */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(240, 235, 225, 0.12);
    pointer-events: none;
}

/* Planet circle — coral flat */
.planet {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Perspective grid (isometric horizon lines) */
.grid-overlay {
    position: absolute;
    pointer-events: none;
    overflow: hidden;
}

/* Organic blob / cloud shapes */
.blob {
    position: absolute;
    pointer-events: none;
    border-radius: 50% 60% 70% 40% / 50% 40% 60% 70%;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--t-mid);
    border-bottom: 1px solid transparent;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(17, 21, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(240, 235, 225, 0.07);
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--coral);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0px var(--coral-dark);
    flex-shrink: 0;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--cream);
    border-radius: 50%;
}

/* Nav links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cream-dim);
    letter-spacing: 0.03em;
    transition: var(--t-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: var(--t-mid);
}

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

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

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: var(--t-mid);
}

/* ============================================================
   HERO SECTION — Retro Poster layout
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
    padding-bottom: 100px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* Large planet behind the hero */
.hero-planet {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, var(--coral-light) 0%, var(--coral) 40%, var(--coral-dark) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Orbit rings around the hero planet */
.hero-planet::before,
.hero-planet::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(240, 235, 225, 0.18);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hero-planet::before {
    width: 120%;
    height: 120%;
}
.hero-planet::after {
    width: 140%;
    height: 140%;
}

/* Orbit ring stack (additional rings via separate divs) */
.hero-orbits {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 540px;
    height: 540px;
    pointer-events: none;
    z-index: 0;
}
.hero-orbits .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(240, 235, 225, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hero-orbits .ring:nth-child(1) { width: 160%; height: 160%; }
.hero-orbits .ring:nth-child(2) { width: 185%; height: 185%; }
.hero-orbits .ring:nth-child(3) { width: 210%; height: 210%; }
.hero-orbits .ring:nth-child(4) { width: 235%; height: 235%; border-color: rgba(0, 180, 200, 0.08); }

/* Coral cloud blobs */
.hero-blob-1 {
    position: absolute;
    top: 10%;
    left: 40%;
    width: 140px;
    height: 110px;
    background: var(--coral);
    border-radius: 60% 80% 40% 70% / 50% 60% 70% 40%;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: blobDrift 8s ease-in-out infinite alternate;
}
.hero-blob-2 {
    position: absolute;
    bottom: 15%;
    left: 10%;
    width: 90px;
    height: 75px;
    background: var(--orange);
    border-radius: 40% 70% 60% 50% / 60% 40% 70% 50%;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    animation: blobDrift 10s ease-in-out infinite alternate-reverse;
}

/* Teal geometric accent lines */
.hero-grid-line {
    position: absolute;
    background: var(--teal);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}
.hero-grid-line.h { height: 1.5px; width: 180px; }
.hero-grid-line.v { width: 1.5px;  height: 120px; }

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content { max-width: 580px; }

.hero-title {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--coral);
    position: relative;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--cream-dim);
    line-height: 1.75;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero visual card — poster style */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-canvas {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--border);
    position: relative;
    background: var(--bg-card);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.4);
}

.visual-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
    transition: transform var(--t-slow);
}

.visual-canvas:hover .visual-bg-image {
    transform: scale(1.06);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 21, 32, 0.85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.visual-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--coral);
    color: var(--cream);
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.05em;
    box-shadow: 3px 3px 0px var(--coral-dark);
}

.visual-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--cream);
    border-radius: 50%;
    animation: flash 1.2s ease-in-out infinite;
}

/* ============================================================
   STATS SECTION — Horizontal poster strip
   ============================================================ */
.stats {
    padding: 0 0 80px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--bg-card);
    border: var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stat-card {
    padding: 36px 28px;
    text-align: center;
    border-right: var(--border);
    position: relative;
    transition: var(--t-mid);
}

.stat-card:last-child { border-right: none; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--t-mid);
}

.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { background: var(--bg-card-alt); }

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cream);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-value span { color: var(--coral); }

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cream-dim);
}

/* ============================================================
   SERVICES GRID — Episode 2
   ============================================================ */
.services {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Decorative teal grid behind services */
.services-bg-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.service-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 3px solid transparent;
    transition: var(--t-mid);
}

.service-card:hover {
    border-left-color: var(--coral);
    transform: translateY(-4px) translateX(-2px);
}

.service-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(242, 114, 94, 0.12);
    border: 1.5px solid rgba(242, 114, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--coral);
    transition: var(--t-mid);
}

.service-card:hover .service-icon-box {
    background: var(--coral);
    color: var(--cream);
    border-color: var(--coral);
    box-shadow: 4px 4px 0px var(--coral-dark);
}

.service-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--cream);
}

.service-desc {
    font-size: 0.92rem;
    color: var(--cream-dim);
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: auto;
    transition: var(--t-fast);
}

.service-link svg { transition: var(--t-fast); }
.service-card:hover .service-link { color: var(--coral); }
.service-card:hover .service-link svg { transform: translateX(5px); }

/* ============================================================
   METHODOLOGY — Episode 3
   ============================================================ */
.methodology {
    padding: 100px 0;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

/* Decorative perspective grid for methodology bg */
.method-grid-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.method-card {
    padding: 40px 32px;
    text-align: center;
    position: relative;
    z-index: 2;
    border-top: 3px solid var(--teal);
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    border-left: var(--border);
    border-right: var(--border);
    border-bottom: var(--border);
    transition: var(--t-mid);
}

.method-card:hover {
    border-top-color: var(--coral);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.method-step {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--teal);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 4px 4px 0px var(--teal-dark);
    transition: var(--t-mid);
}

.method-card:hover .method-step {
    background: var(--coral);
    box-shadow: 4px 4px 0px var(--coral-dark);
}

.method-title {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: var(--cream);
}

/* ============================================================
   FAQ / GEO SECTION
   ============================================================ */
.faq {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-card {
    padding: 36px 32px;
    height: 100%;
    position: relative;
    border-top: 3px solid var(--teal);
    border-left: var(--border);
    border-right: var(--border);
    border-bottom: var(--border);
    transition: var(--t-mid);
}

.faq-card:hover {
    border-top-color: var(--coral);
    transform: translateY(-4px);
    background: var(--bg-card-alt);
}

.faq-question {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--cream);
    line-height: 1.4;
}

.faq-answer p {
    font-size: 0.93rem;
    color: var(--cream-dim);
    line-height: 1.65;
}

.faq-answer strong {
    color: var(--cream);
    font-weight: 600;
}

.faq-answer ul {
    margin-top: 12px;
    padding-left: 18px;
    color: var(--cream-dim);
    font-size: 0.9rem;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.faq-answer li::marker { color: var(--coral); }

/* ============================================================
   CONTACT SECTION — Episode 4
   ============================================================ */
.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 36px;
    background: var(--bg-navy);
    border-radius: var(--radius-md);
    border: var(--border);
    border-top: 3px solid var(--coral);
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(242, 114, 94, 0.1);
    border: 1.5px solid rgba(242, 114, 94, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.contact-item-text h4 {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream-dim);
    margin-bottom: 4px;
}

.contact-item-text p, .contact-item-text a {
    font-size: 0.97rem;
    color: var(--cream);
    font-weight: 600;
    transition: var(--t-fast);
}

.contact-item-text a:hover { color: var(--coral); }

/* Contact Form Panel */
.contact-form-panel {
    padding: 44px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: var(--border);
    border-top: 3px solid var(--teal);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--cream);
}

.form-subtitle {
    font-size: 0.92rem;
    color: var(--cream-dim);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream-dim);
}

.form-control {
    background: var(--bg-dark);
    border: 1.5px solid rgba(240, 235, 225, 0.1);
    border-radius: var(--radius-sm);
    color: var(--cream);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    padding: 11px 16px;
    transition: var(--t-fast);
    outline: none;
    width: 100%;
}

.form-control::placeholder { color: rgba(184, 176, 162, 0.45); }

.form-control:focus {
    border-color: var(--teal);
    background: var(--bg-card-alt);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 14px;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(0, 180, 200, 0.12);
    color: var(--teal);
    border: 1.5px solid var(--teal);
}
.form-status.error {
    display: block;
    background: rgba(242, 114, 94, 0.12);
    color: var(--coral);
    border: 1.5px solid var(--coral);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-card);
    border-top: var(--border);
    padding: 60px 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: var(--border);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--cream-dim);
    margin-top: 16px;
    max-width: 340px;
    line-height: 1.65;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.social-link {
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(240, 235, 225, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-dim);
    transition: var(--t-mid);
    background: var(--bg-dark);
}

.social-link:hover {
    border-color: var(--coral);
    color: var(--coral);
    background: rgba(242, 114, 94, 0.1);
    box-shadow: 3px 3px 0px var(--coral-dark);
    transform: translate(-1px, -1px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cream-dim);
    letter-spacing: 0.05em;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cream-dim);
    letter-spacing: 0.05em;
    transition: var(--t-fast);
}

.footer-legal a:hover { color: var(--teal); }

/* ============================================================
   PARALLAX ELEMENTS
   ============================================================ */
.parallax-element {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.parallax-element.foreground { z-index: 10; pointer-events: none; }
.parallax-element.midground  { z-index: 0; }

/* Floating animation (used in parallax children) */
.float-cosmic  { animation: cosmicFloat 6s ease-in-out infinite; }
.rotate-cosmic { animation: cosmicRotate 20s linear infinite; }
.rocket-cosmic { animation: cosmicRocket 3s ease-in-out infinite; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s var(--t-slow), transform 0.65s var(--t-slow);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes cosmicFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-12px) rotate(3deg); }
}

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

@keyframes cosmicRocket {
    0%, 100% { transform: translateY(0px) rotate(-45deg); }
    50%       { transform: translateY(-14px) rotate(-45deg); }
}

@keyframes blobDrift {
    from { transform: translate(0, 0) scale(1) rotate(0deg); }
    to   { transform: translate(15px, -10px) scale(1.07) rotate(8deg); }
}

@keyframes flash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0px rgba(242, 114, 94, 0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(242, 114, 94, 0); }
}

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

/* ============================================================
   VECTOR BACKGROUND DECORATIONS (Pure CSS)
   ============================================================ */

/* Perspective grid lines (teal, like in reference image) */
.perspective-grid {
    position: absolute;
    pointer-events: none;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.2;
}

.perspective-grid svg {
    width: 100%;
    height: 100%;
}

/* Planet decoration for methodology section */
.section-planet {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 38% 38%, var(--coral-light) 0%, var(--coral) 50%, var(--coral-dark) 100%);
}

/* Orbit ring animations */
.spin-orbit {
    animation: orbitSpin 40s linear infinite;
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media (max-width: 1024px) {
    .hero .container   { grid-template-columns: 1fr; text-align: center; }
    .hero-content      { max-width: 100%; }
    .hero-btns         { justify-content: center; }
    .hero-visual       { display: none; }
    .hero-planet,
    .hero-orbits       { display: none; }
    .contact-grid      { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(300px, 80vw);
        background: var(--bg-card);
        border-left: var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 40px;
        gap: 28px;
        transition: right var(--t-mid);
        z-index: 999;
    }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.15rem; }
    .menu-toggle { display: flex; }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        border-right: none;
        border-bottom: var(--border);
    }
    .stat-card:last-child { border-bottom: none; }

    .method-grid { grid-template-columns: 1fr; }
    .faq-grid    { grid-template-columns: 1fr; }
    .form-row    { grid-template-columns: 1fr; }

    /* Hide parallax on mobile */
    .parallax-element { display: none; }
}

@media (max-width: 480px) {
    .hero { padding-top: 120px; padding-bottom: 60px; }
    .hero-title { font-size: 2.2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-form-panel { padding: 28px 20px; }
    .contact-info { padding: 28px 20px; }
}
