:root {
    --bg-primary: #0f1120;
    --bg-secondary: #0a0b14;
    --accent: #066aec;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --dark: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
}

#nav-links {
    transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Header */
.main-header {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    height: 2rem;
}

/* Staggered Reveal Delays */
.reveal-delay-1 { transition-delay: 0ms; }
.reveal-delay-2 { transition-delay: 150ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 450ms; }

.nav-pill {
    background: rgba(30, 33, 50, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    top: 1rem;
}

.main-header.scrolled .nav-pill {
    max-width: 1100px;
    background: rgba(25, 28, 42, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Dropdown */
.dropdown-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 70px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 49;
}

.dropdown-menu a {
    display: block;
    width: 100%;
}

.dropdown button svg {
    transition: transform 0.2s ease;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.dropdown-menu--small {
    position: absolute;
    left: 50%;
    right: auto;
    width: auto;
    min-width: 220px;
    transform: translateX(-50%) translateY(10px);
    top: calc(100% + 28px); /* gap below the button */
}

.dropdown.active .dropdown-menu--small {
    transform: translateX(-50%) translateY(0);
}


/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-dropdown-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease;
}

.mobile-dropdown-menu.open {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

    100% {
        transform: translateX(0);
    }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
}

.animate-marquee-reverse {
    animation: marquee-reverse 40s linear infinite;
}


/* Faster marquee for tech stack & testimonials */
@keyframes marquee-fast {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marquee-fast-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.animate-marquee-fast {
    animation: marquee-fast 25s linear infinite;
}
.animate-marquee-fast-reverse {
    animation: marquee-fast-reverse 25s linear infinite;
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Button Hover */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 106, 236, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Card Hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Line clamp utilities for blog post cards */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


@media screen and (max-width:490px) {

    /* Main Header */
    .main-header {
        position: fixed;
        top: 1.5rem;
        left: 0;
        right: 0;
        z-index: 50;
        padding: 0 1.5rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-pill {
        background: rgba(30, 33, 50, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 9999px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        max-width: 100%;
        margin: 0 auto;
        padding: 0.575rem 1.3rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}