/* ============================================
   SolarYoot - Custom Styles
   Modern Solar Energy Website
   ============================================ */

/* CSS Variables - Light Theme (default - matches logo: Solar=black, Yoot=gold) */
:root {
  --solar-gold: #f59e0b;
  --solar-gold-light: #fbbf24;
  --solar-gold-dark: #d97706;
  --solar-orange: #f97316;
  --solar-dark: #0f172a;
  --solar-darker: #f8fafc;
  --solar-gray: #e2e8f0;
  --solar-blue: #0ea5e9;
  --solar-green: #10b981;
  --solar-teal: #14b8a6;
  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.06);

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --logo-text: #0f172a;
  --logo-accent: var(--solar-gold);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
  --shadow-color: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --card-hover-shadow: 0 8px 30px rgba(0,0,0,0.08);
  color-scheme: light;
}


/* Base Reset & Smooth Scroll */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  word-break: break-word;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Global overflow prevention for media and tables */
img, video, iframe, table {
  max-width: 100%;
}

img, video, iframe {
  height: auto;
}

/* Selection */
::selection { background: var(--solar-gold); color: var(--text-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--solar-gold); border-radius: 4px; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1rem 0;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px var(--shadow-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.75rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--logo-text);
  letter-spacing: -0.5px;
  transition: color 0.4s ease;
}

.nav-logo span {
  color: var(--logo-accent);
  font-weight: 800;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--solar-gold);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange)) !important;
  color: var(--solar-dark) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.nav-cta::after { display: none !important; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #f0f4f8 100%);
  max-width: 100vw;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.07;
  pointer-events: none;
}

.hero-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--solar-gold);
  max-width: 100vw;
}

.hero-glow-2 {
  bottom: -200px;
  left: -100px;
  background: var(--solar-blue);
  max-width: 100vw;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--solar-gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--solar-gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--solar-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange), var(--solar-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
  color: var(--solar-dark);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--solar-gold);
  color: var(--solar-gold);
}

.hero-stats-bar {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--solar-gold);
}

.hero-stat p {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.solar-orbit {
  width: 400px;
  height: 400px;
  position: relative;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.15);
  animation: rotate 20s linear infinite;
}

.orbit-ring:nth-child(1) { inset: 0; }
.orbit-ring:nth-child(2) { inset: 40px; animation-duration: 15s; animation-direction: reverse; border-color: rgba(14, 165, 233, 0.12); }
.orbit-ring:nth-child(3) { inset: 80px; animation-duration: 25s; }

