/* ========== GLOBAL STYLES ========== */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0e0e0e;
    color: #fff;
}

a {
    color: #00aaff;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}



/* ========== HEADER ========== */
header {
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    height: 45px;
}

header .logo img {
    height: 55px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00aaff;
}

/* Hero Section */
.hero {
    text-align: center;
    min-height: 65vh;           /* full viewport height */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url('../images/hero-bg.jpg') center/cover no-repeat; /* full image */
    position: relative;
    color: #fff;                 /* text color */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px #000; /* optional for readability */
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px #000; /* optional for readability */
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    background: #e8491d;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
}

.btn-secondary {
    background: #444;
}

.btn:hover {
    opacity: 0.9;
}


/* ========== FEATURES SECTION ========== */
.features {
    background: #111;
    padding: 60px 20px;
    text-align: center;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.features h3 {
    color: #00aaff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.features p {
    color: #bbb;
}
/* ========== REVIEWS SECTION ========== */
.reviews {
    background: #181818;
    text-align: center;
    padding: 70px 20px;
}

.reviews h3 {
    font-size: 1.8rem;
    color: #00aaff;
    margin-bottom: 40px;
}

.quote-container {
    position: relative;
    width: 100%;
    max-width: 1100px;       /* make container wider */
    min-height: 180px;      /* increase vertical space for long quotes */
    margin: 0 auto;
    overflow: hidden;
}

.quote-container {
    position: relative;
    width: 100%;
    max-width: 1100px;       /* container width */
    min-height: 160px;       /* vertical space */
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;         /* extra space on left & right */
    box-sizing: border-box;  /* include padding in width */
}

.quote {
    position: absolute;
    width: calc(100% - 40px); /* account for container padding */
    top: 10%;                 /* raise slightly */
    left: 0;
    transform: translateY(0) translateX(-100%); /* initial offscreen left */
    text-align: center;
    font-size: 1.3rem;
    color: #ccc;
    line-height: 1.5;
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    word-wrap: break-word;
    padding: 0 10px;           /* extra breathing room inside quote */
    box-sizing: border-box;     /* padding included in width */
}


/* ========== CONTACT SECTION ========== */
.contact {
    background: #111;
    text-align: center;
    padding: 60px 20px;
}

/* ========== FOOTER ========== */
footer {
    background: #0a0a0a;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
}



/* ========== SHOP PAGE (Prebuilt Consoles, Accessories) ========== */
.products {
    padding: 60px 0;
    text-align: center;
}

.products h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Accessories Page Header */
.accessories-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 60px 0;
    text-align: center;
    margin: 60px 0;
}

.accessories-info .container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.accessories-info h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #fff;
}

.accessories-info p {
    font-size: 18px;
    color: #ccc;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}



/* Product grid layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 45px;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Product cards */
.product-card {
    background: #1e1e1e;
    color: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
    max-width: 300px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Product image consistency */
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
    background: #2a2a2a;
    padding: 6px;
    transition: transform 0.2s ease;
}

.product-card img:hover {
    transform: scale(1.05);
}

/* Text and button styling */
.product-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
}

.product-card .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.product-card .btn:hover {
    background: #339dff;
}

.btn-purchase {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.btn-purchase:hover {
    background: #0056b3;
}

/* Center product grid perfectly on all screens */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 45px;
    justify-items: center; /* centers cards horizontally in each column */
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 16px; /* slightly reduced side padding for mobile balance */
    box-sizing: border-box; /* ensures padding doesn't shift the grid */
}

/* Mobile tweak for perfect centering */
@media (max-width: 768px) {
  .product-grid {
    justify-content: center; /* centers the entire grid on small screens */
    padding: 20px 12px;
    margin: 0 auto;
  }

  .product-card {
    margin: 0 auto; /* ensures each card stays centered */
  }
}


.product-card button:hover {
  background-color: #ff5c33;
}



/* ========== SEND-IN PAGE ========== */
.sendin-container {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
    background: #111;
}

.sendin-container h2 {
    color: #00aaff;
    margin-bottom: 15px;
}

.sendin-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.sendin-option {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    text-align: left;
}

.sendin-option h4 {
    color: #00aaff;
    margin-bottom: 10px;
}

/* Image gallery (Send-in page) */
.image-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.image-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.1);
}


