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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --text: #e4e4e7;
    --text-muted: #9494a0;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --border: #1e1e2a;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight { color: var(--accent-light); }

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }

.btn-nav {
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 6px;
}
.btn-nav:hover { background: var(--accent-light); }

.btn-full { width: 100%; }

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

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

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent-light); }

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========== Hero ========== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 48px;
    position: relative;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.6) 0%,
        rgba(10, 10, 15, 0.5) 60%,
        rgba(10, 10, 15, 0.85) 90%,
        var(--bg) 100%
    );
    z-index: 0;
}

/* ========== Services ========== */
.services {
    padding: 48px 0;
}

.services .container { text-align: center; }
.services h2 { margin-bottom: 32px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: left;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s ease;
}
.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 10px;
    margin-bottom: 20px;
    color: var(--accent-light);
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== About ========== */
.about { padding: 48px 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-values {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-values li {
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}

.about-values strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.about-values span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}

.stat-card.accent {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--accent-glow), var(--bg-card));
    border-color: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-light);
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== Clients ========== */
.clients {
    padding: 48px 0;
    text-align: center;
}

.clients-sub {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
}

.client-logo {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
}

.client-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.client-logo:hover img {
    opacity: 0.75;
}

@media (max-width: 600px) {
    .clients-logos {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
}

/* ========== Contact ========== */
.contact { padding: 48px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.contact-email {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.contact-email:hover { border-color: var(--accent-light); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea { resize: vertical; }

/* ========== Footer ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

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

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

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr; }
    .stat-card.accent { grid-column: auto; }
}