.orbit-ring::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--solar-gold);
  border-radius: 50%;
  top: 50%;
  left: -5px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.orbit-ring:nth-child(2)::before { background: var(--solar-blue); box-shadow: 0 0 15px rgba(14, 165, 233, 0.4); }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.sun-core {
  position: absolute;
  inset: 110px;
  background: radial-gradient(circle, var(--solar-gold), var(--solar-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.3), 0 0 80px rgba(245, 158, 11, 0.15);
  animation: sunPulse 4s ease-in-out infinite;
}

.sun-core svg { width: 70px; height: 70px; fill: #fff; }

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.3), 0 0 80px rgba(245, 158, 11, 0.15); }
  50% { box-shadow: 0 0 60px rgba(245, 158, 11, 0.5), 0 0 120px rgba(245, 158, 11, 0.25); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   Section Common Styles
   ============================================ */
.section { padding: 6rem 0; position: relative; overflow: hidden; }

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  color: var(--solar-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-faint);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Partners / Approved Sellers Section
   ============================================ */
.partners {
  background: linear-gradient(180deg, var(--solar-darker) 0%, rgba(15, 23, 42, 0.5) 100%);
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.partners-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s;
  min-width: 160px;
  box-shadow: var(--card-shadow);
}

.partner-logo:hover {
  background: rgba(245, 158, 11, 0.05);
  border-color: var(--solar-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.1);
}

.partner-logo span {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.partner-sungrow { color: #e74c3c; }
.partner-goodwe { color: #f39c12; }
.partner-trina { color: #e74c3c; }
.partner-jinko { color: #27ae60; }
.partner-fronius { color: #e74c3c; }
.partner-aiko { color: #f97316; }
.partner-saj { color: #e74c3c; }
.partner-solax { color: #0066cc; }

.approved-seller-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon svg { width: 50px; height: 50px; fill: #fff; }

.badge-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge-text strong {
  color: #38bdf8;
  display: block;
  font-size: 1rem;
}

/* ============================================
   Services Section
   ============================================ */
.services { background: var(--bg-primary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--solar-gold), var(--solar-orange));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.service-card:hover {
  background: var(--bg-card);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--solar-gold);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.3s;
}

.service-card:hover .service-icon svg { stroke: var(--solar-dark); }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.7;
}

/* ============================================
   About / Stats Section
   ============================================ */
.about {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

.about-bg {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(245,158,11,0.03)" stroke-width="0.5"/></svg>') repeat;
  background-size: 200px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-content .section-label { text-align: left; }
.about-content .section-title { text-align: left; }

.about-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.about-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-body);
  font-size: 0.95rem;
}

.about-features li svg {
  width: 20px;
  height: 20px;
  fill: var(--solar-gold);
  flex-shrink: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--solar-gold);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* ============================================
   Why Choose Us
   ============================================ */
.why-us { background: var(--bg-primary); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.why-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), transparent);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s;
  position: relative;
}

.why-card:hover {
  border-color: var(--solar-gold);
  transform: translateY(-4px);
}

.why-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(245, 158, 11, 0.08);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-faint);
  line-height: 1.7;
}

/* ============================================
   Solar Packages
   ============================================ */
.packages {
  background: var(--bg-secondary);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s;
  position: relative;
}

.package-card.featured {
  border-color: var(--solar-gold);
  background: rgba(245, 158, 11, 0.03);
}

.package-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
  color: var(--solar-dark);
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.package-type {
  font-size: 0.8rem;
  color: var(--solar-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.package-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.package-desc {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-body);
  font-size: 0.9rem;
}

.package-features li svg {
  width: 18px;
  height: 18px;
  fill: var(--solar-green);
  flex-shrink: 0;
}

/* ============================================
   Process / How It Works
   ============================================ */
.process { background: var(--bg-primary); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
  color: var(--solar-dark);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--solar-gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--text-body);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--solar-dark);
  font-weight: 800;
  font-size: 1rem;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.author-location {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================================
   Enquiry / Contact Form
   ============================================ */
.enquiry {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.enquiry-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--solar-gold);
  filter: blur(150px);
  opacity: 0.05;
  max-width: 100vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.enquiry-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  box-sizing: border-box;
  max-width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--solar-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: var(--bg-primary); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
  color: var(--solar-dark);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

/* Contact Info */
.contact-info { padding-top: 1rem; }

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-info > p {
  color: var(--text-faint);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--solar-gold);
  fill: none;
  stroke-width: 1.5;
}

.contact-detail h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-detail p,
.contact-detail a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-detail a:hover { color: var(--solar-gold); }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--text-muted);
  text-decoration: none;
}

.social-link:hover {
  background: var(--solar-gold);
  color: var(--solar-dark);
  border-color: var(--solar-gold);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
  background: var(--bg-secondary);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.active { border-color: var(--solar-gold); }

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--solar-gold); }

.faq-question svg {
  width: 20px;
  height: 20px;
  stroke: var(--solar-gold);
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin: 1rem 0;
  max-width: 300px;
}

.footer h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--solar-gold); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #475569;
  font-size: 0.85rem;
}

