html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    letter-spacing: -0.02em;
}

::selection {
    background: #FFD23F;
    color: #020A2B;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #020A2B;
}
::-webkit-scrollbar-thumb {
    background: #0A27A8;
    border-radius: 8px;
    border: 2px solid #020A2B;
}
::-webkit-scrollbar-thumb:hover {
    background: #0B2EC4;
}

/* ---------- Header / Navbar ---------- */
#siteHeader.is-scrolled {
    background: rgba(2, 10, 43, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.mobile-nav-link {
    display: block;
    border-radius: 0.6rem;
    padding: 0.65rem 0.85rem;
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Animated hamburger icon */
.menu-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 14px;
}
.menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 6px; }
.menu-icon span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Form ---------- */
.form-field {
    display: flex;
    flex-direction: column;
}
.form-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #475569;
    margin-bottom: 0.4rem;
}
.form-input {
    width: 100%;
    border: 1.5px solid #E2E8F0;
    background: #F8FAFC;
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #0F172A;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.form-input:hover {
    background: #ffffff;
}
.form-input:focus {
    border-color: #0A27A8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(10, 39, 168, 0.12);
}
.form-textarea {
    border-radius: 1.25rem;
    padding: 0.85rem 1rem;
    line-height: 1.5;
    resize: vertical;
}
.form-select {
    background-color: #F8FAFC;
}
.form-error {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: #e11d48;
    font-weight: 500;
}

/* ---------- FAQ accordion animation ---------- */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-trigger { background: transparent; border: 0; padding: 0; }
.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}
.faq-content-inner {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.faq-item.is-open .faq-content {
    grid-template-rows: 1fr;
}
.faq-item.is-open .faq-content-inner {
    opacity: 1;
}
.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    border-color: #FFD23F;
    color: #FFD23F;
}
.faq-icon { transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease; }

/* ---------- Service card border shimmer ---------- */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 40%, rgba(255,210,63,0.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.service-card:hover::before {
    opacity: 1;
}

/* Utility */
.bg-radial-spot {
    background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.18), transparent 60%);
}
