/* ============================================
   DOUBLE HEART BOUTIQUE — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   GEOMETRIC BACKGROUND SHAPES
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ff7490 0%, transparent 70%);
    top: -100px;
    right: -150px;
    border-radius: 50%;
    animation: floatSlow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f5a4b8 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 116, 144, 0.3);
    top: 30%;
    right: 10%;
    border-radius: 50%;
    animation: spinSlow 30s linear infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 116, 144, 0.15);
    top: 20%;
    left: 3%;
    transform: rotate(45deg);
    animation: floatSlow 12s ease-in-out infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 179, 200, 0.3);
    bottom: 20%;
    right: 5%;
    transform: rotate(20deg);
    animation: spinSlow 25s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 116, 144, 0.1);
    top: 50%;
    left: 15%;
    animation: floatSlow 18s ease-in-out infinite;
}

.geo-circle-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff3d66 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    border-radius: 50%;
    animation: floatSlow 22s ease-in-out infinite;
}

.geo-square-3 {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 116, 144, 0.2);
    top: 10%;
    right: 5%;
    transform: rotate(30deg);
    animation: spinSlow 35s linear infinite;
}

.geo-circle-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #dc4466 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: floatSlow 18s ease-in-out infinite;
}

.geo-square-4 {
    width: 100px;
    height: 100px;
    background: rgba(255, 61, 102, 0.1);
    bottom: 10%;
    left: 8%;
    transform: rotate(15deg);
    animation: floatSlow 14s ease-in-out infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

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

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

/* Default state for JS-gated reveals: hidden */
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 24, 46, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b82847, #ff7490);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Mobile menu */
#mobileMenu.open {
    transform: translateX(0);
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
#menuBtn.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* ============================================
   PARALLAX-LIKE HERO TEXT
   ============================================ */
.hero-title {
    animation: heroFloat 6s ease-in-out infinite;
}

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

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }

    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

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

    .geo-square-1 {
        width: 60px;
        height: 60px;
    }

    .geo-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(255, 116, 144, 0.1);
    }
}

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

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: #ff7490;
    color: #fff;
}
