/* === Base & Reset === */
*, *::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;
}

::selection {
    background: rgba(107, 45, 91, 0.15);
    color: #2D1226;
}

/* === Hero Gradient === */
.hero-gradient {
    background: linear-gradient(160deg, #F9F0F7 0%, #F3E0EF 30%, #E8C2DF 55%, #D99ECB 75%, #C472B2 100%);
}

.hero-circle {
    background: radial-gradient(circle, rgba(212, 114, 178, 0.5) 0%, transparent 70%);
}

.hero-circle-1 {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
}

.hero-circle-2 {
    background: radial-gradient(circle, rgba(168, 76, 143, 0.25) 0%, transparent 70%);
}

.hero-circle-3 {
    background: radial-gradient(circle, rgba(232, 194, 223, 0.3) 0%, transparent 70%);
}

/* === Navbar === */
#navbar {
    background: rgba(249, 240, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 45, 91, 0.06);
}

#navbar.scrolled {
    background: rgba(249, 240, 247, 0.95);
    box-shadow: 0 1px 20px rgba(107, 45, 91, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #6B2D5B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* === Mobile Menu === */
.menu-line {
    display: block;
}

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

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

.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

/* === Reveal Animations === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hover\:scale-105:hover img {
        transform: none;
    }
}

/* === Focus Styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6B2D5B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Input Autofill === */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #F9F0F7 inset !important;
    -webkit-text-fill-color: #2D1226 !important;
}

/* === Smooth image loading === */
img {
    image-rendering: auto;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F9F0F7;
}
::-webkit-scrollbar-thumb {
    background: #D99ECB;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A84C8F;
}
