/* ==========================================================================
   Classic Traders - Modern Dark Theme & Bento Box UI 
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

/* ================= Modern CSS Variables ================= */
:root {
    --bg-color: #0d0d12;
    --surface-color: #1a1a24;
    --primary-glow: #00f0ff; /* Neon Cyan */
    --secondary-glow: #ffcf00; /* Neon Yellow */
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --radius: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ================= Reset & Base Styles ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ================= Running Announcement Notice Bar (Optimized & Fast) ================= */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
    color: #000;
    padding: 8px 0;
    font-size: 0.84rem;
    font-weight: 700;
    z-index: 1002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 19s linear infinite;
    padding-left: 100%;
}

/* Pause marquee animation on mouse hover */
.announcement-bar:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

.announcement-bar a {
    color: #000;
    text-decoration: underline;
    margin-left: 5px;
    font-weight: 900;
}

.announcement-bar a:hover {
    color: #ffffff;
}

/* ================= Floating Navbar & Integrated Theme Toggle ================= */
nav {
    position: fixed;
    top: 50px; /* Shifted down to accommodate the announcement bar */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background: #14141c !important; /* Solid background to block scrolling text */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    max-width: 98vw;
}

nav a,
.drop-btn {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

nav a:hover,
nav a.active,
.drop-btn:hover {
    color: var(--primary-glow);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdown Content Box */
.dropdown-content {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #14141c;
    min-width: 210px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 10px 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Desktop Hover */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile & Tablet Dropdown Open State (Using .open class) */
.dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown.open .drop-btn {
    color: var(--primary-glow);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.dropdown-content a {
    color: var(--text-main);
    padding: 10px 16px;
    display: block;
    text-align: left;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: rgba(0, 240, 255, 0.15);
    color: var(--primary-glow);
    text-shadow: none;
}

/* Navbar Logo (Icon Mark) */
.nav-logo-link {
    display: flex;
    align-items: center;
    padding-right: 12px;
    margin-right: 3px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-logo {
    height: 32px;
    width: auto;
    display: block;
}

/* Navbar Integrated Theme Toggle Button */
.nav-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 12px;
    margin-left: 5px;
}

.theme-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-btn:hover {
    transform: scale(1.15) rotate(15deg);
}

/* ================= Hero Section ================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 175px 20px 50px 20px; /* Adjusted according to announcement bar and navbar height */
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--text-main), var(--primary-glow));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    max-width: 380px;
    width: 80%;
    height: auto;
    margin: 0 auto 25px auto;
    display: block;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.2));
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn-glow {
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    background: var(--primary-glow);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    display: inline-block;
}

.btn-glow:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
}

/* ================= Multi-Page Inner Content Spacing ================= */
.inner-page-header {
    padding-top: 175px; /* Adjusted according to announcement bar and navbar height */
    padding-bottom: 50px;
}

/* ================= Advanced Bento Grid Services ================= */
.bento-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 20px 80px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 40px;
    font-weight: 700;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.bento-box {
    background: var(--surface-color);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
}

.bento-box:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.bento-box h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    z-index: 2;
}

.bento-box p {
    color: var(--text-muted);
    z-index: 2;
}

.box-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.2;
    transition: var(--transition);
}

.bento-box:hover .box-icon {
    opacity: 0.8;
    transform: scale(1.1) rotate(10deg);
}

.box-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #1a1a24 0%, #0a2e36 100%);
}

.box-wide {
    grid-column: span 2;
}

.box-accent {
    background: var(--secondary-glow);
    color: #000;
}

.box-accent p {
    color: #333;
}

/* ================= About Us - Establishment Badge ================= */
.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary-glow);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* ================= Legal / Policy Pages ================= */
.policy-content {
    max-width: 850px;
    margin: 0 auto;
}

.policy-content .last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 45px;
}

.policy-content h2 {
    color: var(--primary-glow);
    font-size: 1.4rem;
    margin: 40px 0 14px 0;
}

.policy-content h2:first-of-type {
    margin-top: 0;
}