.footer-certifications {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cert-badge {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ============================================
   Animations (Scroll Reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Slide-in animations for mobile */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale-in animation */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Fallback: show content after 3s even if JS fails to fire IntersectionObserver */
@supports (animation: none) {
  .reveal:not(.visible) {
    animation: revealFallback 0s 3s forwards;
  }
  .reveal-left:not(.visible) {
    animation: revealLeftFallback 0s 3s forwards;
  }
  .reveal-right:not(.visible) {
    animation: revealRightFallback 0s 3s forwards;
  }
  .reveal-scale:not(.visible) {
    animation: revealScaleFallback 0s 0.5s forwards;
  }
  @keyframes revealFallback {
    to { opacity: 1; transform: none; }
  }
  @keyframes revealLeftFallback {
    to { opacity: 1; transform: none; }
  }
  @keyframes revealRightFallback {
    to { opacity: 1; transform: none; }
  }
  @keyframes revealScaleFallback {
    to { opacity: 1; transform: none; }
  }
}

/* Floating animation for badges/icons */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-anim { animation: float 3s ease-in-out infinite; }

/* Shimmer effect for CTAs */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.btn-primary {
  background-size: 200% auto;
  background-image: linear-gradient(90deg, var(--solar-gold) 0%, var(--solar-gold-light) 25%, var(--solar-orange) 50%, var(--solar-gold-light) 75%, var(--solar-gold) 100%);
}

.btn-primary:active {
  animation: shimmer 0.6s linear;
}

/* Tap feedback for touch devices */
@media (hover: none) {
  .service-card:active,
  .why-card:active,
  .package-card:active,
  .stat-card:active,
  .partner-logo:active,
  .faq-question:active {
    transform: scale(0.97);
    transition: transform 0.15s;
  }
  .service-card:hover,
  .why-card:hover,
  .package-card:hover,
  .stat-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ============================================
   Mobile Nav - Single Definitive Block
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 10001;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    /* Hidden by default - use opacity/visibility for instant toggle */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    list-style: none;
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    font-size: 1.2rem;
    display: block;
    padding: 1.1rem 0;
    width: 100%;
    color: var(--text-body);
  }

  .nav-links a:hover,
  .nav-links a:active { color: var(--solar-gold); }

  .nav-links a::after { display: none; }

  .nav-links .nav-cta {
    margin-top: 1.5rem;
    display: inline-block;
    width: auto;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
  }

  .mobile-toggle {
    display: flex;
    z-index: 10002;
    position: relative;
  }

  .navbar {
    z-index: 10000;
    transform: none !important;
  }
}

/* ============================================
   Responsive Design - Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats-bar { justify-content: center; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-content .section-label,
  .about-content .section-title { text-align: center; }
  .about-text { text-align: center; }
  .about-features { align-items: center; }
  .enquiry-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Responsive Design - Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
  body { line-height: 1.6; }

  .section { padding: 4rem 0; }
  .section-container { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
  .section-title { margin-bottom: 0.75rem; }
  .section-subtitle { font-size: 1rem; }

  /* Hero Mobile */
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-container { padding: 0 1.25rem; gap: 2rem; }
  .hero h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 1rem; }
  .hero-description { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.35rem 0.8rem; margin-bottom: 1rem; }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-stats-bar {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .hero-stat {
    text-align: center;
    flex: 1;
  }
  .hero-stat h3 { font-size: 1.5rem; }
  .hero-stat p { font-size: 0.65rem; letter-spacing: 0.5px; }

  .hero-glow { width: 300px; height: 300px; }

  /* Partners Mobile */
  .partners { padding: 3rem 0; }
  .partners-track {
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .partners-track::-webkit-scrollbar { display: none; }
  .partner-logo {
    min-width: auto;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .partner-logo span { font-size: 0.9rem; }

  .approved-seller-badge {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 0;
  }
  .badge-icon { width: 60px; height: 60px; }
  .badge-icon svg { width: 36px; height: 36px; }
  .badge-text { font-size: 0.85rem; }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-card {
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
  }
  .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  .service-icon svg { width: 26px; height: 26px; }
  .service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
  .service-card p { font-size: 0.85rem; }

  /* About Mobile */
  .about-grid { gap: 2rem; }
  .about-text { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .about-features li { font-size: 0.9rem; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stat-card { padding: 1.5rem 1rem; border-radius: 14px; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.7rem; letter-spacing: 0.5px; }

  /* Why Us Mobile */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .why-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  .why-number { font-size: 3rem; top: 0.5rem; right: 1rem; }
  .why-card h3 { font-size: 1.1rem; }
  .why-card p { font-size: 0.85rem; }

  /* Packages Mobile */
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .package-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
  .package-card.featured {
    order: -1;
  }
  .package-name { font-size: 1.3rem; }
  .package-desc { font-size: 0.85rem; }
  .package-features li { font-size: 0.85rem; }

  /* Process Mobile */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .process-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    text-align: left;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
  }
  .step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.1rem;
    margin: 0;
    grid-row: 1 / 3;
  }
  .process-step h3 { font-size: 1rem; margin-bottom: 0.25rem; align-self: end; }
  .process-step p { font-size: 0.85rem; align-self: start; }

  /* Testimonials Mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .testimonial-card { padding: 1.5rem; border-radius: 14px; }
  .testimonial-text { font-size: 0.9rem; }
  .testimonial-stars { font-size: 1rem; }
  .author-avatar { width: 36px; height: 36px; font-size: 0.75rem; }
  .author-name { font-size: 0.85rem; }
  .author-location { font-size: 0.75rem; }

  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gallery-item.featured {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-item { border-radius: 12px; }
  .gallery-item .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  }
  .gallery-overlay h4 { font-size: 0.9rem; }
  .gallery-overlay p { font-size: 0.8rem; }

  /* Enquiry Form Mobile */
  .enquiry-form { padding: 1.5rem; border-radius: 14px; }
  .form-row { grid-template-columns: 1fr; }

  .form-group label { font-size: 0.85rem; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }
  .btn-submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .contact-info { margin-top: 2rem; }
  .contact-item { gap: 0.75rem; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-icon svg { width: 18px; height: 18px; }
  .contact-detail h4 { font-size: 0.9rem; }
  .contact-detail p,
  .contact-detail a { font-size: 0.85rem; }

  /* FAQ Mobile */
  .faq-grid { gap: 0.75rem; }
  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }
  .faq-question svg { width: 18px; height: 18px; min-width: 18px; }
  .faq-answer-inner { padding: 0 1.25rem 1rem; font-size: 0.85rem; }

  /* Footer Mobile */
  .footer { padding: 3rem 0 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand p { font-size: 0.85rem; max-width: none; margin-left: auto; margin-right: auto; }
  .footer-links { align-items: center; }
  .footer-links li { font-size: 0.85rem; }
  .footer h4 { font-size: 1rem; margin-bottom: 0.75rem; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding-top: 1.5rem;
  }
  .footer-certifications {
    flex-wrap: wrap;
    justify-content: center;
  }
  .social-links { justify-content: center; }
}

/* ============================================
   Responsive Design - Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .section-container { padding: 0 1rem; }
  .section-header { margin-bottom: 2rem; }

  .hero { padding: 90px 0 50px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-description { font-size: 0.9rem; }
  .hero-stat h3 { font-size: 1.3rem; }
  .hero-stat p { font-size: 0.6rem; }

  .partners-track { gap: 0.5rem; }
  .partner-logo { padding: 0.6rem 0.9rem; border-radius: 8px; }
  .partner-logo span { font-size: 0.8rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card { padding: 1.25rem 0.75rem; }
  .stat-number { font-size: 1.75rem; }

  .service-card { padding: 1.5rem 1.25rem; }
  .package-card { padding: 1.75rem 1.25rem; }

  .nav-logo { font-size: 1.4rem; }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   Touch-friendly Spacing & Tap Targets
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  /* Ensure all tappable elements meet 44px minimum */
  .nav-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .faq-question { min-height: 48px; }
  .social-link { min-width: 44px; min-height: 44px; }
  .btn-primary, .btn-secondary, .btn-submit { min-height: 48px; }

  /* Disable hover effects that cause sticky states on mobile */
  .service-card:hover::before { transform: scaleX(0); }
  .service-card:hover .service-icon { background: rgba(245, 158, 11, 0.1); }
  .service-card:hover .service-icon svg { stroke: var(--solar-gold); }

  /* Smoother scrolling momentum */
  html { -webkit-overflow-scrolling: touch; }
}

/* ============================================
   Landscape Phone
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 80px 0 40px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: row; }
  .hero-stats-bar { margin-top: 1.5rem; padding-top: 1rem; }
  .nav-links { padding-top: 70px; gap: 0; }
  .nav-links a { padding: 0.6rem 0; font-size: 1rem; }
}

/* ============================================
   Reduced Motion (Accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .particle { display: none; }
  .orbit-ring { animation: none; }
  .sun-core { animation: none; }
  .float-anim { animation: none; }
  .hero-badge .pulse-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* Fallback: reveal content after 4s even if JS/IntersectionObserver fails */
.reveal:not(.visible) { animation: revealFallback 0s 4s forwards; }
.reveal-left:not(.visible) { animation: revealFallback 0s 4s forwards; }
.reveal-right:not(.visible) { animation: revealFallback 0s 4s forwards; }
.reveal-scale:not(.visible) { animation: revealFallback 0s 4s forwards; }
@keyframes revealFallback { to { opacity: 1; transform: none; } }

/* Form Success State */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.active { display: block; }

.form-success svg {
  width: 64px;
  height: 64px;
  stroke: var(--solar-green);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 1rem;
}

.form-success h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-faint);
}

/* ============================================
   Service Pages
   ============================================ */

/* Page Hero */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 60px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f3460 100%);
  overflow: hidden;
  max-width: 100vw;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.15), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(14, 165, 233, 0.1), transparent 40%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1920&q=80') center/cover no-repeat;
  opacity: 0.15;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-hero-content p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #94a3b8;
}

.breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--solar-gold); }
.breadcrumb span { margin: 0 0.4rem; }

/* Service Detail Layout */
.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
  max-width: 100%;
  overflow: hidden;
}

.service-main-content {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.service-main-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-main-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--solar-gold);
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-main-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.content-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--solar-gold);
}

.content-list li strong {
  color: var(--text-body);
}

/* Service Image Block */
.service-image-block {
  margin: 2rem 0;
}

.image-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 0.75rem;
}

/* Process Detailed */
.process-detailed {
  margin: 1.5rem 0;
}

.process-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s;
}

.process-item:hover {
  border-color: var(--solar-gold);
  transform: translateX(4px);
}

.process-item .process-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-item .process-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--solar-gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-item h4 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Comparison Table */
.comparison-table {
  margin: 1.5rem 0;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.comparison-table table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th {
  background: rgba(245, 158, 11, 0.15);
  color: var(--solar-gold);
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.comparison-table td strong { color: var(--text-primary); }

.comparison-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.05);
}

.table-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.product-card h4 {
  color: var(--solar-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.product-card ul {
  list-style: none;
  padding: 0;
}

.product-card li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-card li strong { color: var(--text-body); }

/* Sidebar */
.service-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.sidebar-cta h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.sidebar-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.sidebar-phone {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.sidebar-phone a { color: var(--solar-gold); text-decoration: none; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-facts {
  list-style: none;
  padding: 0;
}

.sidebar-facts li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sidebar-facts li span { color: var(--text-faint); font-size: 0.9rem; }
.sidebar-facts li strong { color: var(--solar-gold); font-size: 0.9rem; }

.sidebar-areas {
  list-style: none;
  padding: 0;
  column-count: 2;
  column-gap: 1rem;
}

.sidebar-areas li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0;
}

.trust-badges .badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Page CTA */
.page-cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.05));
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.page-cta h2 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.page-cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Project Gallery
   ============================================ */
.gallery {
  background: var(--bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  background: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10003;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

/* ============================================
   Responsive - Service Pages
   ============================================ */
@media (max-width: 1024px) {
  .service-content-grid {
    grid-template-columns: 1fr;
  }
  .service-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .sidebar-cta { grid-column: span 2; }
}

@media (max-width: 768px) {
  .page-hero { min-height: 300px; padding: 100px 1.25rem 40px; }
  .page-hero-content h1 { font-size: 1.7rem; }
  .page-hero-content p { font-size: 0.95rem; }
  .breadcrumb { font-size: 0.8rem; }
  .service-content-grid { gap: 2rem; }
  .service-main-content h2 { font-size: 1.5rem; }
  .service-main-content h3 { font-size: 1.15rem; padding-left: 0.75rem; }
  .service-main-content p,
  .lead-text { font-size: 0.95rem; }
  .content-list li { font-size: 0.9rem; padding-left: 1.5rem; }
  .product-grid { grid-template-columns: 1fr; }
  .process-item { flex-direction: column; gap: 0.75rem; }
  .comparison-table th,
  .comparison-table td { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.featured { grid-column: span 2; grid-row: span 1; }
  .service-sidebar { grid-template-columns: 1fr; }
  .sidebar-cta { grid-column: span 1; }
  .sidebar-areas { column-count: 1; }
  .page-cta h2 { font-size: 1.5rem; }
  .page-cta p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .page-hero { padding: 90px 1rem 30px; min-height: 260px; }
  .page-hero-content h1 { font-size: 1.4rem; }
  .service-detail .section-container { padding: 0 1rem; }
  .service-main-content h2 { font-size: 1.3rem; }
  .service-main-content h3 { font-size: 1.05rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: span 1; }
}

/* Service Card Link Styles */
a.service-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.service-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--solar-gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s;
}

a.service-card:hover .service-link {
  transform: translateX(6px);
}

/* Gallery Placeholder (shown when images not loaded) */
.gallery-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  z-index: 0;
}

.gallery-item img {
  position: relative;
  z-index: 1;
}

.gallery-item .gallery-overlay {
  z-index: 2;
}

/* ============================================
   Premium Solar Animations
   ============================================ */

/* 1. Sun Ray Animation - Hero Badge Pulsing Glow */
.hero-badge {
  animation: sunRayPulse 3s ease-in-out infinite;
  will-change: box-shadow;
}

@keyframes sunRayPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 0 0 0 0 rgba(245, 158, 11, 0);
  }
  50% {
    box-shadow: 0 0 15px 0 rgba(245, 158, 11, 0.15), 0 0 30px 0 rgba(245, 158, 11, 0.05);
  }
}

