/* ========================================
   Burlington Bargains — Custom Styles
   ======================================== */

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

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

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

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: -80px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(212, 168, 67, 0.1);
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(212, 168, 67, 0.05);
    top: 60%;
    right: 8%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 20%;
    right: 15%;
    opacity: 0.6;
}

/* --- Floating Card Animations --- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.5s; }
.card-3 { animation-delay: 3s; }
.card-4 { animation-delay: 4.5s; }

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

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

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

/* --- Navbar --- */
.nav-bar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav-bar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a843;
    transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-line {
    transition: all 0.3s ease;
}

#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: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Reveal Animations (below-fold only) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .geo-circle-1,
    .geo-circle-2,
    .geo-square-1,
    .geo-triangle-1 {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* --- Deal Cards --- */
.deal-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.deal-card:hover {
    box-shadow: 0 20px 60px rgba(212, 168, 67, 0.1);
}

/* --- Category Tiles --- */
.category-tile {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

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

/* --- Selection --- */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #ffffff;
}

/* --- Focus States --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .geo-square-1,
    .geo-triangle-1,
    .geo-dots {
        display: none;
    }
}