.policy-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.policy-content ul {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 14px 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content strong {
    color: var(--text-main);
}

.policy-content a {
    color: var(--primary-glow);
    text-decoration: underline;
}

/* ================= Modern Footer ================= */
footer {
    background: #08080b;
    padding: 80px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-block h4 {
    color: var(--primary-glow);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-block p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.footer-block a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 1.05rem;
    transition: var(--transition);
}

.footer-block a:hover {
    color: var(--primary-glow);
}

.bottom-bar {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* ================= Responsive Media Queries ================= */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .box-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .announcement-bar {
        font-size: 0.76rem;
        padding: 6px 10px;
        justify-content: flex-start;
    }

    nav {
        top: 42px; /* Shifted to match mobile announcement bar height */
        width: 95%;
        padding: 6px 12px;
        gap: 10px;
        justify-content: space-between;
        overflow-x: auto;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a, .drop-btn {
        font-size: 0.78rem;
    }

    .nav-logo {
        height: 24px;
    }

    .nav-logo-link {
        padding-right: 8px;
        margin-right: 2px;
    }
    
    /* Mobile Dropdown Fixed View adjusted below navbar */
    .dropdown-content {
        position: fixed !important;
        top: 102px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px) !important;
        width: 90vw !important;
        max-width: 300px !important;
    }
    
    .dropdown.open .dropdown-content {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    .hero {
        padding-top: 155px;
    }
    .inner-page-header {
        padding-top: 145px;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .box-wide, .box-large {
        grid-column: span 1;
    }
    .bento-box {
        min-height: 200px;
    }
    .footer-content {
        flex-direction: column;
    }
}

/* ================= Floating WhatsApp Button ================= */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    left: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.7);
    color: #FFF;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 15px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ================= Scroll to Top Button ================= */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--surface-color);
    color: var(--primary-glow);
    border: 1px solid var(--primary-glow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-glow);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 80px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ================= Light Mode Variables & Overrides ================= */
body.light-mode {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --primary-glow: #0284c7;
    --secondary-glow: #fbbf24;
    --text-main: #0f172a;
    --text-muted: #475569;
}

body.light-mode nav {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.light-mode .dropdown-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .nav-theme-toggle {
    border-left: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode nav a,
body.light-mode .drop-btn,
body.light-mode .theme-btn {
    color: var(--text-main);
}

body.light-mode .hero::before {
    background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

body.light-mode .hero h1 {
    background: linear-gradient(90deg, var(--text-main), var(--primary-glow));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .btn-glow {
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3);
}

body.light-mode .bento-box {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light-mode .bento-box:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .box-large {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

body.light-mode footer {
    background: #f1f5f9;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .bottom-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .scroll-top {
    background-color: var(--surface-color);
    border-color: var(--primary-glow);
    color: var(--primary-glow);
}

/* ================= Gallery Image Styles ================= */
.gallery-img-container {
    width: 100%;
    height: 200px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.gallery-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.bento-box:hover .gallery-img-container img {
    transform: scale(1.08);
}

/* ================= Product Slider (Gallery Category Sections) ================= */
.product-slider-wrapper {
    position: relative;
}

.product-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 6px 16px 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-slider .bento-box {
    flex: 0 0 280px;
    max-width: 280px;
    scroll-snap-align: start;
}

.slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.slider-arrow:hover {
    background: var(--primary-glow);
    color: #000;
    border-color: var(--primary-glow);
}

.slider-arrow.prev {
    left: -18px;
}

.slider-arrow.next {
    right: -18px;
}

@media (max-width: 768px) {
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .slider-arrow.prev {
        left: -8px;
    }
    .slider-arrow.next {
        right: -8px;
    }
    .product-slider .bento-box {
        flex: 0 0 230px;
        max-width: 230px;
    }
}

/* ================= Professional Catalog & Filter Styles ================= */
.filter-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 40px;
    scrollbar-width: none;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: var(--surface-color);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-glow);
    color: #000;
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.category-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: var(--text-main);
    border-left: 4px solid var(--primary-glow);
    padding-left: 12px;
}

.product-specs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 6px 0;
}