/* ============================================================
   LINKEDGES ENERGY SYSTEMS — COMPONENTS
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0;
  transition: all 0.4s var(--ease-out);
  animation: nav-slide-down 0.8s var(--ease-out) forwards;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 68px;
  padding: 0 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--grad-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% auto;
}

.nav-logo-text {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.2;
  display: block;
}

.nav-logo-text span {
  color: var(--green);
}

.nav-logo-sub {
  font-family: var(--font-secondary);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-top: 2px;
}

/* ── Desktop Nav Menu (always a horizontal row > 900px) ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

/* Hide mobile-only CTA on desktop */
.nav-menu-cta { display: none; }

.nav-link {
  font-family: var(--font-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate-light);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--duration-sm) ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active { color: var(--green); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 200;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* On transparent navbar (top of page), use dark lines so visible on light hero */
#navbar:not(.scrolled) .nav-toggle span {
  background: var(--text-main);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #ffffff; }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #ffffff; }

/* ── Laptop breakpoint: 900px–1200px tighten spacing ─── */
@media (min-width: 901px) and (max-width: 1200px) {
  .nav-inner { gap: var(--space-4); }
  .nav-menu { gap: 0; }
  .nav-link { padding: var(--space-2) var(--space-2); font-size: 0.8rem; }
  .nav-actions .btn { padding: var(--space-2) var(--space-4); font-size: 0.8rem; }
}

/* ── Small laptop: 900px–1024px ─────────────────────── */
@media (min-width: 901px) and (max-width: 1024px) {
  .nav-logo-text { font-size: 0.85rem; }
  .nav-link { font-size: 0.75rem; padding: 0.25rem 0.4rem; }
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?w=1920&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.2;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(11, 78, 162, 0.25) 0%, transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(241,245,249,0.85) 40%, rgba(7,46,110,0.5) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: var(--space-20);
}

.hero-content { max-width: 640px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: rgba(45, 190, 69, 0.1);
  border: 1px solid rgba(45, 190, 69, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: slide-in-up 0.8s var(--ease-out) 0.3s forwards;
}

.hero-tag-icon {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: glow-green 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: slide-in-up 0.8s var(--ease-out) 0.5s forwards;
}

.hero-title-line-1 {
  display: block;
  color: var(--text-main);
}

.hero-title-line-2 {
  display: block;
  background: linear-gradient(135deg, var(--deep-blue) 0%, #6fa8ff 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: grad-shift 4s ease infinite, slide-in-up 0.8s var(--ease-out) 0.5s forwards;
}

.hero-title-line-3 {
  display: block;
  color: var(--text-muted);
}

.hero-subtitle {
  font-size: var(--fs-xl);
  color: var(--slate-light);
  line-height: 1.65;
  margin-bottom: var(--space-10);
  max-width: 520px;
  opacity: 0;
  animation: slide-in-up 0.8s var(--ease-out) 0.7s forwards;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: slide-in-up 0.8s var(--ease-out) 0.9s forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: slide-in-up 0.8s var(--ease-out) 1.1s forwards;
}

.hero-stat-item { text-align: center; }

.hero-stat-num {
  font-family: var(--font-primary);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.hero-stat-num span { color: var(--green); }

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
}

/* Hero Visual Side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
  opacity: 0;
  animation: fade-in 1s ease 1.2s forwards;
}

.hero-3d-container {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
}

.hero-product-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 240px;
}

.solar-panel-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.panel-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(11,78,162,0.3);
}

.panel-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) saturate(1.2);
}

.panel-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(11,78,162,0.4) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* Floating product cards */
.hero-float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
}

.hero-float-card:nth-child(2) {
  top: 10%;
  right: -10%;
  animation: float-x 7s ease-in-out infinite;
}

.hero-float-card:nth-child(3) {
  bottom: 15%;
  left: -5%;
  animation: float-x 9s ease-in-out infinite reverse;
}

.hero-float-card:nth-child(4) {
  top: 60%;
  right: -5%;
  animation: float 8s ease-in-out infinite 1s;
}

.float-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.float-card-icon.blue { background: rgba(11, 78, 162, 0.3); border: 1px solid rgba(11, 78, 162, 0.4); }
.float-card-icon.green { background: rgba(45, 190, 69, 0.2); border: 1px solid rgba(45, 190, 69, 0.35); }
.float-card-icon.orange { background: rgba(255, 122, 0, 0.2); border: 1px solid rgba(255, 122, 0, 0.35); }

.float-card-label {
  font-size: var(--fs-xs);
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.float-card-value {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-main);
}

/* Energy lines on hero */
.hero-energy-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.energy-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  animation: electric-flow 4s ease-in-out infinite;
}

.energy-line:nth-child(1) { width: 200px; top: 30%; left: 20%; animation-delay: 0s; }
.energy-line:nth-child(2) { width: 150px; top: 55%; right: 15%; animation-delay: 1.5s; }
.energy-line:nth-child(3) { width: 180px; bottom: 25%; left: 40%; animation-delay: 3s; }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 3;
  animation: fade-in 1s ease 2s both;
}

