/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff8da0, transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #f9a8d4, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #f9a8d4;
    top: 30%;
    right: 5%;
    transform: rotate(45deg);
    animation: rotateShape 12s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #ff8da0;
    top: 60%;
    left: 8%;
    animation: floatShape 9s ease-in-out infinite;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #f9a8d4 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 20%;
    left: 15%;
    opacity: 0.15;
}

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

@keyframes rotateShape {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ===== Floating Cards ===== */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

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

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

.card-3 {
    animation-delay: 0.8s;
}

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

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .floating-card {
        animation: none;
    }
    
    .geo-shape {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Navbar ===== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(168, 31, 69, 0.08);
}

.nav-scrolled .logo-text {
    color: #751934 !important;
}

/* ===== Custom Selection ===== */
::selection {
    background: #f5a5b8;
    color: #400a1a;
}

/* ===== Smooth Focus ===== */
:focus-visible {
    outline: 2px solid #a81f45;
    outline-offset: 2px;
}

/* ===== Mobile Menu Animation ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Button Ripple Effect ===== */
button, a {
    position: relative;
    overflow: hidden;
}

/* ===== Image Loading ===== */
img {
    background: linear-gradient(135deg, #fce7eb, #fff5f7);
}

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

::-webkit-scrollbar-track {
    background: #fdf2f4;
}

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

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