/* Modal full-screen preview */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal img {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.modal.active {
    display: block;
}

/* Dropdown menus */
.dropdown {
    background: #1e1e1e;
    border-radius: 8px;
    margin: 15px 0;
    padding: 15px;
}

.dropdown h4 {
    cursor: pointer;
    color: #00aaff;
}

.dropdown-content {
    display: none;
    margin-top: 10px;
    color: #ccc;
}

.dropdown.active .dropdown-content {
    display: block;
}
/* ========== ABOUT US PAGE / GALLERY ========== */
.about-gallery {
    padding: 60px 20px;
    background: #111;
    color: #fff;
    text-align: center;
}

.about-gallery h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #00aaff;
}

/* Gallery grid: 4 images per row */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

/* Thumbnail images */
.gallery-thumb {
    width: 240px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Hover effect */
.gallery-thumb:hover {
    transform: scale(1.05);
}

/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* Show modal */
.modal.active {
    display: flex;
}

/* Enlarged image in modal */
.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* FAQ Answer Slide Animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 16px;
    color: #ccc;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* large enough to fit most content */
    padding: 20px;
}
<script>
const faqItems = document.querySelectorAll('.faq-item');

faqItems.forEach(item => {
    const question = item.querySelector('.faq-question');
    const answer = item.querySelector('.faq-answer');

    question.addEventListener('click', () => {
        // If item is already active, collapse it
        if (item.classList.contains('active')) {
            item.classList.remove('active');
        } else {
            // Optionally close other items when opening a new one
            faqItems.forEach(i => i.classList.remove('active'));
            item.classList.add('active');
        }
    });
});
</script>

/* FAQ Section */
.faq-item {
    background: #1e1e1e;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    color: #00aaff;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

/* FAQ Answer Slide Animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 16px;
    color: #ccc;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* enough for most answers */
    padding: 20px;
}

/* FAQ Tabs */
.faq-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 20px;
}

.faq-tab {
    padding: 10px 20px;
    background: #1e1e1e;
    color: #ccc;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-tab.active {
    background: #00aaff;
    color: #fff;
}

/* FAQ Section */
.faq-item {
    background: #1e1e1e;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    color: #00aaff;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

/* FAQ Answer Slide Animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 16px;
    color: #ccc;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* enough for most answers */
    padding: 20px;
}

/* Hide non-active groups */
.faq-group {
    display: none;
}

.faq-group.active {
    display: block;
}

<script>
const faqItems = document.querySelectorAll('.faq-item');
faqItems.forEach(item => {
    const question = item.querySelector('.faq-question');
    question.addEventListener('click', () => {
        // Collapse other items in the same group
        const group = item.parentElement;
        group.querySelectorAll('.faq-item').forEach(i => {
            if(i !== item) i.classList.remove('active');
        });
        item.classList.toggle('active');
    });
});

// Tabs switching
const tabs = document.querySelectorAll('.faq-tab');
const groups = document.querySelectorAll('.faq-group');

tabs.forEach(tab => {
    tab.addEventListener('click', () => {
        // Update active tab
        tabs.forEach(t => t.classList.remove('active'));
        tab.classList.add('active');

        // Show selected group
        const groupId = tab.dataset.group;
        groups.forEach(g => {
            g.id === groupId ? g.classList.add('active') : g.classList.remove('active');
        });
    });
});
</script>

/* Contact Modal Overlay */
#contactModal {
    display: none;          /* hidden by default */
    position: fixed;
    z-index: 9999;          /* above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show the modal */
#contactModal.active {
    display: flex;
    opacity: 1;
}

/* Modal box */
#contactModal .modal-content {
    background: #1a1a1a;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    position: relative;

    /* Animation */
    transform: scale(0.8);
    transition: transform 0.3s ease;
}



/* Scale up when modal is active */
#contactModal.active .modal-content {
    transform: scale(1);
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}

.service-card {
  flex: 1 1 300px;
  max-width: 450px;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease;
  padding: 20px 25px;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 350px;        /* larger height for bigger images */
  object-fit: contain;  /* keeps entire image visible */
  border-radius: 8px;
  margin-bottom: 15px;
  background: #2a2a2a;  /* optional background for empty space */
  padding: 6px;
}

.service-card h3 {
  color: #00aaff;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.service-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 15px auto;
  text-align: left;
}
/* Accessories page only */
.accessories-page .btn.out-of-stock {
    background: #7a7a7a;  /* gray background */
    color: #ccc;           /* light gray text */
    cursor: not-allowed;   /* disable pointer */
    pointer-events: none;  /* prevent clicks */
}

