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

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

body {
    background-color: #0D0510;
    color: #F0E0F4;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0D0510;
}
::-webkit-scrollbar-thumb {
    background: #3D144A;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D8E;
}

/* Selection */
::selection {
    background: #D4A017;
    color: #0D0510;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for service cards */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.5s ease;
}
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(13, 5, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 142, 0.2);
}

/* Mobile menu active state */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile menu lines animation */
body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
body.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Service card stagger delays */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Gallery image hover overlay */
.aspect-square {
    position: relative;
}
.aspect-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 5, 16, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.aspect-square:hover::after {
    opacity: 1;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Smooth focus outlines */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A017' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

/* Subtle glow on amber elements */
.text-amber-400 {
    text-shadow: 0 0 40px rgba(212, 160, 23, 0.3);
}

/* Parallax hero image */
#hero img {
    will-change: transform;
}