/* 2. Gradient Text Animation - Slow Color Shift */
.gradient-text {
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange), var(--solar-gold-light), var(--solar-gold));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 3. Counter Number Glow - Gold Glow on Animated Stats */
.stat-number {
  transition: text-shadow 0.6s ease;
}

.stat-card.visible .stat-number,
.reveal-scale.visible .stat-number {
  animation: counterGlow 2s ease-out forwards;
}

@keyframes counterGlow {
  0% { text-shadow: none; }
  30% { text-shadow: 0 0 20px rgba(245, 158, 11, 0.6), 0 0 40px rgba(245, 158, 11, 0.3); }
  100% { text-shadow: none; }
}

/* 4. Card Hover Shimmer - Service Card Top Border */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--solar-gold) 20%,
    var(--solar-gold-light) 40%,
    #fff 50%,
    var(--solar-gold-light) 60%,
    var(--solar-gold) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
  transform: scaleX(1);
  animation: borderShimmer 1.5s linear infinite;
}

@keyframes borderShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 5. Floating Solar Panel Icon - Approved Seller Badge */
.approved-seller-badge .badge-icon {
  animation: gentleFloat 4s ease-in-out infinite;
  will-change: transform;
}

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

/* 6. Hero Description - clean fade in (no typing effect - causes text clipping) */
.hero-description {
  animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 7. Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--solar-gold), var(--solar-orange), var(--solar-gold-light));
  z-index: 9999;
  transition: none;
  will-change: width;
  pointer-events: none;
}