.accessories-page .btn.out-of-stock:hover {
    background: #7a7a7a;  /* keep gray on hover */
}
/* ================= LIGHT MODE - THEMED WITH DIFFERENT BLOCK COLORS ================= */
body.light-mode {
    background: #fdfdfd;
    color: #121212;
}

/* Header & Footer */
body.light-mode header,
body.light-mode footer {
    background: #cce0f5;  /* slightly darker light blue */
    color: #121212;
}

/* ================= NAV LINKS ================= */

/* Default (dark mode) */
header nav ul li a {
    color: #fff;           /* normal text color in dark mode */
    font-weight: 500;
    transition: color 0.3s ease; /* smooth hover */
    text-decoration: none;
}

header nav ul li a:hover {
    color: #00bfff;        /* fade to blue on hover */
}

/* Light mode overrides */
body.light-mode header nav ul li a {
    color: #121212;        /* normal text color in light mode */
}

body.light-mode header nav ul li a:hover {
    color: #00bfff;        /* fade to blue on hover */
}


/* Buttons / Tabs */
body.light-mode .btn:not(.out-of-stock),
body.light-mode .btn-purchase,
body.light-mode .tab-buttons button {
    background: #e6f0f8;
    color: #121212;
}
body.light-mode .btn:not(.out-of-stock):hover,
body.light-mode .btn-purchase:hover,
body.light-mode .tab-buttons button:hover {
    background: #d0e4f8; 
}
body.light-mode .tab-buttons button.active {
    background: #00bfff;
    color: #fff;
}

/* Product / Features Section */
body.light-mode .product-section,
body.light-mode .features {
    background: #fafafa;
    color: #121212;
}
body.light-mode .features p {
    color: #121212; /* ensure feature description is black */
}

/* Reviews / What Customers Say */
body.light-mode .reviews {
    background: #cce0f5; /* slightly darker light blue */
    color: #121212;
}
body.light-mode .reviews h3 {
    color: #00bfff;
}
body.light-mode .quote {
    color: #333;
}

