/* CSS Variables for Brand Colors - Fixed & Extended */
:root {
  --primary-blue: #005b96;
  --accent-blue: #00a6d6;
  --solar-yellow: #f4c430;
  --eco-green: #3fa34d;
  --light-gray: #f6f6f6;
  --slate-gray: #555555;
  --charcoal-black: #1e1e1e;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  /* Added missing variables for consistency */
  --secondary: #004080; /* Used for btn-secondary1 */
  --light-gold: #ffd166; /* For gradient fallback */
  --dark: #1a1a1a; /* For dark text */
}

/* Base Styles - Optimized */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Jost", sans-serif;
  line-height: 1.6;
  color: var(--slate-gray);
  background-color: var(--white);
}

h1, h2, h3, h4 {
  color: var(--charcoal-black);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-blue);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Button System - Standardized */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  will-change: transform; /* Performance optimization */
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #003b63;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--secondary); /* Now uses consistent variable */
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #0085b3;
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.highlight {
  color: var(--primary-blue);
  font-weight: 700;
}

/* ================================
      PREMIUM HEADER STYLING
================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  background-color: rgb(59, 185, 235);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: background-color 0.35s ease, 
              padding 0.35s ease, 
              box-shadow 0.35s ease,
              backdrop-filter 0.35s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.35s ease-in-out;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100px;
  width: auto;
  margin-right: 12px;
  transition: height 0.35s ease;
}

.logo-text {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
  transition: font-size 0.35s ease, color 0.35s ease;
}

/* Navigation - Simplified */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem; /* Replaced margin-left with gap for cleaner code */
}

nav ul li a {
  color: #000;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-blue);
}

nav ul li a:hover:after {
  width: 100%;
}

/* Header State Classes */
header.header-small {
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header.header-small.header-transparent {
  background-color: rgba(255, 255, 255, 0);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

header.header-small .logo-img {
  height: 65px;
}

header.header-small .logo-text {
  font-size: 1.3rem;
}

header.header-small.header-transparent nav ul li a,
header.header-small:not(.header-transparent) nav ul li a {
  color: #ffffff;
}

header.header-small:not(.header-transparent) {
  background-color: rgb(59, 185, 235);
}

header.header-small:not(.header-transparent) .logo-img {
  height: 70px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
}

/* ================== HERO SECTION ================== */
.hero {
  height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 6%;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s ease-in-out, transform 1.8s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(75%) contrast(105%);
  transform: scale(1.08);
  will-change: transform, opacity; /* Performance optimization */
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.35));
  z-index: -1;
}

.hero-content {
  max-width: 850px;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1.2s forwards 0.5s;
  position: relative;
  z-index: 5;
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.2;
  font-family: 'garamond','sans serif';
  font-weight: 400;
  margin-bottom: 0.6rem;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
  color: var(--accent-blue);
}

.hero-content h1 .highlight {
  color: var(--primary-blue);
}

.typewriter-text {
  display: block;
  font-size: 2rem;
  font-weight: 300;
  border-right: 3px solid var(--primary-blue);
  color: var(--solar-yellow);
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
}

.hero-btns {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 5;
}

/* Hero buttons use standardized .btn-secondary class */
.hero .btn {
  
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  will-change: transform, box-shadow; /* Performance optimization */
}

.hero .btn-secondary1 {
  background-color: goldenrod;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  will-change: transform, box-shadow; /* Performance optimization */
}

.hero .btn:hover,
.hero .btn-secondary:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.scroll-down {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--solar-yellow);
  animation: bounce 2s infinite;
  z-index: 5;
}

/* ================== Keyframes ================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

/* Services Overview - Fixed image URL */
.services-overview {
  background: linear-gradient(rgba(238, 239, 240, 0.9), rgba(248, 249, 250, 0.9)),
    url("https://drilsol.com/wp-content/uploads/2022/07/Drisol-Slide-Five.png");
  background-size: cover;
  background-position: center;
  color: rgba(255, 255, 255, 0.801);
}
.services-overview h2{
  font-weight: 400;
  font-size: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: black;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  will-change: transform; /* Performance optimization */
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--solar-yellow);
  font-weight: 400;
}

.services-overview .text-center h2 {
  color: var(--accent-blue);
}

.services-overview .text-center {
  color: black;
}

/* Clients Section - Optimized */
.clients-section {
  background-color: black;
  text-align: center;
  padding: 4rem 0;
}

