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

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

body {
    overflow-x: hidden;
}

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

/* ── Scroll Indicator Animation ── */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.4; }
}

/* ── Hero Text Entrance ── */
.hero-tag {
    animation: fadeDown 1s ease-out 0.3s both;
}

.hero-tag span:nth-child(1),
.hero-tag span:nth-child(3) {
    animation: expandLine 0.8s ease-out 0.5s both;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 3rem; opacity: 1; }
}

/* ── Scroll Reveal (below-the-fold only) ── */
@media (prefers-reduced-motion: no-preference) {
    [class*="reveal-"] {
        opacity: 1;
        transform: none;
    }

    .reveal-left {
        transform: translateX(0);
    }

    .reveal-right {
        transform: translateX(0);
    }

    .reveal-up {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

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

::-webkit-scrollbar-track {
    background: #230c10;
}

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

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

/* ── Selection ── */
::selection {
    background: #7B2D3A;
    color: #FDF8F5;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #F5E6D3;
    outline-offset: 4px;
    border-radius: 4px;
}

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

/* ── Image Hover Parallax Hint ── */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}
