/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #2f1329 0%,
        #6B2F5B 35%,
        #4d2143 60%,
        #3e1a36 100%
    );
}

.hero-scrim {
    background: radial-gradient(
        ellipse at center,
        rgba(47, 19, 41, 0.3) 0%,
        rgba(47, 19, 41, 0.6) 100%
    );
}

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

.hero-anim {
    opacity: 1;
    animation: fadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.45s;
}

/* ===== Nav ===== */
.nav-link {
    position: relative;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(107, 47, 91, 0.08);
}

#navbar.scrolled .nav-link {
    color: #3e1a36;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state — visible even without JS */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* ===== Menu Hover ===== */
#menu .border-b {
    transition: border-color 0.3s ease;
}

#menu .border-b:hover {
    border-color: rgba(107, 47, 91, 0.2);
}

#menu .font-serif {
    transition: color 0.3s ease;
}

#menu .border-b:hover .font-serif {
    color: #6B2F5B;
}

/* ===== Decorative Lines ===== */
.deco-line {
    opacity: 0.6;
}

.deco-line-deco {
    opacity: 0.4;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

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

/* ===== Mobile Responsive ===== */
@media (max-width: 767px) {
    .hero-gradient {
        background: linear-gradient(
            160deg,
            #2f1329 0%,
            #6B2F5B 50%,
            #3e1a36 100%
        );
    }

    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    #hero h1 br {
        display: none;
    }

    #hero h1 span {
        display: inline;
    }
}

@media (min-width: 768px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    #hero h1 {
        font-size: 5.5rem;
    }
}

/* ===== Subtle Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #faf0f7;
}

::-webkit-scrollbar-thumb {
    background: #d98fbf;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B2F5B;
}
