/* ========================================
   TNT Fireworks Trumbull Mall — 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 {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #FF6B4A/30;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 74, 0.5);
}

/* Selection */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #fff;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ========================================
   Hero
   ======================================== */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-desc {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll dot animation */
@keyframes scrollDot {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ========================================
   Products
   ======================================== */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 74, 0), transparent);
    transition: background 0.5s ease;
}

.product-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 74, 0.4), transparent);
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   About
   ======================================== */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.section-about-header {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease 0.1s;
}

.section-about-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-about-title {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease 0.2s;
}

.section-about-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-about-text {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease 0.3s;
}

.section-about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-about-stats {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease 0.4s;
}

.section-about-stats.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Visit Section
   ======================================== */
.section-visit-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-visit-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-visit-info {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease 0.2s;
}

.section-visit-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-visit-visual {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease 0.3s;
}

.section-visit-visual.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease 0.15s;
}

.cta-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease 0.3s;
}

.cta-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Footer
   ======================================== */
.footer-brand,
.footer-links,
.footer-contact {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-brand.visible { opacity: 1; transform: translateY(0); }
.footer-links.visible { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.footer-contact.visible { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-dot {
        animation: none;
        top: 0;
    }
}