.hero-scroll-label {
  font-size: var(--fs-xs);
  color: var(--slate);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-bar {
  width: 1px;
  height: 50px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-scroll-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, var(--green), transparent);
  animation: float-slow 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════ */
#about {
  background: var(--dark-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 580px;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--deep-blue), var(--green), var(--orange));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.5;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  transition: transform 0.6s var(--ease-out);
}

.about-image-wrap:hover img { transform: scale(1.04); }

.about-badge {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.about-badge-icon {
  font-size: 2rem;
}

.about-badge-text strong {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--orange);
}

.about-badge-text span {
  font-size: var(--fs-xs);
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-content { max-width: 560px; }

.about-description {
  font-size: var(--fs-lg);
  color: var(--slate-light);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.about-point-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(45, 190, 69, 0.15);
  border: 1px solid rgba(45, 190, 69, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-point-text strong {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  font-size: var(--fs-base);
  margin-bottom: 2px;
}

.about-point-text p {
  font-size: var(--fs-sm);
  color: var(--slate);
  margin: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.about-stat {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--duration-md) var(--ease-out);
}

.about-stat:hover {
  background: var(--glass-hover);
  border-color: rgba(11, 78, 162, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.about-stat-num {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.about-stat-label {
  font-size: var(--fs-sm);
  color: var(--slate);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS SECTION
═══════════════════════════════════════════════════════════ */
#products {
  background: var(--dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.product-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-md) var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,78,162,0.1) 0%, rgba(45,190,69,0.05) 100%);
  opacity: 0;
  transition: opacity var(--duration-md) ease;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(11, 78, 162, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(11, 78, 162, 0.25);
}

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

.product-card-image {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  filter: brightness(0.9) saturate(1.1);
}

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

.product-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, transparent 60%);
}

.product-card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
}

.product-card-body {
  padding: var(--space-6);
  position: relative;
  z-index: 2;
}

.product-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-blue);
  transition: transform var(--duration-md) var(--ease-spring);
}

.product-card:hover .product-card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.product-card-title {
  font-family: var(--font-primary);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-3);
}

.product-card-desc {
  font-size: var(--fs-sm);
  color: var(--slate-light);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-card-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green);
  transition: gap var(--duration-sm) var(--ease-spring);
}

.product-card:hover .product-card-link { gap: var(--space-3); }

.product-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-sm) var(--ease-spring);
}

.product-card:hover .product-card-link svg { transform: translateX(4px); }

/* Card glow effect */
.product-card-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(11, 78, 162, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-md) ease;
  pointer-events: none;
  z-index: 0;
}

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

/* ═══════════════════════════════════════════════════════════
   SOLUTIONS SECTION
═══════════════════════════════════════════════════════════ */
#solutions {
  background: var(--dark-2);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.solution-card {
  position: relative;
  height: 480px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--duration-md) var(--ease-out);
}

.solution-card:hover { transform: translateY(-8px); }

.solution-card-bg {
  position: absolute;
  inset: 0;
}

.solution-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  filter: brightness(0.7) saturate(1.2);
}

.solution-card:hover .solution-card-bg img { transform: scale(1.08); }

.solution-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.3) 60%, transparent 100%);
  transition: background var(--duration-md) ease;
}

.solution-card:hover .solution-card-overlay {
  background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(11,78,162,0.3) 60%, rgba(11,78,162,0.1) 100%);
}

.solution-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8);
}

.solution-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  transition: all var(--duration-md) var(--ease-spring);
}

.solution-card:hover .solution-card-icon {
  background: var(--grad-blue);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: var(--shadow-blue);
}

