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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a1e;
}
::-webkit-scrollbar-thumb {
    background: #5a1d66;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a2888;
}

/* ===== Animations ===== */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes floatMedium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes floatFast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.animate-float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: floatMedium 4.5s ease-in-out infinite;
}

.animate-float-fast {
    animation: floatFast 3.5s ease-in-out infinite;
}

/* ===== Service Card Hover Glow ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 160, 23, 0.08), transparent 60%);
    pointer-events: none;
}

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

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    background: rgba(26, 10, 30, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(90, 29, 102, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
    color: rgba(228, 200, 240, 0.8);
}

.nav-scrolled .nav-link:hover {
    color: #e6b422;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(90, 29, 102, 0.3);
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    padding-left: 0.5rem;
}

/* ===== Form Focus States ===== */
input:focus, select:focus, textarea:focus {
    border-color: rgba(212, 160, 23, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1) !important;
}

/* ===== Button Active State ===== */
button:active {
    transform: scale(0.98);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
