/* ========================================
   Omnigate — Bold & Geometric
   ======================================== */

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

:root {
    --bg: #050505;
    --bg-elevated: #0a0a0a;
    --bg-card: #0c0c0c;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #ccc;
    --text-muted: #666;
    --text-dim: #444;
    --white: #fff;
    --silver: #999;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

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

/* ========================================
   Reveal animations
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children in overview */
.overview-item.reveal:nth-child(1) { transition-delay: 0s; }
.overview-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.overview-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.overview-item.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.nav-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
    display: flex;
    align-items: center;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    padding-top: 0.15em;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 3rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-geo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geo-shape {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 2px;
    animation: geoFloat 20s ease-in-out infinite;
}

.geo-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -5%;
    transform: rotate(45deg);
    --float-x: 15px;
    --float-y: -20px;
}

.geo-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: -3%;
    transform: rotate(30deg);
    animation-delay: -5s;
    animation-duration: 25s;
    --float-x: -10px;
    --float-y: 15px;
}

.geo-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 15%;
    transform: rotate(60deg);
    border-color: rgba(255,255,255,0.03);
    animation-delay: -8s;
    animation-duration: 18s;
    --float-x: 12px;
    --float-y: -8px;
}

.geo-4 {
    width: 500px;
    height: 500px;
    bottom: -10%;
    right: 20%;
    transform: rotate(15deg);
    border-color: rgba(255,255,255,0.02);
    animation-delay: -12s;
    animation-duration: 30s;
    --float-x: -8px;
    --float-y: 12px;
}

@keyframes geoFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: var(--float-x, 10px) var(--float-y, -10px); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero .reveal {
    opacity: 1;
    transform: none;
}

.hero-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s ease both 0.2s;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    color: var(--white);
    animation: fadeUp 0.8s ease both;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }
.title-line:nth-child(3) { animation-delay: 0.7s; }

.title-accent {
    background: linear-gradient(135deg, #fff 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeUp 0.8s ease both 0.9s;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--bg);
    background: var(--white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeUp 0.8s ease both 1.1s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255,255,255,0.1);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeUp 0.8s ease both 1.5s;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ========================================
   Page Sections
   ======================================== */

.page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

/* ========================================
   Section Header
   ======================================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--silver);
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ========================================
   Services Overview
   ======================================== */

.services-overview {
    padding: 8rem 0;
}

.services-overview .container {
    width: 100%;
}

.overview-grid {
    display: flex;
    flex-direction: column;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.overview-item:first-child {
    border-top: 1px solid var(--border);
}

.overview-item:hover {
    padding-left: 1.5rem;
}

.overview-item:hover .overview-name {
    color: var(--white);
}

.overview-item:hover svg {
    opacity: 1;
    transform: translateX(4px);
}

.overview-num {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    min-width: 2rem;
}

.overview-name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--silver);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex: 1;
    transition: color 0.3s;
}

.overview-item svg {
    color: var(--text-dim);
    opacity: 0;
    transition: all 0.3s;
}

/* ========================================
   Service Full Pages
   ======================================== */

.service-page {
    overflow: hidden;
}

.service-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: transform;
}

.service-illustration {
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    opacity: 0.7;
}

.service-page-inner {
    width: 100%;
    position: relative;
    z-index: 2;
}

.service-page-label {
    margin-bottom: 3rem;
}

.service-page-content {
    max-width: 650px;
}

.service-page-icon {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.service-page-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.0;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.service-page-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 500px;
}

/* ========================================
   Statement
   ======================================== */

.statement {
    justify-content: center;
}

.statement .container {
    width: 100%;
}

.statement-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    border: none;
    padding: 0;
}

.statement-accent {
    color: var(--white);
}

/* ========================================
   Contact
   ======================================== */

.contact {
    padding: 8rem 0;
}

.contact .container {
    width: 100%;
}

.contact-content {
    max-width: 600px;
}

.contact-text {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    transition: all 0.3s;
    width: fit-content;
    padding: 0.75rem 0;
    border-bottom: 1px solid transparent;
}

.contact-link svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.contact-link:hover {
    color: var(--white);
    border-bottom-color: var(--border-hover);
}

.contact-link:hover svg {
    opacity: 1;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    min-height: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.footer-logo {
    width: 24px;
    height: 24px;
    opacity: 0.4;
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav {
        padding: 0 1.5rem;
    }

    .page-section {
        min-height: 100vh;
        padding: 6rem 0;
    }

    .service-page-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .overview-item {
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .overview-item:hover {
        padding-left: 0.75rem;
    }

    .service-illustration {
        width: 100vw;
        height: 100vw;
        opacity: 0.5;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .geo-1 { width: 250px; height: 250px; }
    .geo-4 { display: none; }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
