/* ============================================
   My Friends Thrift 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
   ============================================ */

.hero-geo {
    position: absolute;
    opacity: 0.4;
}

.hero-geo-1 {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(232, 93, 74, 0.3);
    border-radius: 24px;
    transform: rotate(45deg);
    animation: float-geo 8s ease-in-out infinite;
}

.hero-geo-2 {
    top: 25%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: rgba(232, 93, 74, 0.15);
    border-radius: 50%;
    animation: float-geo 6s ease-in-out infinite reverse;
}

.hero-geo-3 {
    bottom: 20%;
    left: 15%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(232, 93, 74, 0.1);
    animation: float-geo 10s ease-in-out infinite;
}

.hero-geo-4 {
    bottom: 30%;
    right: 20%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(232, 93, 74, 0.2);
    border-radius: 12px;
    transform: rotate(30deg);
    animation: float-geo 7s ease-in-out infinite reverse;
}

.cta-geo {
    position: absolute;
}

.cta-geo-1 {
    top: -20%;
    right: -5%;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float-geo 12s ease-in-out infinite;
}

.cta-geo-2 {
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-geo 9s ease-in-out infinite reverse;
}

.cta-geo-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float-geo 8s ease-in-out infinite;
}

@keyframes float-geo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ============================================
   Navbar
   ============================================ */

#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .text-charcoal-600 {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Mobile Menu
   ============================================ */

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

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

/* ============================================
   Button Hover Effects
   ============================================ */

a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Selection Color
   ============================================ */

::selection {
    background: rgba(232, 93, 74, 0.3);
    color: #fff;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

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

/* ============================================
   Focus Styles
   ============================================ */

a:focus-visible, button:focus-visible {
    outline: 2px solid #E85D4A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Image Loading
   ============================================ */

img {
    background-color: #2D2D2D;
}
