/* ── Custom Properties ── */
:root {
    --midnight: #0d1b2a;
    --midnight-light: #1b3a52;
    --mint-50: #f0fdf4;
    --mint-100: #dcfce7;
    --mint-200: #bbf7d0;
    --mint-300: #86efac;
    --mint-400: #4ade80;
    --mint-500: #22c55e;
    --mint-600: #16a34a;
    --mint-700: #15803d;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
}

/* ── Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--midnight);
    background-color: var(--stone-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-nunito {
    font-family: 'Nunito', sans-serif;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(13, 27, 42, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mint-500);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* ── Mobile Menu ── */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* ── Hero Animations ── */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Floating Elements ── */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}

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

.animate-float-delay {
    animation: float-delay 8s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.animate-pulse {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-pulse-delay {
    animation: pulse-slow 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* ── Scroll Indicator ── */
@keyframes scrollLine {
    0% { height: 0; opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { height: 40px; opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { height: 40px; opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── Gallery Hover ── */
.rounded-2xl.overflow-hidden {
    cursor: pointer;
}

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

::-webkit-scrollbar-track {
    background: var(--stone-50);
}

::-webkit-scrollbar-thumb {
    background: var(--mint-200);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mint-400);
}

/* ── Selection ── */
::selection {
    background: var(--mint-200);
    color: var(--midnight);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .font-cormorant.text-6xl,
    .font-cormorant.text-7xl,
    .font-cormorant.text-8xl {
        font-size: 3.5rem;
    }

    .font-cormorant.text-4xl,
    .font-cormorant.text-5xl {
        font-size: 2.5rem;
    }
}
