:root {
  --primary-blue: #1A365D;
  --primary-yellow: #F6AD55;
  --primary-yellow-hover: #ED8936;
  --text-dark: #2D3748;
  --text-light: #F7FAFC;
  --bg-light: #F7FAFC;
  --bg-white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.bg-light { background-color: var(--bg-light); }
.bg-blue { background-color: var(--primary-blue); }
.text-light { color: var(--text-light); }
.mt-4 { margin-top: 2rem; }

/* Typography */
.section-title {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-weight: 800;
}
.section-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #4A5568;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}

header.scrolled .header-container {
  padding: 0.3rem 2rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-yellow);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-yellow);
}

/* Default state: white text */
header .nav-link {
  color: #ffffff;
}

/* Scrolled state: blue text */
header.scrolled .nav-link {
  color: var(--primary-blue);
}

header.scrolled .nav-link:hover {
  color: var(--primary-yellow);
}

@media (max-width: 992px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1002;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  header.menu-open .main-nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  header.menu-open {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: none;
  }

  header.menu-open .mobile-menu-btn {
    color: var(--primary-blue) !important;
  }

  header.menu-open .icon-menu {
    display: none;
  }

  header.menu-open .icon-close {
    display: block !important;
  }

  header .nav-link {
    color: var(--primary-blue);
    font-size: 1.2rem;
    padding: 0.5rem 0;
  }
}

@media (min-width: 993px) {
  .mobile-menu-btn { display: none !important; }
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

header[style*="transparent"] .mobile-menu-btn,
header:not(.scrolled) .mobile-menu-btn {
  color: white;
}

header.scrolled .mobile-menu-btn {
  color: var(--primary-blue);
}

.header-container .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

.logo-img { height: 45px; object-fit: contain; transition: height 0.3s ease; }
header.scrolled .logo-img { height: 35px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: var(--primary-yellow);
  color: #fff;
  box-shadow: 0 4px 15px rgba(246, 173, 85, 0.4);
}
.btn-primary:hover {
  background-color: var(--primary-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 173, 85, 0.6);
}
.btn-outline {
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover {
  background-color: #fff;
  color: var(--primary-blue);
}
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background-image: linear-gradient(rgba(26, 54, 93, 0.3), rgba(26, 54, 93, 0.3)), url('hero_energy.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.hero-content {
  max-width: 800px;
  color: var(--text-light);
  margin-top: 80px;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center; }

/* Brands Section */
.brands-section {
  padding: 3rem 0;
  background: var(--bg-white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0.6;
}
.brand-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.brands-grid:hover .brand-logo { opacity: 0.3; transition: opacity 0.3s ease; }
.brand-logo:hover { opacity: 1 !important; color: var(--primary-blue); }

/* Sections general */
section { padding: 6rem 0; }

/* Problem Section */
.problem-section .highlight-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-yellow);
  margin-top: 2rem;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}
.flex-half { flex: 1; min-width: 300px; max-width: 100%; }
.align-center { align-items: center; }
.image-placeholder img { max-width: 100%; height: auto; display: block; }

/* Cards */
.card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-10px); }
.icon-large { font-size: 4rem; margin-bottom: 1rem; }
.card h3 { color: var(--primary-blue); margin-bottom: 1rem; font-size: 1.5rem; }

/* Badge */
.badge {
  display: inline-block;
  background-color: rgba(246, 173, 85, 0.15);
  color: var(--primary-yellow-hover);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Feature Cards (Why Us) */
.feature-card {
  background: var(--bg-light);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.02);
}
.feature-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: white;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.feature-card h4 {
  color: var(--primary-blue);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Benefits List */
.benefits-list { list-style: none; }
.benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.check-icon {
  background: var(--primary-yellow);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1.5rem;
  flex-shrink: 0;
}
.benefits-list strong { display: block; font-size: 1.2rem; color: var(--primary-blue); margin-bottom: 0.5rem; }

/* Testimonial Cards */
.testimonial-card {
  background: var(--bg-white);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  text-align: left;
}
.quote-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 6rem;
  color: rgba(246, 173, 85, 0.1);
  font-family: serif;
  line-height: 1;
}
.stars { font-size: 1.2rem; margin-bottom: 1.5rem; }
.review-text { font-style: italic; font-size: 1.15rem; margin-bottom: 2rem; color: #4A5568; position: relative; z-index: 1; }
.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.author-info strong { display: block; color: var(--primary-blue); font-size: 1.1rem; }
.author-info span { font-size: 0.9rem; color: #718096; }

/* FAQ Accordion */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-white);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-yellow);
  transition: transform 0.3s ease;
}
.faq-question.active::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: #4A5568;
}
.faq-item.active .faq-answer { padding-bottom: 1.5rem; }

