/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #f9cdd7;
    color: #7B2D3B;
}

/* ========== NAVBAR ========== */
#navbar {
    background: rgba(254, 250, 246, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

#navbar.scrolled {
    background: rgba(254, 250, 246, 0.95);
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ========== HERO SHAPES ========== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 125, 144, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 15%;
    left: -8%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    top: 50%;
    right: 30%;
    width: 120px;
    height: 120px;
    background: rgba(255, 125, 144, 0.1);
    border-radius: 50%;
    animation: float-slow 6s ease-in-out infinite;
}

.shape-rect-1 {
    top: 20%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float-slow 7s ease-in-out infinite;
}

.shape-dots {
    top: 60%;
    right: 10%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    border-radius: 50%;
    animation: float-slow 9s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

.shape-rect-1 {
    animation-name: float-rotate;
}

@keyframes float-rotate {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(48deg) translateY(-15px); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7B2D3B, #ff7d90);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.service-card:hover::before {
    opacity: 1;
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 80px;
    line-height: 1;
    color: rgba(123, 45, 59, 0.07);
    pointer-events: none;
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

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

.mobile-link {
    display: block;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========== BUTTON HOVER GLOW ========== */
button:hover,
a:hover {
    cursor: pointer;
}

/* ========== FORM FOCUS ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }

    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }

    .shape-rect-1 {
        width: 50px;
        height: 50px;
    }

    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
}