/* 8. Partner Logos Marquee Animation */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-track.marquee-active {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 0;
  justify-content: flex-start;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
  width: max-content;
}

.partners-track.marquee-active:hover {
  animation-play-state: paused;
}

.partners-track.marquee-active .partner-logo {
  flex-shrink: 0;
  margin: 0 1.5rem;
}

/* 9. Section Entrance - Gold Left Border Line */
.section.section-in-view {
  position: relative;
}

.section.section-in-view::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--solar-gold), var(--solar-orange), transparent);
  animation: goldLineGrow 0.8s ease-out forwards;
  pointer-events: none;
  z-index: 1;
}

@keyframes goldLineGrow {
  from { height: 0; }
  to { height: 100%; }
}

/* 10. Button Ripple Effect */
.btn-primary,
.btn-secondary,
.btn-submit,
.nav-cta {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes rippleExpand {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   Reduced Motion - Disable Premium Animations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; box-shadow: none; }
  .gradient-text { animation: none; }
  .stat-card.visible .stat-number,
  .reveal-scale.visible .stat-number { animation: none; text-shadow: none; }
  .service-card:hover::before { animation: none; }
  .approved-seller-badge .badge-icon { animation: none; }
  .hero-description {
    animation: none;
    width: 100%;
    white-space: normal;
    overflow: visible;
    border-right: none;
  }
  .scroll-progress { display: none; }
  .partners-track.marquee-active { animation: none; }
  .section.section-in-view::after { animation: none; height: 100%; }
  .ripple-effect { display: none; }
  .btn-primary:active { animation: none; }
  .stat-number { transition: none; }
  /* Ensure reveal fallbacks are also disabled */
  .reveal:not(.visible),
  .reveal-left:not(.visible),
  .reveal-right:not(.visible),
  .reveal-scale:not(.visible) {
    animation: none;
  }
}

