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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
}

::selection {
    background: #C2274B;
    color: white;
}

/* ========== FLOATING BACKGROUND SHAPES ========== */
.shape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.shape-blob-1 {
    width: 500px;
    height: 500px;
    background: #FFD5E2;
    top: 10%;
    right: -100px;
    animation: blobFloat 20s ease-in-out infinite;
}

.shape-blob-2 {
    width: 400px;
    height: 400px;
    background: #F9D4E3;
    bottom: 20%;
    left: -80px;
    animation: blobFloat 25s ease-in-out infinite reverse;
}

.shape-blob-3 {
    width: 300px;
    height: 300px;
    background: #FDEEF4;
    top: 50%;
    left: 40%;
    animation: blobFloat 18s ease-in-out infinite;
}

.shape-tri {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 52px 30px;
    border-color: transparent transparent #FFaecb transparent;
    opacity: 0.3;
    pointer-events: none;
    transform: rotate(15deg);
}

.shape-tri-1 {
    top: 30%;
    left: 5%;
    animation: triFloat 15s ease-in-out infinite;
}

.shape-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.4;
}

.shape-circle-1 {
    width: 60px;
    height: 60px;
    border: 3px solid #FFaecb;
    top: 60%;
    right: 8%;
    animation: circleFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes triFloat {
    0%, 100% { transform: rotate(15deg) translate(0, 0); }
    50% { transform: rotate(25deg) translate(15px, -20px); }
}

@keyframes circleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, 15px) rotate(90deg); }
}

/* ========== MARQUEE ========== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ========== FLOATING CARD ANIMATIONS ========== */
.floating-card {
    animation: cardFloat 6s ease-in-out infinite;
}

.card-float-1 {
    animation-delay: 0s;
}

.card-float-2 {
    animation-delay: -2s;
}

.card-float-3 {
    animation-delay: -4s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ========== NAVBAR SCROLL STATE ========== */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(123, 17, 48, 0.08);
}

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

#menuBtn[aria-expanded="true"] #bar1 {
    transform: translateY(5.5px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn[aria-expanded="true"] #bar3 {
    transform: translateY(-5.5px) rotate(-45deg);
    background-color: #C2274B;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@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);
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .floating-card {
        animation: none;
    }
    
    .animate-marquee {
        animation: none;
    }
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C2274B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== UTILITY ========== */
.no-underline:hover {
    text-decoration: none;
}
