/* ==========================================
   1. GLOBAL STYLES & CORE VARIABLES
   ========================================== */
   .legal-btn, .theme-toggle-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--container-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 30px;
    color: var(--text-color) !important; /* Forces the custom dark text color in light mode */
    text-decoration: none !important;    /* Kills the default browser underline */
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px 2px;
}

.legal-btn:hover, .theme-toggle-btn:hover {
    color: #4cc9f0 !important;
    border-color: #4cc9f0 !important;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.2);
}

/* Default Colors (Dark Mode: Dark Blue to Black, Top to Bottom) */
:root {
    --bg-color: #0f172a;
    --bg-gradient: linear-gradient(to bottom, #0f172a 0%, #000000 100%);
    --text-color: #ffffff;
    --text-muted: #a5a5a5;
    --border-color: rgba(76, 201, 240, 0.15);
    --container-bg: #1c2541; /* Matches your product cards */
}

/* Inverted Colors (Light Mode: Pure White to Electric Blue, Top to Bottom) */
/* 2. Define your Inverted Colors (Light Mode) */
html.light-mode {
    --bg-color: #ffffff;
    --bg-gradient: linear-gradient(to bottom, #ffffff 0%, #ffffff 65%, #bae6fd 100%); 
    --text-color: #0f172a;
    --text-muted: #1e293b;                /* Hardened color for all descriptions and subtitles */
    --border-color: rgba(15, 23, 42, 0.15); /* Subtly darkens borders so borders stay defined */
    --container-bg: rgba(255, 255, 255, 0.95);
}
/* Force high contrast text on descriptions when light mode is active */
html.light-mode p,
html.light-mode .subtitle,
html.light-mode .row-info p,
html.light-mode li {
    color: #1e293b !important;
}

/* Fix for secondary outline buttons / variant tabs (e.g., Request More Colors, Color 8) */
html.light-mode .legal-btn, 
html.light-mode .theme-toggle-btn,
html.light-mode [class*="btn-secondary"], /* Dynamically targets secondary button names */
html.light-mode .variant-tab {             /* Adjust this selector to match your color tabs class */
    color: #0f172a !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-color: #0f172a !important;
}

/* Ensure secondary action button text pops when hovering in light mode */
html.light-mode .legal-btn:hover,
html.light-mode .theme-toggle-btn:hover {
    color: #0284c7 !important;
    border-color: #0284c7 !important;
}
body {
    background: var(--bg-gradient) !important;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 60px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, .contact-value {
    color: var(--text-color) !important;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    overflow-wrap: break-word;
    text-align: center;
}

h1 {
    font-size: 7.5rem;
    color: #4cc9f0 !important; /* Forces the neon water blue on main headers */
    margin-top: 20px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

p, li, .subtitle {
    color: var(--text-muted) !important;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ==========================================
   2. BUTTONS & UI ELEMENTS
   ========================================== */
.cta-button {
    display: inline-block;
    background-color: #4cc9f0;
    color: #0b132b;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.4);
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    margin-top: 15px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.theme-toggle-btn:hover {
    color: var(--text-color);
    border-color: #4cc9f0;
}

/* ==========================================
   3. LAYOUT & CONTAINERS
   ========================================== */
.header {
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 20px; /* Your safety cutoff fix */
}

.logo, .logo-image, .icon-container {
    max-width: 150px;
    height: auto;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cover-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 60px;
    max-width: 1100px; 
    margin: 60px auto 0 auto;
}

.cover-card img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 0 auto; 
}

.explore-container {
    margin: 140px 0;
    text-align: center;
}

.list-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.list-row {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 25px; 
    padding: 40px 30px; 
    background-color: var(--container-bg) !important; 
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* 1. Dark Mode Hover (Default) */
body:not(.light-mode) .list-row:hover {
    background-color: #222d50 !important;
    box-shadow: 0 12px 30px rgba(76, 201, 240, 0.2);
    transform: translateY(-5px);
}

/* 2. Light Mode Hover */
html.light-mode .list-row:hover {
    background-color: #f1f5f9 !important; /* A clean, soft off-white hover background */
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1) !important;
    transform: translateY(-5px);
}
html:not(.light-mode) .list-row:hover {
    background-color: #222d50 !important; /* Gentle brightened dark blue only in dark mode */
}

.list-row img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.row-info h2 {
    color: #4cc9f0 !important;
    margin: 0 0 12px 0;
    font-size: 1.6rem;
}

.contact-container, .legal-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--container-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px;
}

/* ==========================================
   4. FOOTER SECTION
   ========================================== */
.footer-container {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-container hr {
    width: 200px;
    max-width: 50%;
    margin: 0 auto 20px auto;
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.legal-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.legal-btn:hover {
    color: var(--text-color);
    border-color: #4cc9f0;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.2);
}

/* ==========================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem !important; /* Set slightly larger than 2rem so your massive desktop text still feels prominent on mobile */
        padding: 0 15px;            
        word-wrap: break-word;      
    }
    body {
        padding-top: 20px; 
    }
}

@media (min-width: 768px) {
    .cover-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 2. Define your Inverted Colors (Light Mode) */
body.light-mode {
    --bg-color: #ffffff;
    /* 3-stop gradient: Soft white top to middle, gentle blue at the base */
    --bg-gradient: linear-gradient(to bottom, #ffffff 0%, #ffffff 65%, #bae6fd 100%); 
    --text-color: #0f172a;
    --text-muted: #334155;
    --border-color: rgba(56, 189, 248, 0.4);
    --container-bg: rgba(255, 255, 255, 0.9);
}