/* ===== VXAI Modern Styles ===== */

/* --- Self-hosted Inter Font --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('./fonts/inter-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('./fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Custom Properties (Brand Palette) --- */
:root {
    --color-charcoal: #2d3436;
    --color-dark: #111214;
    --color-teal: #5b8180;
    --color-teal-light: #74a3a2;
    --color-teal-dark: #476665;
    --color-teal-bg: #eef5f5;
    --color-white: #ffffff;
    --color-offwhite: #f8f9fa;
    --color-gray-50: #f1f3f5;
    --color-gray-100: #e9ecef;
    --color-gray-200: #dee2e6;
    --color-gray-400: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-800: #343a40;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-teal);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-teal-dark);
}

/* --- Container --- */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-teal);
    color: var(--color-white);
    border-color: var(--color-teal);
}

.btn-primary:hover {
    background-color: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-teal);
    border-color: var(--color-teal);
}

.btn-outline:hover {
    background-color: var(--color-teal);
    color: var(--color-white);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-gray-100);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-800);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--color-gray-200);
}

.lang-flag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: color var(--transition);
    user-select: none;
}

.lang-flag:hover {
    color: var(--color-teal);
}

.lang-sep {
    color: var(--color-gray-200);
    font-size: 0.85rem;
}

/* Mobile toggle */
.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: 2px;
    background-color: var(--color-charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: linear-gradient(145deg, var(--color-white) 0%, var(--color-teal-bg) 50%, var(--color-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,129,128,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,129,128,0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-charcoal);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--color-offwhite);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-teal);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--color-charcoal);
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

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

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-800);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--color-teal-light);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    color: var(--color-teal);
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 6px;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: var(--color-teal-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    color: var(--color-teal);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ===== PROCESS / HOW WE WORK ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-teal);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.process-icon {
    color: var(--color-teal);
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.92rem;
    color: var(--color-gray-600);
    line-height: 1.7;
}

.process-grid .process-step:nth-child(2) { transition-delay: 0.15s; }
.process-grid .process-step:nth-child(3) { transition-delay: 0.3s; }

/* ===== CONTACT ===== */
.contact-grid {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-channels {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--color-offwhite);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    color: var(--color-gray-800);
    font-weight: 500;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--color-teal);
    box-shadow: var(--shadow-md);
    color: var(--color-teal);
}

.email-decoy {
    display: none;
}

.contact-icon {
    color: var(--color-teal);
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-gray-50);
    color: var(--color-gray-600);
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--color-teal);
    color: var(--color-white);
}

.social-links a svg {
    width: 20px;
    height: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-gray-400);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand img {
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.85rem;
    text-align: center;
}

.footer-copy a {
    color: var(--color-gray-400);
    transition: color var(--transition);
}

.footer-copy a:hover {
    color: var(--color-white);
}

.footer-sep {
    margin: 0 12px;
    opacity: 0.3;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.4s; }

.about-stats .stat-card:nth-child(2) { transition-delay: 0.1s; }
.about-stats .stat-card:nth-child(3) { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-gray-100);
        box-shadow: var(--shadow-md);
    }

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

    .nav-links a::after {
        display: none;
    }

    .nav-lang {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 16px;
        border-top: 1px solid var(--color-gray-100);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 24px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 64px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-channels {
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
