/* ============================================================
   ProCool USA — Main Stylesheet
   assets/css/style.css
   ============================================================

   ORIGINAL PALETTE (v1) — kept here for reference / rollback
   Uncomment the :root block below and comment out v2 to revert.

  :root {
    --ice-deep:    #020c1b;
    --ice-dark:    #051a33;
    --ice-mid:     #0a3560;
    --ice-blue:    #1565c0;
    --ice-bright:  #1e88e5;
    --ice-light:   #42a5f5;
    --ice-glow:    #90caf9;
    --ice-crystal: #e3f2fd;
    --frost-white: #f0f8ff;
    --accent-cyan: #00e5ff;
    --text-main:   #e8f4fd;
    --text-dim:    #90aec9;
    --border-ice:  rgba(100, 181, 246, 0.25);
  }

   ============================================================
   BRIGHTER PALETTE (v2) — active
   Backgrounds lifted ~15-20%, accents more vivid/lighter.
   The key change is --ice-glow which drives perceived brightness
   across the whole site — text highlights, icons, subtle glows.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Exo+2:wght@300;400;600&display=swap');

/* ============================================================
   DAY MODE (default) — brighter navy palette
   ============================================================ */
:root,
[data-theme="day"] {
  --ice-deep:    #112f55;
  --ice-dark:    #102f52;
  --ice-mid:     #0d4070;
  --ice-blue:    #1976d2;
  --ice-bright:  #2196f3;
  --ice-light:   #64b5f6;
  --ice-glow:    #bbdefb;
  --ice-crystal: #e3f2fd;
  --frost-white: #f0f8ff;
  --accent-cyan: #00e5ff;
  --text-main:   #e8f4fd;
  --text-dim:    #90aec9;
  --border-ice:  rgba(100, 181, 246, 0.25);
  --nav-grad-a:  rgba(17, 47, 85, 0.92);
  --nav-grad-b:  rgba(13, 45, 79, 0.92);
  --nav-grad-scrolled-a: rgba(17, 47, 85, 0.98);
  --nav-grad-scrolled-b: rgba(13, 45, 79, 0.98);
  --footer-grad-a: #0d2d4f;
  --footer-grad-b: #112f55;
}

/* ============================================================
   NIGHT MODE — deep near-black palette
   ============================================================ */
[data-theme="night"] {
  --ice-deep:    #020c1b;
  --ice-dark:    #051a33;
  --ice-mid:     #0a3560;
  --ice-blue:    #1565c0;
  --ice-bright:  #1e88e5;
  --ice-light:   #42a5f5;
  --ice-glow:    #90caf9;
  --ice-crystal: #e3f2fd;
  --frost-white: #f0f8ff;
  --accent-cyan: #00e5ff;
  --text-main:   #e8f4fd;
  --text-dim:    #90aec9;
  --border-ice:  rgba(100, 181, 246, 0.25);
  --nav-grad-a:  rgba(4, 20, 40, 0.92);
  --nav-grad-b:  rgba(2, 12, 27, 0.92);
  --nav-grad-scrolled-a: rgba(4, 20, 40, 0.98);
  --nav-grad-scrolled-b: rgba(2, 12, 27, 0.98);
  --footer-grad-a: #020c1b;
  --footer-grad-b: #051a33;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--ice-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

#mainNav {
  /* Gradient matches the page background tones so navbar feels integrated */
  background: linear-gradient(135deg, var(--nav-grad-a), var(--nav-grad-b));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-ice);
  transition: all 0.3s ease;
  padding: 8px 0;
}
#mainNav.scrolled {
  background: linear-gradient(135deg, var(--nav-grad-scrolled-a), var(--nav-grad-scrolled-b));
  box-shadow: 0 4px 30px rgba(0, 100, 255, 0.15);
}

.navbar-brand img {
  filter: drop-shadow(0 0 8px rgba(100, 181, 246, 0.5));
}

.nav-link {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim) !important;
  transition: color 0.2s;
  padding: 6px 14px !important;
}
.nav-link:hover { color: var(--ice-glow) !important; }

.btn-ice {
  border: 1px solid var(--ice-light) !important;
  border-radius: 4px !important;
  color: var(--ice-light) !important;
  background: rgba(30, 136, 229, 0.1) !important;
}
.btn-ice:hover {
  background: rgba(30, 136, 229, 0.25) !important;
  color: white !important;
  box-shadow: 0 0 12px rgba(30, 136, 229, 0.4);
}

.ice-dropdown {
  background: rgba(8, 36, 64, 0.97) !important; /* matches --ice-dark */
  border: 1px solid var(--border-ice) !important;
  backdrop-filter: blur(12px);
}
.ice-dropdown .dropdown-item {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-dim) !important;
  transition: all 0.2s;
}
.ice-dropdown .dropdown-item:hover {
  background: rgba(30, 136, 229, 0.15) !important;
  color: var(--ice-glow) !important;
}
.ice-dropdown .dropdown-header { padding: 8px 16px 4px; }
.ice-dropdown .dropdown-divider { margin: 4px 0; }


/* ============================================================
   THEME TOGGLE SWITCH
   ============================================================ */
.theme-toggle {
  background: var(--ice-deep);
  border: 2px solid var(--ice-light);
  border-radius: 34px;
  padding: 4px 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 108px;
  height: 36px;
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.4s;
  outline: none;
  box-sizing: border-box;
}

/* The sliding circle */
.theme-toggle .toggle-knob {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ice-light);
  box-shadow: 0 0 10px rgba(100, 181, 246, 0.6);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  transform: translateX(0);
}

/* The label */
.theme-toggle .toggle-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
  transition: color 0.3s;
  user-select: none;
}

