/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    --orange: #FF5500;
    --orange-rgb: 255, 85, 0;
    --orange-light: #FF7733;
    --blue: #2563EB;
    --yellow: #F5C518;

    --bg-primary: #0A0A0A;
    --bg-primary-rgb: 10, 10, 10;
    --bg-secondary: #111111;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;

    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;

    --border-subtle: #2A2A2A;

    --easing-smooth: cubic-bezier(0.16, 1, 0.3, 1);

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s var(--easing-smooth);

    --section-padding: clamp(80px, 10vh, 140px);
    --container-max: 1100px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast), padding var(--transition-fast), border-color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(var(--bg-primary-rgb), 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 40px;
    border-bottom-color: var(--border-subtle);
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.3s var(--easing-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Hero
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(var(--orange-rgb), 0.2) 0%, rgba(var(--orange-rgb), 0.08) 25%, transparent 55%),
        var(--bg-primary);
    padding: 0 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-logo {
    width: clamp(220px, 30vw, 400px);
    margin-bottom: 2.5rem;
    animation: logoFloat 6s ease-in-out infinite;
    filter:
        drop-shadow(0 0 20px rgba(var(--orange-rgb), 0.35))
        drop-shadow(0 0 50px rgba(var(--orange-rgb), 0.2))
        drop-shadow(0 0 100px rgba(var(--orange-rgb), 0.12));
}

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

.hero-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3rem;
}

.hero-cta {
    color: var(--orange);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    animation: bounce 2s ease-in-out infinite 3s;
}

.hero-cta:hover {
    opacity: 0.7;
    transform: translateY(3px);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===========================
   Sections (shared)
   =========================== */
.section {
    padding: var(--section-padding) 20px;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--orange);
}

/* ===========================
   What We Do
   =========================== */
.what-we-do {
    background-color: var(--bg-secondary);
}

.what-we-do-content {
    margin-top: 2rem;
    max-width: 800px;
}

.lead-paragraph {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.what-we-do-content p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* ===========================
   Our Process
   =========================== */
.our-process {
    background-color: var(--bg-primary);
}

.process-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
}

.process-timeline {
    position: relative;
    padding: 20px 0;
}

/* Timeline vertical line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-subtle);
    transform: translateX(-50%);
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--timeline-progress, 0%);
    background-color: var(--orange);
    transition: height 0.05s linear;
}

/* Process step */
.process-step {
    position: relative;
    display: flex;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--easing-smooth),
                transform 0.8s var(--easing-smooth);
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate left/right */
.process-step:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 40px);
    text-align: right;
}

.process-step:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 40px);
    text-align: left;
}

/* Timeline dot */
.process-step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-subtle);
    transform: translateX(-50%);
    z-index: 2;
    transition: border-color 0.4s ease, background-color 0.4s ease;
}

.process-step.visible::before {
    border-color: var(--orange);
    background-color: var(--orange);
}

/* Step card */
.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-medium),
                background-color var(--transition-medium);
    width: 100%;
}

.step-card:hover {
    border-color: rgba(var(--orange-rgb), 0.3);
    background-color: var(--bg-card-hover);
}

/* Colored left accent bar */
.step-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s var(--easing-smooth) 0.3s;
}

.process-step:nth-child(even) .step-card::before {
    /* Accent on left for even (left-to-right) */
}

.process-step:nth-child(odd) .step-card::before {
    left: auto;
    right: 0;
}

.process-step.visible .step-card::before {
    transform: scaleY(1);
}

/* Color per step */
.process-step[data-step="01"] .step-card::before { background-color: var(--orange); }
.process-step[data-step="02"] .step-card::before { background-color: var(--blue); }
.process-step[data-step="03"] .step-card::before { background-color: var(--yellow); }
.process-step[data-step="04"] .step-card::before { background-color: var(--orange); }

/* Step number - large background numeral */
.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    color: rgba(var(--orange-rgb), 0.06);
    position: absolute;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    top: 0;
}

.process-step:nth-child(odd) .step-number {
    right: calc(50% + 50px);
    text-align: right;
}

.process-step:nth-child(even) .step-number {
    left: calc(50% + 50px);
    text-align: left;
}

/* Step title */
.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   Contact
   =========================== */
.contact {
    background-color: var(--bg-secondary);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.contact-container {
    text-align: center;
}

.contact .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-email {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--orange);
    display: inline-block;
    position: relative;
    transition: color var(--transition-fast);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.4s var(--easing-smooth);
}

.contact-email:hover {
    color: var(--orange-light);
}

.contact-email:hover::after {
    width: 100%;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 40px 20px;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-primary);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    height: 30px;
    width: auto;
    opacity: 0.5;
}

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

/* ===========================
   Scroll Reveal Animation
   =========================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--easing-smooth),
                transform 0.7s var(--easing-smooth);
}

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

/* Stagger children */
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ===========================
   Responsive — Tablet
   =========================== */
@media (max-width: 900px) {
    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
        text-align: left;
    }

    .timeline-line {
        left: 20px;
    }

    .process-step::before {
        left: 20px;
    }

    .step-number {
        display: none;
    }

    .process-step:nth-child(odd) .step-card::before {
        left: 0;
        right: auto;
    }
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .navbar.scrolled {
        padding: 12px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background-color: rgba(var(--bg-primary-rgb), 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateX(100%);
        transition: transform 0.35s var(--easing-smooth);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero-logo {
        width: clamp(180px, 50vw, 280px);
    }

    .section {
        padding: clamp(60px, 8vh, 100px) 20px;
    }

    .process-step {
        margin-bottom: 50px;
    }

    .step-card {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ===========================
   Responsive — Small Mobile
   =========================== */
@media (max-width: 480px) {
    .hero-tagline {
        font-size: 2rem;
    }

    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        padding-left: 45px;
    }

    .timeline-line {
        left: 12px;
    }

    .process-step::before {
        left: 12px;
        width: 10px;
        height: 10px;
    }
}