.solution-card-title {
  font-family: var(--font-primary);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.solution-card-desc {
  font-size: var(--fs-sm);
  color: var(--slate-light);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.solution-card:hover .solution-card-desc {
  max-height: 100px;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   WHY CHOOSE US
═══════════════════════════════════════════════════════════ */
#why-us {
  background: var(--dark);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.why-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.why-feature-card {
  background: #ffffff;
  border: 1.5px solid rgba(11, 78, 162, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-md) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

/* Shimmer overlay on hover */
.why-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,78,162,0.04) 0%, rgba(45,190,69,0.03) 100%);
  opacity: 0;
  transition: opacity var(--duration-md) ease;
  border-radius: inherit;
  pointer-events: none;
}

/* Bottom accent bar */
.why-feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--deep-blue), var(--green));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
  transform-origin: left;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.why-feature-card:hover {
  transform: scale(1.03);
  border-color: rgba(11, 78, 162, 0.35);
  box-shadow: 0 8px 40px rgba(11, 78, 162, 0.18), 0 0 0 3px rgba(11, 78, 162, 0.07);
}

.why-feature-card:hover::before { opacity: 1; }
.why-feature-card:hover::after { transform: scaleX(1); }

.why-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-blue);
  transition: transform var(--duration-md) var(--ease-spring);
}

.why-feature-card:hover .why-feature-icon {
  transform: rotate(-8deg) scale(1.1);
}

.why-feature-title {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.why-feature-desc {
  font-size: var(--fs-sm);
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

.why-image-side {
  position: relative;
}

.why-image-main {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 500px;
  position: relative;
}

.why-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-card-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
}

.why-card-float-title {
  font-size: var(--fs-sm);
  color: var(--slate);
  margin-bottom: var(--space-2);
}

.why-card-float-value {
  font-family: var(--font-primary);
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: var(--green);
}

/* ═══════════════════════════════════════════════════════════
   INSTALLATION PROCESS
═══════════════════════════════════════════════════════════ */
#installation {
  background: var(--dark-2);
}

.process-timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin-top: var(--space-12);
  padding: 0 var(--space-4);
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--deep-blue), var(--green), var(--orange));
  z-index: 0;
  border-radius: var(--radius-full);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  flex: 1;
  position: relative;
  z-index: 1;
}

.process-step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 2px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--slate);
  transition: all var(--duration-md) var(--ease-out);
  position: relative;
  line-height: 1;
}

.process-step.active .process-step-num,
.process-step:hover .process-step-num {
  background: var(--grad-blue);
  border-color: transparent;
  color: var(--text-main);
  box-shadow: var(--shadow-blue);
  transform: scale(1.1);
}

.process-step-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}

.process-step-label {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-main);
}

.process-step-desc {
  font-size: var(--fs-sm);
  color: var(--slate);
  line-height: 1.5;
  max-width: 140px;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   ENERGY CALCULATOR
═══════════════════════════════════════════════════════════ */
#calculator {
  background: var(--dark);
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.calculator-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.calc-form-title {
  font-family: var(--font-primary);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--slate-light);
  margin-bottom: var(--space-2);
  letter-spacing: 0.03em;
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  font-family: var(--font-secondary);
  font-size: var(--fs-base);
  transition: all var(--duration-sm) ease;
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--deep-blue);
  background: rgba(11, 78, 162, 0.1);
  box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.2);
}

.form-input::placeholder { color: var(--slate); }

.form-select option { background: var(--dark-2); color: var(--text-main); }

.form-range {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--deep-blue);
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  transition: transform var(--duration-sm) var(--ease-spring);
}

.form-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
}

.range-label {
  font-size: var(--fs-xs);
  color: var(--slate);
}

.calculator-results {
  position: sticky;
  top: 100px;
}

.results-card {
  background: var(--grad-blue);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.results-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  pointer-events: none;
}

.results-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.results-value {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.results-currency {
  font-size: var(--fs-2xl);
  vertical-align: super;
  font-weight: 600;
}

.results-period {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-6);
}

.results-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.breakdown-item {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.breakdown-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-1);
}

.breakdown-value {
  font-family: var(--font-primary);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS GALLERY
═══════════════════════════════════════════════════════════ */
#projects {
  background: var(--dark-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: var(--space-4);
}

.project-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
}

.project-item:nth-child(1) { grid-row: span 2; }
.project-item:nth-child(4) { grid-column: span 2; }

.project-item-img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  filter: brightness(0.85) saturate(1.1);
}

.project-item:hover .project-item-img { transform: scale(1.06); }

