*,
*::before,
*::after {
    box-sizing: border-box;
}
:root {
    /* Dark Theme (Default) */
    --bg-dark: #020b18;
    --glass-bg: rgba(2, 11, 24, 0.7);
    --text-primary: #ffffff;
    --text-gold: #d4af37;
    --nav-idle: #ffffff;
    --nav-active: #d4af37;
    --accent-gold: #d4af37;
    --accent-gold-soft: rgba(212, 175, 55, 0.25);
    --hex-border: #d4af37;
    --hex-text: #d4af37;
    --hex-inner-bg: rgba(2, 11, 24, 0.85);
    --footer-bg: linear-gradient(180deg, #040b14, #02060c);
    --footer-text: #cfd6e0;
    --footer-border: rgba(255, 200, 80, 0.25);
    --footer-highlight: rgba(212, 175, 55, 0.05);
    
}

[data-theme="light"] {
    /* Light Theme */
    --bg-dark: #f0f4f8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --text-primary: #002d5b; /* Logo Blue */
    --text-gold: #b8860b;
    --nav-idle: #002d5b; /* Blue in light mode */
    --nav-active: #b8860b; /* Golden when clicked */
    --accent-gold: #002d5b;
    --accent-gold-soft: #f0f4f8;
    --hex-border:#002d5b;
    --hex-text: #002d5b;
    --hex-inner-bg: #f0f4f8;
    --footer-bg: linear-gradient(180deg, #f7f9fc, #e9eef5);
    --footer-text: #002d5b;
    --footer-border: rgba(0, 45, 91, 0.2);
    --footer-highlight: rgba(0, 45, 91, 0.06);
}

.gold { color: var(--text-gold); }
/* ===============================
   Industrial Solvents Page
================================ */

.products-section {
    padding: 120px 8% 80px; /* accounts for fixed navbar */
    background: var(--bg-dark);
}

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

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    max-width: 720px;
    margin: 0 auto 50px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: center;
}

/* ===============================
   Products Grid
================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

/* Back Button */
.back-wrapper {
    max-width: 1100px;
    margin-top: 20px;
    display: flex;
    justify-content: left; /* Left side */
}

/* Make back button smaller than product buttons */
.back-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 25px;
}

/* ===============================
   Product Card
================================ */

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: left;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* golden glow on hover */
.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(212, 175, 55, 0.15),
        transparent
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ===============================
   Card Content
================================ */

.product-card h3 {
    font-size: 1.25rem;
    color: var(--text-gold);
    margin-bottom: 12px;
}

.product-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ===============================
   Button
================================ */

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
    transform: translateX(4px);
}

/* ===============================
   Light Theme Fixes
================================ */

[data-theme="light"] .section-subtitle,
[data-theme="light"] .product-card p {
    color: rgba(0, 45, 91, 0.75);
}

[data-theme="light"] .product-card {
    border-color: rgba(0, 45, 91, 0.25);
}