/* Accordion / Tabs */
body.light-mode .accordion-item {
    background: #f0f0f0;
    color: #121212;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
body.light-mode .accordion-header:hover {
    background: #e0e0e0;
}
body.light-mode .accordion-content {
    background: #f8f8f8;
    color: #121212;
}

/* Tab content */
body.light-mode .tab-content {
    background: #f8f8f8;
    color: #121212;
}

/* Contact Us Section */
body.light-mode .contact {
    background: #ffffff; /* white */
    color: #121212;
}

/* Links */
body.light-mode a {
    color: #00bfff;
}

/* About Page: "View Some of Our Work" */
body.light-mode .about-gallery {
    background: #cce0f5;  /* slightly darker blue like top banner */
    color: #121212;
}
body.light-mode .about-gallery h3 {
    color: #00bfff; /* heading blue */
}

/* About Page Info Section */
body.light-mode .about-info {
    background: #fafafa;
    color: #121212;
}
body.light-mode .about-info h2,
body.light-mode .about-info p {
    color: #121212; /* ensure all text is black in light mode */
}


/* ================= UNIFIED BLUE HEADINGS ================= */

/* Applies the same blue color to key headings across all pages */
h3, /* general h3 fallback */
.features h3,
.reviews h3,
.contact h3,
.product-section h3,
.tabs .tab-content h3 {
    color: #00bfff; /* exact same hex for all headings */
}

/* Light mode override */
body.light-mode h3,
body.light-mode .features h3,
body.light-mode .reviews h3,
body.light-mode .contact h3,
body.light-mode .product-section h3,
body.light-mode .tabs .tab-content h3 {
    color: #00bfff; /* keep same blue in light mode */
}

/* Optional: make sure links inside headings (if any) also match */
h3 a,
.features h3 a,
.reviews h3 a,
.contact h3 a,
.product-section h3 a,
.tabs .tab-content h3 a {
    color: #00bfff;
}

/* define the banner blue in one place so it's easy to change */
:root {
  --banner-blue: #d4e6f2; /* tweak this to exactly match your top banner */
}

/* Default (DARK MODE) — keep your normal dark theme */
.bundle-info {
  background: #121212;
  color: #fff;
  border-radius: 10px;
  padding: 20px;
}

.product-card {
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Light Mode — use banner blue for cards and bundle-info */
body.light-mode {
  --banner-blue: #d4e6f2; /* same as your top banner color */
}

body.light-mode .bundle-info {
  background: var(--banner-blue);
  color: #121212;
}

body.light-mode .bundle-info ul li::before {
  color: #00bfff;
}

body.light-mode .product-card {
  background: var(--banner-blue);
  color: #121212;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

body.light-mode .product-card p,
body.light-mode .product-card h4 {
  color: #121212;
}

body.light-mode .product-card .price {
  color: #003a63;
}

body.light-mode .product-card .btn {
  background: #007bff;
  color: #fff;
}

/* ========== Downloads Page Light Mode ========== */

/* Light mode for the whole page (excluding header/footer) */
body.light-mode .downloads-section {
    background-color: #ffffff;  /* white background for main area */
    color: #121212;             /* dark text for readability */
}

/* Download blocks in light mode */
body.light-mode .downloads-section .download-item {
    background-color: var(--banner-blue, #d4e6f2); /* light blue blocks */
    color: #121212;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* softer shadow */
}

/* Ensure headings inside blocks are dark */
body.light-mode .downloads-section .download-item h3 {
    color: #121212;
}

/* Paragraph text inside blocks */
body.light-mode .downloads-section .download-item p {
    color: #333; /* darker gray for contrast */
}

/* Download buttons — can stay blue, with hover effect */
body.light-mode .downloads-section .download-btn {
    background: #007bff;
    color: #fff;
}

body.light-mode .downloads-section .download-btn:hover {
    background: #339dff;
}

/* ========== FAQ Page Light Mode Background Only ========== */

/* FAQ section background */
body.light-mode .faq {
    background-color: #ffffff; /* white main page area */
}

/* FAQ item blocks background only */
body.light-mode .faq-item {
    background-color: #d4e6f2; /* light blue, same as header/footer */
}

/* FAQ answer text in light mode */
body.light-mode .faq-answer {
    color: #000000; /* black text for readability */
}

/* Add extra space at bottom of FAQ section */
.faq {
    padding-bottom: 80px; /* adjust this value as needed */
}

/* === Match inner product area to light/dark mode === */

/* Light mode */
body.light-mode .product-card {
  background-color: var(--banner-blue); /* same as top banner */
  border: none;
  box-shadow: none;
}

/* Dark mode */
body.dark-mode .product-card {
  background-color: #121212; /* or match your site’s dark background */
  border: none;
  box-shadow: none;
}

.product-card img {
    background: inherit;  /* inherits the product-card background */
}

/* ===== HEADER FLEX LAYOUT ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
  z-index: 1000;
}

/* Desktop nav */
header nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #00bfff;
  cursor: pointer;
}

/* Align theme toggle & hamburger */
#theme-toggle {
  order: 1; /* left side */
}
.menu-toggle {
  order: 2; /* right side */
}

/* ===== MOBILE SLIDING NAV ===== */

/* Desktop nav - visible on large screens */
#desktop-nav {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #00bfff;
}

/* Hide desktop nav and show hamburger on mobile */
@media (max-width: 768px) {
  #desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* Mobile sliding menu */
#mobile-menu {
  position: relative;       /* Pushes content down instead of overlapping */
  top: 0;
  width: 100%;
  background-color: #111;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  z-index: 999;
}

/* Menu visible when toggled */
#mobile-menu.show {
  max-height: 500px;  /* adjust for number of links */
  opacity: 1;
}

/* Mobile menu items */
#mobile-menu ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

#mobile-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

#mobile-menu ul li a:hover {
  color: #00bfff;
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 60px; /* add extra space below buttons */
    min-height: auto;      /* optional: let it expand naturally */
  }
}

/* Light mode overrides for prebuilt & accessories product buttons */

/* "Contact to purchase" button (blue) */
body.light-mode .btn-purchase {
    background: #007bff;  /* blue */
    color: #fff;
}

body.light-mode .btn-purchase:hover {
    background: #0056b3;  /* darker blue on hover */
}

