/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-up:nth-child(2) { animation-delay: 0.15s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.45s; }

/* ── Hero clip ── */
.clip-hero-right {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ── Scroll reveal ── */
.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.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar scrolled state ── */
.nav-scrolled {
    background: rgba(22, 9, 25, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Mobile menu open state ── */
.menu-open .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .nav-line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #160919; }
::-webkit-scrollbar-thumb { background: #4A154D; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6B1F6E; }

/* ── Selection ── */
::selection { background: rgba(245, 158, 11, 0.3); color: #fff; }

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

/* ── Image aspect ratios ── */
img { max-width: 100%; height: auto; }

/* ── Smooth transitions for links ── */
a { text-decoration: none; }

/* ── Form focus styles ── */
input:focus, textarea:focus {
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
}

/* ── Mobile menu animation ── */
#menu {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), pointer-events 0.4s;
}
#menu.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ── Button hover lift ── */
button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Section padding helper ── */
section {
    position: relative;
}

/* ── Responsive typography ── */
@media (max-width: 640px) {
    .clip-hero-right {
        clip-path: polygon(0% 0, 100% 0, 100% 100%, 0% 100%);
    }
}