/* Hero description mobile */
@media (max-width: 768px) {
  .hero-description {
    animation: fadeInUp 0.8s ease 0.2s both;
  }
}

/* Solar Video Section Responsive */
@media (max-width: 768px) {
  .solar-video [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}


/* ============================================
   Showcase Gallery
   ============================================ */
.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.showcase-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-item:hover img {
  transform: scale(1.04);
}

.showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.showcase-location {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.showcase-system {
  color: var(--solar-gold-light);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0,0,0,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.showcase-cta {
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  display: flex;
}

.showcase-cta:hover {
  border-color: var(--solar-gold);
  background: rgba(245,158,11,0.02);
}

@media (max-width: 768px) {
  .showcase-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .showcase-item { border-radius: 10px; }
  .showcase-caption { padding: 0.75rem; }
  .showcase-location { font-size: 0.8rem; }
  .showcase-system { font-size: 0.7rem; padding: 0.15rem 0.4rem; }
}

@media (max-width: 480px) {
  .showcase-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Instagram Section
   ============================================ */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.insta-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.insta-item:hover img {
  transform: scale(1.08);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

.insta-follow {
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.3s;
}

.insta-follow:hover {
  border-color: #e6683c;
}

@media (max-width: 768px) {
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .insta-item { border-radius: 8px; }
  .insta-overlay { opacity: 1; background: rgba(0,0,0,0.2); }
  .insta-follow p { font-size: 0.75rem !important; }
}

@media (max-width: 480px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer logo - always white "Solar" on dark background */
.footer .nav-logo {
  color: #ffffff;
}

/* (Hero video removed - clean light hero)
}

/* ============================================
   Interactive Map - Leaflet Markers
   ============================================ */
#service-map {
  z-index: 1;
}

/* Pulsing location marker */
.map-pulse-marker {
  background: none;
  border: none;
}

.map-pulse-marker .pulse-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  animation: markerPulse 2s ease-in-out infinite;
}

.map-pulse-marker .pulse-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6), 0 0 20px rgba(245, 158, 11, 0.3);
  border: 2px solid #fff;
}

/* HQ marker */
.map-hq-marker {
  background: none;
  border: none;
}

.map-hq-marker .hq-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.15);
  animation: markerPulse 2.5s ease-in-out infinite;
}

