/* ============================================
   THE BIRD'S NEST — Custom Styles
   ============================================ */

/* Reset & base */
*, *::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 SHAPES (Hero decoration)
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid white;
    border-radius: 50%;
    top: -100px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid white;
    border-radius: 50%;
    top: 40%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid white;
    top: 25%;
    left: 8%;
    opacity: 0.08;
    animation: spin 20s linear infinite;
}

.geo-square {
    width: 100px;
    height: 100px;
    border: 3px solid white;
    top: 60%;
    right: 20%;
    opacity: 0.1;
    animation: spin 15s linear infinite;
}

.geo-ring {
    width: 160px;
    height: 160px;
    border: 4px solid white;
    border-radius: 50%;
    bottom: 25%;
    left: 25%;
    opacity: 0.07;
    animation: float 9s ease-in-out infinite;
}

.geo-circle-4 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    animation: float 12s ease-in-out infinite;
}

.geo-circle-5 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -80px;
    right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

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

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(159, 31, 56, 0.08);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    transition: background 0.2s ease;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */
a {
    text-decoration: none;
}

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }
    .geo-triangle {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 70px;
    }
    .geo-square {
        width: 60px;
        height: 60px;
    }
    .geo-ring {
        width: 80px;
        height: 80px;
    }
}