/* "Out of stock" button (grey) */
body.light-mode .btn.out-of-stock {
    background: #7a7a7a;  /* grey */
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

body.light-mode .btn.out-of-stock:hover {
    background: #7a7a7a;  /* keep grey on hover */
}

/* Accessories page Out of Stock button - same grey in light mode */
body.light-mode .accessories-page .btn.out-of-stock {
    background: #7a7a7a;  /* same grey as dark mode */
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

body.light-mode .accessories-page .btn.out-of-stock:hover {
    background: #7a7a7a;  /* keep grey on hover */
}

/* ================= BUTTON COLORS - UNIFIED ================= */

/* Contact to Purchase - blue button */
body .btn-purchase,
body .product-card .btn {
    background: #007bff;  /* same blue for all pages */
    color: #fff;
    font-weight: bold;     /* ensure text is bold */
}

body .btn-purchase:hover,
body .product-card .btn:hover {
    background: #0056b3;  /* hover effect */
}

/* Out of Stock - grey/silver button (same in light and dark) */
body .btn.out-of-stock,
body .accessories-page .btn.out-of-stock,
body.light-mode .btn.out-of-stock,
body.light-mode .product-card .btn.out-of-stock,
body.light-mode .accessories-page .btn.out-of-stock {
    background: #7a7a7a !important;  /* grey/silver - force override */
    color: #ccc !important;
    cursor: not-allowed;
    pointer-events: none;  /* disable clicks */
    font-weight: bold;      /* make text bold too */
}

body .btn.out-of-stock:hover,
body .accessories-page .btn.out-of-stock:hover,
body.light-mode .btn.out-of-stock:hover,
body.light-mode .product-card .btn.out-of-stock:hover {
    background: #7a7a7a !important;  /* keep grey on hover */
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  background-color: #1a1a1a;
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  max-height: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, max-height 0.4s ease;
}

#mobile-menu ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; /* consistent spacing between links */
}

#mobile-menu li {
  margin: 0;
}

#mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

#mobile-menu a:hover {
  color: #00bfff;
}

/* When menu is shown */
#mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
  max-height: 500px; /* ensure it fits all items */
}


/* Light mode adjustments */
body.light-mode #mobile-menu {
  background-color: #f4f4f4;
}

body.light-mode #mobile-menu a {
  color: #000;
}

body.light-mode #mobile-menu a:hover {
  color: #00bfff;
}


/* Only show hamburger on mobile */
@media (max-width: 768px) {
    #desktop-nav { display: none; }
    #menu-toggle { display: block; }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px; /* more top/bottom space */
  }
  #mobile-menu ul {
    padding-top: 10px;
  }
}

/* Add spacing between stacked buttons */
.product-card .btn + .btn {
    margin-top: 12px; /* adjust to your preferred spacing */
}

.hidden-info {
  display: none;      /* hidden by default */
  color: #ccc;        /* lighter text */
  margin: 10px 0;     /* spacing */
  font-size: 0.95em;  /* slightly smaller */
}

