/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f5eaf8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a060d;
}
::-webkit-scrollbar-thumb {
    background: #3d1649;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5a1e6b;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 6, 13, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(93, 30, 107, 0.3);
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Approach steps */
.approach-step {
    position: relative;
}

.approach-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -2rem;
    width: 1.5rem;
    height: 1px;
    background: rgba(212, 160, 23, 0.3);
}

.approach-step:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .approach-step::after {
        display: none;
    }
}

/* Form inputs */
select option {
    background: #1a1020;
    color: #e8d0f2;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal (progressive enhancement — only applied via JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}