.clients-section h2 {
  font-size: 2.0rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.clients-section p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.clients-swiper {
  width: 100%;
  padding: 3rem 0;
  perspective: 1000px;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  width: 220px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform, box-shadow; /* Performance optimization */
}

.client-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.client-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.client-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

.swiper-slide-active .client-card {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

/* ================== Projects Section ================== */
#projects {
  padding: 6rem 0;
  background: linear-gradient(rgba(45, 48, 51, 0.836), rgba(248, 249, 250, 0.952)),
    url("https://drilsol.com/wp-content/uploads/2022/07/Drisol-Slide-Five.png");
  background-size: cover;
  background-position: center;
}

#projects .text-center h2 {
  font-size: 2.0rem;
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
  font-weight: 400;
}

#projects .text-center p {
  font-size: 1.1rem;
  color: #0c0b0b;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.project-card {
  position: relative;
  background-color: black;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform; /* Performance optimization */
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.project-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform; /* Performance optimization */
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-img::after {
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #777;
}

.project-meta i {
  color: var(--accent-blue);
  margin-right: 4px;
}

.project-tag {
  background-color: #eaeaea;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #333;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--solar-yellow);
  transition: color 0.3s ease;
  font-weight: 400;
}

.project-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.726);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.project-content .btn-outline {
  display: inline-block;
  padding: 10px 25px;
  border: 1px solid #333;
  color: white;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-content .btn-outline:hover {
  background-color: #333;
  color: #fff;
  transform: translateY(-3px);
}

/* Fade-in Animation for Cards */
.project-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCard 0.8s forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Solar Highlight - Fixed variable inconsistency */
.solar-highlight {
  background: linear-gradient(135deg, black 10%, var(--accent-blue) 100%);
  color: var(--white);
}

.solar-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.solar-text h2,
.solar-text p {
  color: var(--white);
}

.solar-text h2:after {
  background-color: var(--primary-blue);
}

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

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

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
}

.solar-image {
  background-color: var(--light-gray);
  height: 300px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-gray);
  font-size: 1.2rem;
}

/* Why Choose Us */
.section-padding1 {
  background: linear-gradient(rgba(5, 5, 5, 0.9), rgba(1, 4, 8, 0.9)),
    url("https://drilsol.com/wp-content/uploads/2022/07/Drisol-Slide-One.png");
  background-size: cover;
  background-position: center;
}
.section-padding1 h2{
  color: var(--accent-blue);
  font-weight: 400;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.section-padding1 .text-center {
  color: white;
}

.feature-item h3 {
  color: var(--solar-yellow);
  font-weight: 400;
}

.feature-item {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.726);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-blue);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  color: var(--solar-yellow);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.cta-section h2:after {
  display: none;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Contact Form */
.contact-form {
  background-color: var(--light-gray);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 166, 214, 0.2);
}

/* Footer */
footer {
  background-color: var(--charcoal-black);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: var(--solar-yellow);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 400;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--accent-blue);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-info li i {
  margin-right: 10px;
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
  will-change: transform; /* Performance optimization */
}

.social-links a:hover {
  background-color: var(--accent-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* Sticky Quote Button - Fixed gradient */
.sticky-quote {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--accent-blue);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(179, 0, 0, 0.4);
  font-weight: 400;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-quote:hover {
  background: linear-gradient(135deg, var(--secondary), var(--light-gold));
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}



/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Changed from right to avoid overlap */
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  animation: pulse 2s infinite;
  will-change: transform; /* Performance optimization */
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ================== RESPONSIVE STYLES ================== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .solar-content {
    grid-template-columns: 1fr;
  }
}

/* Simplified Mobile Menu - One consistent approach */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(70vh - 80px);
    background-color: var(--accent-blue);
    transition: left 0.4s ease;
    box-shadow: var(--shadow);
    padding: 2rem;
    z-index: 999;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  nav ul li {
    margin-bottom: 1.5rem;
  }
  
  .nav-cta {
    display: none;
  }
  
  .hero-btns,
  .cta-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero {
    padding: 8rem 0 5rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Mobile client card adjustments */
  .client-card {
    height: 110px;
    width: 180px;
  }
  
  /* Mobile project adjustments */
  #projects .text-center h2 { 
    font-size: 2rem; 
  }
  
  #projects .text-center p { 
    font-size: 1rem; 
  }
  
  .project-img { 
    height: 200px; 
  }
  
  .project-content h3 { 
    font-size: 1.2rem; 
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .solar-stats {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .client-card {
    height: 90px;
    width: 150px;
  }
}