.hidden-info.show {
  display: block;     /* show when active */
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Modal Base === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal.active { display: flex; }

.modal-content {
  background: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  display: flex;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* === Two Column Layout === */
.modal-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-left img {
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.modal-right h3 { margin-bottom: 10px; }
.modal-right .price { color: #00ff66; margin-bottom: 15px; }

/* === Accordion / Collapsible Panels === */
.collapsible {
  background: #121212;
  color: #fff;
  cursor: pointer;
  padding: 12px 16px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 0.95rem;
  margin-bottom: 5px;
  border-radius: 5px;
  transition: background 0.3s;
}

.collapsible:hover { background: #222; }

.collapsible.active { background: #333; }

/* DETAILS MODAL */
.modal-content {
  background: #1a1a1a;
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  width: 95%;
  max-width: 1100px;
  display: flex;
  gap: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  position: relative;

  /* ADD THESE LINES */
  max-height: 90vh;       /* Modal can take up to 90% of viewport height */
  overflow-y: auto;       /* Enable vertical scroll if content is too tall */
}

/* Optional: give panels some breathing room */
.content-panel {
  padding: 12px 16px;
  background: #1a1a1a;
  border-left: 3px solid #00bfff;
  border-radius: 0 0 5px 5px;
  margin-bottom: 12px;
  display: none;          /* hidden by default */
}


.content-panel p { margin: 0; color: #ccc; font-size: 0.9rem; }


/* === Contact Modal Specific === */
#contactModal .modal-content {
    display: block;           /* Remove flex layout */
    max-width: 500px;         /* Limit width */
    text-align: center;       /* Center text */
    padding: 30px 20px;       /* Padding inside modal */
}

#contactModal .modal-content ul {
    list-style: none;         /* Remove bullets */
    padding: 0;
    margin: 10px 0 0 0;
}

#contactModal .modal-content ul li {
    margin: 8px 0;            /* Spacing between items */
}

#contactModal .modal-content a {
    color: #00bfff;           /* Make links stand out */
    text-decoration: none;
    font-weight: bold;
}

#contactModal .modal-content a:hover {
    text-decoration: underline;
}

/* ✅ Prevent content cutoff inside modals */
.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}
.panel {
  display: none;
  padding: 10px 15px;
  background: #181818;
  border-top: 1px solid #333;
  color: #ddd;
}

/* ✅ Fix cutoff inside product details modal */
.modal-content {
  max-height: 95vh;          /* give more space overall */
  overflow-y: auto;           /* scroll if still too tall */
  padding: 30px 25px;         /* add inner padding */
  box-sizing: border-box;
}

/* ✅ Ensure accordion panels (dropdown content) have enough visible space */
.panel {
  display: none;
  padding: 15px 20px;
  background: #181818;
  border-top: 1px solid #333;
  color: #ddd;
  line-height: 1.6;
  max-height: 300px;          /* allow tall text */
  overflow-y: auto;           /* scroll if text is long */
  border-radius: 6px;
  margin-top: 5px;
}

/* Optional: make the text inside dropdowns more readable */
.panel p {
  margin-bottom: 10px;
  color: #ccc;
  font-size: 15px;
}

/* ======== REVIEWS SECTION ANIMATION ======== */
.reviews {
  background-color: #0e0e0e;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.reviews h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.quote-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  height: 80px;
  overflow: hidden;
}

.quote {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  font-size: 1.1rem;
  line-height: 1.5;
}

.quote.active {
  opacity: 1;
  transform: translateX(0);
}

.quote.exit {
  opacity: 0;
  transform: translateX(100%);
}

.collapsible {
  background: #121212;
  color: #fff;
  cursor: pointer;
  padding: 16px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 1rem;
  margin-bottom: 5px;
  border-radius: 5px;
}

.collapsible.active::after {
    transform: rotate(180deg);
}

.content-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.content-panel.open {
    /* max-height will be set dynamically via JS */
}

/* Fix dropdown expansion for prebuilt product info */
.product-card {
    overflow: visible; /* ensure dropdown can expand */
}

.more-details-btn span.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.more-details-btn.active span.arrow {
    transform: rotate(180deg);
}

.product-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.product-info.active {
    max-height: 1000px; /* large enough for content */
}

.content-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.content-panel.open {
  max-height: 500px; /* enough for most content */
}

/* === FINAL FIX for cut-off dropdown descriptions === */
.modal {
  align-items: flex-start !important;
}

.modal-content {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

.details-right {
  max-height: none !important;
  overflow: visible !important;
}

.collapsible-content {
  max-height: none !important;
  overflow: visible !important;
}

.content-panel {
  max-height: none !important;
  overflow: visible !important;
}

/* ===== Logo Theme Switch (final bulletproof version) ===== */

/* Make sure the logo container always displays */
.logo {
    display: inline-block;
    width: 220px;
    height: 80px;
    position: relative;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("../images/logo-light.png"); /* ← updated path */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
    transition: background-image 0.3s ease-in-out;
}


/* Hide the old <img> */
.logo img {
    display: none !important;
}

/* Dark mode swap */
body.dark-mode .logo a {
    background-image: url("../images/logo-dark.png"); /* ← updated path */
}


/* Optional smooth fade when toggling */
.logo a {
    transition: background-image 0.3s ease-in-out;
}

.logo-img {
  width: 150px;
  height: auto;
}

/* By default, show light logo and hide dark logo */
.logo-dark {
  display: none;
}

/* When dark mode is active, show dark logo and hide light logo */
body.dark-mode .logo-light {
  display: none;
}

body.dark-mode .logo-dark {
  display: block;
}

/* Make system menu scrollable */
.system-menu {
    max-height: 432px; /* Shows exactly 9 items (Display through Screen Saver) */
    overflow: hidden;
    position: relative;
}

.system-menu.can-scroll-down::after {
    content: '▼';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: rgba(0,0,0,0.5);
    pointer-events: none;
}

.system-menu.can-scroll-up::before {
    content: '▲';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 10;
}