.project-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,13,26,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-md) ease;
}

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

.project-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--duration-md) var(--ease-out);
}

.project-item:hover .project-item-content {
  transform: translateY(0);
  opacity: 1;
}

.project-item-tag {
  font-size: var(--fs-xs);
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.project-item-title {
  font-family: var(--font-primary);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
}

/* Before/After slider */
.before-after-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 400px;
  cursor: ew-resize;
  margin-top: var(--space-8);
  user-select: none;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--white);
  z-index: 3;
  transform: translateX(-50%);
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: ew-resize;
}

.ba-labels {
  position: absolute;
  top: var(--space-4);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-6);
  z-index: 4;
  pointer-events: none;
}

.ba-label {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
#testimonials {
  background: var(--dark);
}

.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  height: 100%;
  transition: all var(--duration-md) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: var(--space-6);
  font-family: var(--font-primary);
  font-size: 8rem;
  color: var(--deep-blue);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  border-color: rgba(11, 78, 162, 0.4);
  transform: translateY(-6px);
  box-shadow: var(--shadow-blue);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-4);
}

.testimonial-stars span {
  color: var(--orange);
  font-size: 1rem;
}

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--slate-light);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(11, 78, 162, 0.4);
}

.testimonial-name {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-main);
  font-size: var(--fs-base);
}

.testimonial-role {
  font-size: var(--fs-sm);
  color: var(--slate);
}

/* Swiper navigation */
.swiper-btn-prev,
.swiper-btn-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-sm) ease;
  color: var(--text-main);
  font-size: 1.2rem;
}

.swiper-btn-prev:hover,
.swiper-btn-next:hover {
  background: var(--grad-blue);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

/* ═══════════════════════════════════════════════════════════
   BRANDS SECTION
═══════════════════════════════════════════════════════════ */
#brands {
  background: var(--dark-2);
  padding: var(--space-16) 0;
}

.brands-label {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--slate);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-10);
}

.brands-track {
  overflow: hidden;
  position: relative;
}

.brands-track::before,
.brands-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.brands-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--dark-2), transparent);
}

.brands-track::after {
  right: 0;
  background: linear-gradient(-90deg, var(--dark-2), transparent);
}

.brands-slide {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  width: max-content;
  animation: scroll-brands 30s linear infinite;
}

@keyframes scroll-brands {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  min-width: 140px;
  height: 64px;
  transition: all var(--duration-sm) ease;
  white-space: nowrap;
}

.brand-logo-item:hover {
  background: var(--glass-hover);
  border-color: rgba(11, 78, 162, 0.3);
  transform: scale(1.05);
}

.brand-logo-item span {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.01em;
  transition: color var(--duration-sm) ease;
}

.brand-logo-item:hover span { color: var(--text-main); }

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════════════════ */
#faq {
  background: var(--dark);
}

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

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: all var(--duration-sm) ease;
}

.faq-item:hover { border-color: rgba(11, 78, 162, 0.3); }
.faq-item.open { border-color: rgba(11, 78, 162, 0.4); box-shadow: var(--shadow-blue); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6);
  cursor: pointer;
  gap: var(--space-4);
}

.faq-question-text {
  font-family: var(--font-primary);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-main);
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-md) var(--ease-out);
  font-size: 1.2rem;
  color: var(--slate-light);
}

.faq-item.open .faq-icon {
  background: var(--deep-blue);
  border-color: transparent;
  color: var(--text-main);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--fs-base);
  color: var(--slate-light);
  line-height: 1.75;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════════════ */
#contact {
  background: var(--dark-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-form-wrap {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.contact-form-title {
  font-family: var(--font-primary);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.contact-form-subtitle {
  font-size: var(--fs-base);
  color: var(--slate);
  margin-bottom: var(--space-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-textarea {
  width: 100%;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  font-family: var(--font-secondary);
  font-size: var(--fs-base);
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: all var(--duration-sm) ease;
}

.form-textarea:focus {
  border-color: var(--deep-blue);
  background: rgba(11, 78, 162, 0.1);
  box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.2);
}

.form-textarea::placeholder { color: var(--slate); }

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-blue);
}

.contact-info-label {
  font-size: var(--fs-xs);
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.contact-info-value {
  font-weight: 600;
  color: var(--text-main);
  font-size: var(--fs-base);
  line-height: 1.4;
}

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 200px;
  background: var(--dark-3);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.8);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration-sm) var(--ease-spring);
  text-decoration: none;
}