/* Contact Section (Lead Gen) */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  background-color: var(--primary-blue);
  color: var(--text-light);
  border-radius: 30px;
  padding: 4rem;
  margin-top: -3rem; /* overlap */
}

.contact-info h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--primary-yellow); }
.contact-info p { margin-bottom: 2rem; font-size: 1.1rem; }
.contact-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 1.1rem;
  flex: 1 1 200px;
}
.contact-item svg { width: 28px; height: 28px; margin-right: 1rem; fill: var(--primary-yellow); }

.contact-form-container {
  flex: 1;
  min-width: 300px;
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 20px;
  color: var(--text-dark);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: var(--bg-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}
.form-control:focus { outline: none; border-color: var(--primary-yellow); box-shadow: 0 0 0 3px rgba(246, 173, 85, 0.2); }
textarea.form-control { resize: vertical; min-height: 120px; }
.submit-btn { width: 100%; font-size: 1.1rem; padding: 1rem; }

.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; text-align: center; font-weight: 600; }
.alert-success { background-color: #C6F6D5; color: #22543D; }
.alert-error { background-color: #FED7D7; color: #822727; }

/* Stats Banner */
.stats-banner {
  background-color: var(--primary-blue);
  padding: 3rem 0;
  color: white;
  border-bottom: 4px solid var(--primary-yellow);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-yellow);
  line-height: 1;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Footer */
footer { background-color: #0F2038; color: rgba(255,255,255,0.7); text-align: center; padding: 2rem; margin-top: 4rem;}

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

/* Gallery Styles */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1.5rem;
}
.gallery-item-1 {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item-2 {
  grid-column: span 2;
}
.gallery-item-3 {
  grid-column: span 1;
}
.gallery-item-4 {
  grid-column: span 1;
}
.gallery-item-5 {
  grid-column: span 4;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  .contact-container { flex-direction: column; padding: 2rem; border-radius: 0; }
  .section-title { font-size: 2rem; }
  
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .flex-row { gap: 2rem; }
  .flex-half { min-width: 100%; }
  .results-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-details { flex-direction: column; gap: 1.2rem; }
  .contact-item { flex: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 1rem;
  }
  .gallery-item-1 {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-item-2 {
    grid-column: span 2;
  }
  .gallery-item-3 {
    grid-column: span 1;
  }
  .gallery-item-4 {
    grid-column: span 1;
  }
  .gallery-item-5 {
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  .header-container { padding: 0.5rem 1rem; }
  header.scrolled .header-container { padding: 0.3rem 1rem; }
  .header-actions { gap: 0.5rem; }
  .header-container .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .logo-img { height: 35px; }
  header.scrolled .logo-img { height: 30px; }
  .hero-content { margin-top: 100px; }
  section { padding: 4rem 0; }
  .contact-info h2 { font-size: 1.8rem; }
  
  .contact-container { padding: 1.5rem; width: 100%; box-sizing: border-box; }
  .contact-form-container { min-width: 100%; padding: 1.5rem; width: 100%; box-sizing: border-box; }
  
  footer { padding: 1.5rem 1rem; }
  footer p { font-size: 0.85rem; }
  .contact-item { font-size: 0.85rem; align-items: flex-start; }
  .contact-item svg { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; }
  .contact-item span, .contact-item a { word-break: break-all; overflow-wrap: break-word; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 0.8rem;
  }
  .gallery-item-1, .gallery-item-2, .gallery-item-3, .gallery-item-4, .gallery-item-5 {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}
