/* ========== 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(123, 45, 59, 0.15);
    color: #7B2D3B;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #d4a0aa;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b92f48;
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

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

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

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

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

/* ========== REVEAL ANIMATIONS ========== */
.reveal-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.reveal-left {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.reveal-right {
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
}

.reveal-up.animated,
.reveal-left.animated,
.reveal-right.animated {
    opacity: 1;
}

/* ========== HEADER ========== */
#header {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#header.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}

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

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

.mobile-nav-link {
    position: relative;
}

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

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

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(135deg, #7B2D3B 0%, #9a2439 100%);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.25);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 45, 59, 0.35);
    background: linear-gradient(135deg, #9a2439 0%, #b92f48 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ========== CARDS ========== */
.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
}

/* ========== INPUTS ========== */
.input-field {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.95rem;
}

.input-field:focus {
    border-color: #e9607e;
}

/* ========== DIVIDER ========== */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #7B2D3B, #f295aa);
    border: none;
    margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* ========== UTILITY ========== */
.bg-mesh {
    background-color: #fefdfb;
    background-image: 
        radial-gradient(at 40% 20%, rgba(252, 227, 233, 0.4) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(248, 193, 207, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(253, 240, 243, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(252, 227, 233, 0.25) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(248, 193, 207, 0.2) 0px, transparent 50%);
}
