/* ========================================
   Khao Labs - Styles
   ======================================== */

:root {
    --yellow: #FFE500;
    --yellow-dim: #FFE50020;
    --black: #0a0a0a;
    --dark: #111111;
    --dark-light: #1a1a1a;
    --gray: #888888;
    --gray-light: #aaaaaa;
    --white: #ffffff;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--yellow);
    color: var(--black);
}

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

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

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
}

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

.nav-logo img {
    height: 80px;
    width: auto;
    transition: opacity 0.2s ease;
}

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

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gray);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title .reveal-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 0.8s var(--ease-out) forwards;
}

.hero-title .reveal-line:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-title .highlight {
    color: var(--yellow);
}

.hero-sub {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

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

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

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

.section {
    padding: 8rem 2rem;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--yellow);
    margin-bottom: 3rem;
}

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

.section-services {
    background: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    border-color: var(--yellow-dim);
    transform: translateY(-4px);
}

.service-number {
    font-size: 0.75rem;
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--gray-light);
    line-height: 1.7;
}

/* ========================================
   Approach
   ======================================== */

.section-approach {
    background: var(--black);
}

.approach-content {
    display: grid;
    gap: 4rem;
}

.large-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.approach-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.pillar-icon {
    width: 12px;
    height: 12px;
    background: var(--yellow);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out);
}

.pillar:hover .pillar-icon {
    transform: rotate(45deg) scale(1.2);
}

/* ========================================
   Tech Marquee
   ======================================== */

.section-tech {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.marquee {
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.marquee-track span:hover {
    color: var(--yellow);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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

.section-statement {
    background: var(--dark);
    padding: 10rem 2rem;
}

.statement-grid {
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 4rem;
    align-items: center;
}

.statement-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.statement-icon .seedling-icon {
    width: 100%;
    max-width: 180px;
    height: auto;
    color: var(--yellow);
    transform: scale(0);
    transition: transform 1s var(--ease-out);
}

.statement-icon.visible .seedling-icon {
    transform: scale(1);
}

.statement {
    text-align: right;
}

.statement p {
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.02em;
}

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

.section-contact {
    background: var(--black);
    text-align: center;
    padding: 12rem 2rem;
}

.contact-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-light);
}

.form-group .optional {
    color: var(--gray);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

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

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 229, 0, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

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

.footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray);
}

/* ========================================
   Reveal Animations
   ======================================== */

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

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

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

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-logo img {
        height: 56px;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }

    .approach-pillars {
        flex-direction: column;
        gap: 1.25rem;
    }

    .section-statement {
        padding: 6rem 1.5rem;
    }

    .statement-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .statement {
        text-align: center;
    }

    .statement-icon .seedling-icon {
        max-width: 120px;
    }

    .section-contact {
        padding: 8rem 1.5rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