/* Night mode — nudge label left so it clears the knob */
body[data-theme="night"] .theme-toggle .toggle-label {
  padding-right: 50px;
}

/* Night mode — knob slides right
   travel = width(108) - padding(10) - borders(4) - knob(26) = 68px
   but clamp to 62px to keep knob fully inside */
body[data-theme="night"] .theme-toggle .toggle-knob {
  transform: translateX(68px);
}

/* ============================================================
   SNOWFLAKE CANVAS (animated background particles)
   ============================================================ */

.snow-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

section { position: relative; z-index: 1; }

.ice-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--ice-bright), var(--accent-cyan));
  border-radius: 2px;
  margin: 12px 0 24px;
}
.ice-divider.center { margin: 12px auto 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary-ice {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: 4px;
  border: none;
  background: linear-gradient(135deg, var(--ice-blue), var(--ice-bright));
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(21, 101, 192, 0.4);
  cursor: pointer;
}
.btn-primary-ice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 136, 229, 0.5);
  color: white;
  text-decoration: none;
}

.btn-outline-ice {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 32px;
  border-radius: 4px;
  border: 1px solid var(--ice-light);
  color: var(--ice-light);
  text-decoration: none;
  background: transparent;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-outline-ice:hover {
  background: rgba(30, 136, 229, 0.15);
  color: white;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(30, 136, 229, 0.3);
}

/* ============================================================
   CARDS
   ============================================================ */

.ice-card {
  background: linear-gradient(135deg, rgba(13, 64, 112, 0.5), rgba(8, 36, 64, 0.7));
  border: 1px solid var(--border-ice);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.ice-card:hover {
  border-color: rgba(100, 181, 246, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21, 101, 192, 0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  /* Gradient echoes the navbar so header and footer feel like bookends */
  background: linear-gradient(180deg, var(--footer-grad-a) 0%, var(--footer-grad-b) 100%);
  border-top: 1px solid var(--border-ice);
  padding: 48px 0 24px;
  position: relative;
  z-index: 1;
}
footer .footer-logo img {
  height: 60px;
  filter: drop-shadow(0 0 8px rgba(100, 181, 246, 0.4));
}
footer p, footer a { color: var(--text-dim); font-size: 0.9rem; }
footer a:hover { color: var(--ice-glow); text-decoration: none; }
.footer-divider { border-color: var(--border-ice); margin: 24px 0; }
.footer-bottom { font-size: 0.82rem; color: rgba(144, 174, 201, 0.6); }

/* ============================================================
   CONTACT FORM
   ============================================================ */

.form-control-ice {
  background: rgba(13, 64, 112, 0.3);
  border: 1px solid var(--border-ice);
  border-radius: 6px;
  color: var(--text-main);
  padding: 12px 16px;
  font-family: 'Exo 2', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control-ice:focus {
  outline: none;
  border-color: var(--ice-light);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
  background: rgba(13, 64, 112, 0.4);
  color: white;
}
.form-control-ice::placeholder { color: var(--text-dim); }

.form-label-ice {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: block;
}

/* ============================================================
   SPEC TABLE (product pages)
   ============================================================ */

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border-ice); }
.spec-table td { padding: 12px 8px; font-size: 0.95rem; }
.spec-table td:first-child {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  width: 45%;
}
.spec-table td:last-child { color: var(--text-main); }

/* ============================================================
   FEATURE BADGES
   ============================================================ */

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 136, 229, 0.12);
  border: 1px solid rgba(30, 136, 229, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ice-glow);
}

/* ============================================================
   SECTION TYPOGRAPHY
   ============================================================ */

.section-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.section-title { font-size: 2.8rem; color: var(--frost-white); }

/* ============================================================
   PRODUCT PAGE — SHARED STYLES
   Used on all five product detail pages
   ============================================================ */

.product-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background: radial-gradient(ellipse at 70% 50%, rgba(21, 101, 192, 0.2) 0%, transparent 60%),
              linear-gradient(180deg, var(--ice-deep) 0%, #061828 100%);
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 80px,
      rgba(30, 136, 229, 0.03) 80px, rgba(30, 136, 229, 0.03) 81px),
    repeating-linear-gradient(0deg, transparent, transparent 80px,
      rgba(30, 136, 229, 0.03) 80px, rgba(30, 136, 229, 0.03) 81px);
  pointer-events: none; /* ← btn fix */
}

.product-main-img {
  width: 100%;
  filter: drop-shadow(0 0 50px rgba(30, 136, 229, 0.4))
          drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7));
  animation: float 4s ease-in-out infinite;
}

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

/* Gallery thumbnails on product pages */
.gallery-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-ice);
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--ice-light);
  box-shadow: 0 0 20px rgba(30, 136, 229, 0.3);
}
.gallery-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 0.2s;
}
.gallery-thumb:hover img,
.gallery-thumb.active img { filter: brightness(1); }

/* Breadcrumb styling */
.breadcrumb-item a { color: var(--text-dim); text-decoration: none; }
.breadcrumb-item.active { color: var(--ice-light); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-dim); }

/* Model badge (e.g. "Dual Bowl Series") */
.model-badge {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

/* Large feature icons on product pages */
.feature-icon-lg {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.2), rgba(0, 229, 255, 0.1));
  border: 1px solid rgba(30, 136, 229, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--ice-light);
  margin-bottom: 16px;
}

/* "Coming soon" placeholder on pages without images yet */
.coming-soon-placeholder {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 64, 112, 0.3), rgba(4, 20, 40, 0.6));
  border: 1px dashed var(--border-ice);
  border-radius: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
  .product-main-img { max-height: 300px; object-fit: contain; }
}
@media (max-width: 768px) {
  .section-title { font-size: 2rem !important; }
}
