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

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;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 15%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-medium 15s ease-in-out infinite reverse;
}

.shape-square-1 {
    top: 60%;
    right: 5%;
    width: 80px;
    height: 80px;
    background: rgba(157, 23, 77, 0.06);
    border-radius: 16px;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.shape-triangle-1 {
    top: 30%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 204, 0, 0.08);
    animation: float-fast 12s ease-in-out infinite;
}

.shape-dots {
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(157, 23, 77, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: translate(-50%, -50%);
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.02); }
}

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

@keyframes float-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes scroll-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

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

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

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

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

/* ===== Floating stat cards ===== */
.absolute > .animate-float-slow,
.absolute > .animate-float-medium,
.absolute > .animate-float-fast {
    will-change: transform;
}

/* ===== Navbar ===== */
.nav-bar {
    background: rgba(253, 244, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(157, 23, 77, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-bar.scrolled {
    box-shadow: 0 4px 30px rgba(157, 23, 77, 0.1);
}

/* ===== Mobile Menu ===== */
.mobile-menu-bg {
    max-height: 0;
    overflow: hidden;
    background: rgba(253, 244, 248, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(157, 23, 77, 0.08);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-bg.open {
    max-height: 400px;
}

.mobile-menu-link {
    display: block;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s 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;
    }
}

/* ===== Selection ===== */
::selection {
    background: rgba(251, 191, 212, 0.4);
    color: #500724;
}

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

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

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

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

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