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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* Hero gradient */
.hero-gradient {
    background: radial-gradient(ellipse at 30% 20%, #6B1675 0%, transparent 55%),
                radial-gradient(ellipse at 70% 80%, #92400E 0%, transparent 55%),
                radial-gradient(ellipse at 50% 50%, #4A0E52 0%, #0A0A0B 70%);
}

/* CTA gradient */
.cta-gradient {
    background: linear-gradient(135deg, #4A0E52 0%, #6B1675 35%, #8A1E9F 55%, #B45309 80%, #92400E 100%);
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .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; }
}

/* Service card shimmer on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s;
    background: linear-gradient(135deg, rgba(216, 108, 254, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

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

.service-card {
    position: relative;
    overflow: hidden;
}

/* Navbar glass effect */
.nav-glass {
    background: rgba(10, 10, 11, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line:nth-child(3) {
    width: 20px;
}

/* Active menu state */
.menu-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0A0B;
}

::-webkit-scrollbar-thumb {
    background: #6B1675;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8A1E9F;
}

/* Selection color */
::selection {
    background: rgba(168, 39, 204, 0.4);
    color: white;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #D86CFE;
    outline-offset: 2px;
}

/* Select dropdown styling */
select option {
    background: #111113;
    color: white;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Anchor offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Prevent content flash on load */
.no-js .reveal {
    opacity: 1;
    transform: none;
}