.map-hq-marker .hq-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  font-family: Inter, system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(15, 23, 42, 0.4);
  border: 2px solid #fff;
}

@keyframes markerPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.6); opacity: 0; }
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
  border: 1px solid rgba(0,0,0,0.06);
}

.leaflet-popup-tip {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

@media (max-width: 768px) {
  #service-map { height: 350px; }
}

@media (prefers-reduced-motion: reduce) {
  .map-pulse-marker .pulse-outer,
  .map-hq-marker .hq-outer { animation: none; opacity: 0.3; }
}

/* ============================================
   Gallery Page
   ============================================ */

/* Filter Buttons */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.gallery-filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--solar-gold);
}

.gallery-filter-btn.active {
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
  color: #0f172a;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.gallery-filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--solar-gold);
  border-radius: 2px;
}

/* Gallery Videos */
.gallery-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .gallery-videos {
    grid-template-columns: 1fr;
  }
}

/* Gallery Group */
.gallery-group {
  margin-bottom: 3rem;
}

.gallery-group-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

/* Masonry Grid */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border: 2px solid #fff;
  border-radius: 50px;
  transition: background 0.3s;
}

.gallery-item:hover .gallery-item-overlay span {
  background: rgba(245, 158, 11, 0.8);
  border-color: transparent;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(245, 158, 11, 0.8);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(245, 158, 11, 0.8);
}

.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

/* Gallery Responsive */
@media (max-width: 1024px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .gallery-item-wide {
    grid-column: span 1;
  }
  .gallery-item { border-radius: 8px; }
  .gallery-filters { gap: 0.5rem; }
  .gallery-filter-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .lightbox-prev,
  .lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .gallery-masonry {
    grid-template-columns: 1fr;
  }
  .gallery-item-wide {
    grid-column: span 1;
  }
}

/* View Full Gallery Button */
.gallery-view-all {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-view-all a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--solar-gold);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gallery-view-all a:hover {
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-orange));
  color: #0f172a;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Showcase video grid responsive */
@media (max-width: 768px) {
  .showcase-video-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   Video Carousel
   ============================================ */
.video-carousel { padding: 0 50px; }

.video-carousel-track {
  position: relative;
  min-height: 450px;
}

.video-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  position: relative;
}

.video-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.3s ease;
}

.video-carousel-btn:hover {
  background: var(--solar-gold);
  color: #fff;
  border-color: var(--solar-gold);
  transform: translateY(-50%) scale(1.08);
}

.video-carousel-btn.prev { left: 0; }
.video-carousel-btn.next { right: 0; }

.video-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.video-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.video-dot.active {
  background: var(--solar-gold);
  width: 30px;
  border-radius: 5px;
}

.video-dot:hover { background: var(--solar-gold); }

@media (max-width: 768px) {
  .video-carousel { padding: 0 10px; }
  .video-carousel-btn { width: 36px; height: 36px; }
  .video-carousel-btn svg { width: 20px; height: 20px; }
  .video-carousel-btn.prev { left: -5px; }
  .video-carousel-btn.next { right: -5px; }
}