.social-link:hover {
  background: var(--grad-blue);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-blue);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
#footer {
  background: var(--dark-2);
  border-top: 1px solid var(--dark-4);
  padding: var(--space-20) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  align-items: start;
}

.footer-brand { max-width: 100%; }

.footer-desc {
  font-size: var(--fs-sm);
  color: var(--slate);
  line-height: 1.75;
  margin: var(--space-4) 0 var(--space-6);
  max-width: 400px;
}

.footer-col-title {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--fs-sm);
  color: var(--slate);
  transition: color var(--duration-sm) ease, padding-left var(--duration-sm) ease;
}

.footer-link:hover { color: var(--text-main); padding-left: var(--space-2); }

.footer-newsletter {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer-newsletter input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  font-family: var(--font-secondary);
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--duration-sm) ease;
}

.footer-newsletter input:focus { border-color: var(--deep-blue); }
.footer-newsletter input::placeholder { color: var(--slate); }

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

.footer-copyright {
  font-size: var(--fs-sm);
  color: var(--slate);
}

.footer-copyright span { color: var(--green); }

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-link {
  font-size: var(--fs-sm);
  color: var(--slate);
  transition: color var(--duration-sm) ease;
}

.footer-bottom-link:hover { color: var(--text-main); }

/* ═══════════════════════════════════════════════════════════
   BACKGROUND BLOBS & FX
═══════════════════════════════════════════════════════════ */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  animation: blob-float 12s ease-in-out infinite;
}

.bg-blob-blue {
  background: var(--deep-blue);
}

.bg-blob-green {
  background: var(--green);
}

.bg-blob-orange {
  background: var(--orange);
}

/* Sunlight sweep overlay */
.sunlight-overlay {
  overflow: hidden;
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.sunlight-beam {
  position: absolute;
  width: 3px;
  height: 200%;
  background: linear-gradient(to bottom, transparent, rgba(255, 200, 50, 0.08), transparent);
  transform: rotate(-20deg);
  animation: light-beam 8s ease-in-out infinite;
  transform-origin: center;
}

.sunlight-beam:nth-child(2) { left: 20%; animation-delay: 2s; opacity: 0.6; width: 2px; }
.sunlight-beam:nth-child(3) { left: 40%; animation-delay: 5s; opacity: 0.4; width: 4px; }

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-md) ease;
}

#lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--duration-md) var(--ease-out);
}

#lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-main);
  transition: all var(--duration-sm) ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }

/* ═══════════════════════════════════════════════════════════
   SWIPER OVERRIDES
═══════════════════════════════════════════════════════════ */
.swiper { overflow: visible !important; }
.swiper-wrapper { align-items: stretch; }
.swiper-slide { height: auto; }

