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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(245, 181, 24, 0.3);
    color: #3a1226;
}

/* ── Scroll Reveal ── */
.scroll-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);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero Animations ── */
.hero-diamond {
    animation: float 8s ease-in-out infinite;
}

.hero-diamond:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-diamond:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 6s;
}

.hero-diamond:nth-child(4) {
    animation-delay: -1s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(2deg); }
    50% { transform: translate(-5px, -25px) rotate(-1deg); }
    75% { transform: translate(-15px, -10px) rotate(1deg); }
}

.hero-sparkle {
    animation: sparkle 3s ease-in-out infinite;
}

.hero-sparkle:nth-child(5) {
    animation-delay: 0s;
}

.hero-sparkle:nth-child(6) {
    animation-delay: 0.7s;
}

.hero-sparkle:nth-child(7) {
    animation-delay: 1.4s;
}

.hero-sparkle:nth-child(8) {
    animation-delay: 2.1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ── Scroll Line ── */
.scroll-line {
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ── Navbar ── */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(58, 18, 38, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f5b518;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ── Hamburger Animation ── */
#menu-toggle.active #line1 {
    transform: translateY(5px) rotate(45deg);
}

#menu-toggle.active #line2 {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle.active #line3 {
    transform: translateY(-5px) rotate(-45deg);
}

/* ── Image Hover ── */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

::-webkit-scrollbar-track {
    background: #3a1226;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #c06aa3;
}

/* ── Form Styles ── */
select option {
    background: #3a1226;
    color: #ebd0e1;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}
