/* ============================================
   Patriot Thrift Store — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #1A1A1A;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #3D3D3D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E86A54;
}

/* Selection */
::selection {
    background: #E86A54;
    color: #ffffff;
}

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

/* Circles */
.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #E86A54;
    top: -200px;
    right: -150px;
    opacity: 0.04;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #E86A54;
    bottom: 10%;
    left: -80px;
    opacity: 0.03;
}

.shape-circle-3 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #E86A54;
    top: 10%;
    right: -200px;
    opacity: 0.03;
}

.shape-circle-4 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #E86A54;
    bottom: -100px;
    left: -100px;
    opacity: 0.03;
}

.shape-circle-5 {
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: #ffffff;
    top: -300px;
    left: -200px;
    opacity: 0.08;
}

/* Squares */
.shape-square-1 {
    width: 200px;
    height: 200px;
    background: #E86A54;
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    opacity: 0.03;
}

.shape-square-2 {
    width: 150px;
    height: 150px;
    background: #E86A54;
    bottom: 20%;
    left: 10%;
    transform: rotate(20deg);
    opacity: 0.03;
}

.shape-square-3 {
    width: 120px;
    height: 120px;
    background: #ffffff;
    bottom: 10%;
    right: 5%;
    transform: rotate(30deg);
    opacity: 0.1;
}

/* Triangles */
.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #E86A54;
    top: 60%;
    right: 8%;
    opacity: 0.04;
    transform: rotate(-15deg);
}

.shape-triangle-2 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 138px solid #ffffff;
    top: 20%;
    right: 15%;
    opacity: 0.06;
    transform: rotate(10deg);
}

/* Bar */
.shape-bar-1 {
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #E86A54, transparent);
    top: 50%;
    right: -50px;
    transform: rotate(-30deg);
    opacity: 0.05;
}

/* Dot Grid */
.shape-dot-grid {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #E86A54 1px, transparent 1px);
    background-size: 20px 20px;
    top: 20%;
    left: 3%;
    opacity: 0.05;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

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

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    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 .menu-line:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    top: 15px;
    width: 6px;
    transform: rotate(-45deg);
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Category Cards
   ============================================ */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   Form Styles
   ============================================ */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

select option {
    background: #2D2D2D;
    color: #ffffff;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2,
    .shape-circle-3,
    .shape-square-1,
    .shape-dot-grid {
        display: none;
    }
}

@media (max-width: 640px) {
    .shape-circle-4 {
        width: 200px;
        height: 200px;
    }
}