.swiper-pagination-bullet {
  background: var(--slate) !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--deep-blue) !important;
  transform: scale(1.3);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 1200px (Tablet Landscape / Small Desktop)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero-inner { gap: var(--space-10); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { gap: var(--space-10); }
  .why-card-float { right: 0; bottom: 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 900px (Tablet Portrait / Mobile Menu Trigger)
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ── Navbar ── */
  #navbar .nav-menu { display: none; }
  #navbar .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile full-screen menu */
  #navbar .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(5, 13, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-8);
    gap: var(--space-6);
    z-index: 150;
  }

  #navbar .nav-menu.open .nav-link {
    font-size: var(--fs-2xl);
    font-family: var(--font-primary);
    font-weight: 700;
    padding: var(--space-4) 0;
    color: #ffffff !important;
  }

  /* Show mobile CTA inside the overlay */
  #navbar .nav-menu.open .nav-menu-cta {
    display: list-item;
    list-style: none;
  }

  /* Toggle button always above overlay */
  .nav-toggle { z-index: 200; }
  .nav-toggle.open span { background: var(--text-main); }

  /* ── Hero ── */
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 110px;
    padding-bottom: var(--space-16);
    text-align: center;
    min-height: auto;
  }

  .hero-content { max-width: 100%; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .hero-subtitle { font-size: var(--fs-lg); max-width: 100%; }

  /* ── Sections ── */
  .about-grid,
  .why-grid,
  .calculator-wrapper,
  .contact-grid { grid-template-columns: 1fr; }

  .about-image-wrap { height: 320px; }
  .about-content { max-width: 100%; }

  /* Why-us image side hidden on mobile so features take full width */
  .why-image-side { display: none; }
  .why-features { grid-template-columns: repeat(2, 1fr); }

  /* ── Process Timeline ── */
  .process-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }

  .process-timeline::before {
    top: 0;
    bottom: 0;
    left: 36px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    gap: var(--space-6);
  }

  /* ── Calculator results: remove sticky on mobile ── */
  .calculator-results { position: static; top: auto; }

  /* ── Projects ── */
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-item:nth-child(1) { grid-row: span 1; }
  .project-item:nth-child(4) { grid-column: span 1; }

  /* ── Before/After ── */
  .before-after-wrap { height: 280px; }

  /* ── Contact ── */
  .contact-info-side { order: -1; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 600px (Mobile Portrait)
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── Container padding ── */
  .container { padding: 0 var(--space-4); }

  /* ── Typography ── */
  .section-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .section-subtitle { font-size: var(--fs-sm); }
  .hero-subtitle { font-size: var(--fs-base); }

  /* ── Grids ── */
  .solutions-grid,
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .results-breakdown { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .why-features { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  /* ── Hero ── */
  .hero-inner { padding-top: 100px; }
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
  }
  .hero-divider { display: none; }

  /* ── About ── */
  .about-image-wrap { height: 240px; }
  .about-badge { padding: var(--space-3) var(--space-4); }
  .about-badge-text strong { font-size: var(--fs-lg); }
  .about-stat-num {
    background: none;
    -webkit-text-fill-color: var(--deep-blue);
    color: var(--deep-blue);
  }

  /* ── Products ── */
  .product-card-image { height: 180px; }

  /* ── Solutions ── */
  .solution-card { height: 300px; }

  /* ── Process ── */
  .process-step-num { width: 60px; height: 60px; flex-shrink: 0; }

  /* ── Calculator ── */
  .calculator-form { padding: var(--space-6); }
  .results-card { padding: var(--space-6); }
  .results-value { font-size: clamp(2rem, 10vw, 3rem); }
  .results-breakdown { grid-template-columns: 1fr; }

  /* ── Why-us ── */
  .why-features { grid-template-columns: 1fr; }
  .why-feature-card { padding: var(--space-4); }

  /* ── Testimonials ── */
  .testimonial-card { padding: var(--space-6); }

  /* ── Before/After ── */
  .before-after-wrap { height: 220px; }

  /* ── Contact ── */
  .contact-form-wrap { padding: var(--space-6); }
  .contact-info-card { padding: var(--space-6); }
  .social-links { flex-wrap: wrap; }

  /* ── Footer ── */
  .footer-gallery-wrap { display: none; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-3); }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  /* ── Buttons ── */
  .btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--fs-base); }

  /* ── Spacing ── */
  :root {
    --space-32: 4rem;
    --space-24: 3rem;
    --space-20: 3rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 400px (Small Mobile — iPhone SE, Galaxy A-series)
═══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .container { padding: 0 var(--space-3); }
  .hero-inner { padding-top: 90px; }
  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn { width: 100%; justify-content: center; text-align: center; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .about-stat { padding: var(--space-4); }
  .why-features { grid-template-columns: 1fr; }
  .process-step-num { width: 52px; height: 52px; font-size: var(--fs-base); }
  .process-step { gap: var(--space-4); }
  .process-step-desc { max-width: 100%; }
  .calculator-form { padding: var(--space-4); }
  .results-card { padding: var(--space-4); }
  .nav-inner { height: 60px; }
  :root {
    --space-32: 3.5rem;
    --space-20: 2.5rem;
  }
}


/* ─── Notification Toast ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 140px; /* Above WhatsApp icon */
  right: var(--space-6);
  z-index: var(--z-top);
  background: var(--grad-green);
  color: var(--white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  font-weight: 600;
  box-shadow: var(--shadow-green);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ─── Floating WhatsApp ─────────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: var(--z-top);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  color: white;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 360px (Ultra-Small Mobile — Galaxy Fold, Older devices)
═══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.4rem; }
  .hero-inner { padding-top: 80px; }
  .btn-lg { padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); }
  .about-stat-num { font-size: 1.5rem; }
  .floating-whatsapp { 
    width: 50px; 
    height: 50px; 
    font-size: 28px; 
    bottom: var(--space-4); 
    right: var(--space-4); 
  }
  .toast { 
    bottom: 110px; 
    right: var(--space-4); 
    left: var(--space-4); 
    text-align: center; 
  }
  .process-step-num { width: 44px; height: 44px; font-size: var(--fs-sm); }
}

/* Responsive hardening: preserve the desktop design while preventing intrinsic overflow. */
.hero-inner > *,
.about-grid > *,
.products-grid > *,
.solutions-grid > *,
.why-grid > *,
.calculator-wrapper > *,
.projects-grid > *,
.contact-grid > *,
.footer-grid > *,
.form-row > * {
  min-width: 0;
}

.product-card-desc,
.solution-card-desc,
.testimonial-text,
.faq-question-text,
.faq-answer-inner,
.contact-info-value,
.footer-desc,
.footer-copyright,
.footer-bottom-link {
  overflow-wrap: anywhere;
}

#hero {
  min-height: 100svh;
}

.form-input,
.form-select,
.form-textarea {
  min-width: 0;
}

@media (max-width: 900px) {
  #navbar .nav-menu.open {
    min-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: max(var(--space-20), env(safe-area-inset-top));
    padding-right: max(var(--space-8), env(safe-area-inset-right));
    padding-bottom: max(var(--space-8), env(safe-area-inset-bottom));
    padding-left: max(var(--space-8), env(safe-area-inset-left));
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  #testimonials-swiper {
    overflow: hidden !important;
  }

  .project-item-overlay,
  .project-item-content {
    opacity: 1;
  }

  .project-item-content {
    transform: none;
  }

  /* Mobile process timeline: every step owns its full content height. */
  .process-timeline {
    --process-node-size: 60px;
    width: 100%;
    margin-top: var(--space-8);
    padding: 0;
    gap: var(--space-6);
  }

  .process-timeline::before {
    left: calc(var(--process-node-size) / 2 - 1px);
  }

  .process-step {
    display: grid;
    grid-template-columns: var(--process-node-size) minmax(0, 1fr);
    align-items: start;
    width: 100%;
    flex: none;
    gap: var(--space-5);
    text-align: left;
  }

  .process-step > div:last-child {
    min-width: 0;
    padding-top: var(--space-1);
  }

  .process-step-num {
    width: var(--process-node-size);
    height: var(--process-node-size);
    align-self: start;
    flex-shrink: 0;
  }

  .process-step-desc {
    width: 100%;
    max-width: none;
  }

  /* AOS transforms do not participate in layout and clipped the final step. */
  .process-step[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 600px) {
  .container-sm {
    padding-inline: var(--space-4);
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  .hero-stat-item {
    min-width: 80px;
  }

  .faq-question {
    min-height: 64px;
    padding: var(--space-4);
  }

  .faq-question-text {
    font-size: var(--fs-base);
  }

  .faq-answer-inner {
    padding-inline: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .footer-newsletter {
    flex-wrap: wrap;
  }

  .footer-newsletter input {
    flex-basis: 100%;
  }

  .ba-labels {
    padding-inline: var(--space-3);
  }

  .ba-label {
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-xs);
  }

  .lightbox-img {
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
  }

  .lightbox-close {
    top: max(var(--space-3), env(safe-area-inset-top));
    right: max(var(--space-3), env(safe-area-inset-right));
  }

  .toast {
    left: var(--space-4);
    right: var(--space-4);
    width: auto;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .process-timeline {
    --process-node-size: 52px;
    gap: var(--space-5);
  }

  .process-step {
    gap: var(--space-4);
  }

  .contact-info-item {
    gap: var(--space-3);
  }

  .contact-info-icon {
    width: 40px;
    height: 40px;
  }

  .results-value {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .process-timeline {
    --process-node-size: 44px;
  }

  .process-step-icon {
    font-size: 1.2rem;
  }
}

@media (max-height: 640px) and (max-width: 900px) {
  #navbar .nav-menu.open {
    justify-content: flex-start;
    gap: var(--space-2);
  }

  #navbar .nav-menu.open .nav-link {
    padding-block: var(--space-2);
    font-size: var(--fs-xl);
  }
}

@media (hover: none), (pointer: coarse) {
  .btn,
  .nav-link,
  .product-card-link,
  .footer-link,
  .footer-bottom-link {
    min-height: 44px;
  }

  .product-card-link,
  .footer-link,
  .footer-bottom-link {
    display: inline-flex;
    align-items: center;
  }

  .product-card:hover,
  .why-feature-card:hover,
  .solution-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
