/* =============================================
   Kiran Energies - Custom Styles
   ============================================= */

/* ---------- Root Variables ---------- */
:root {
  --primary: #1a5f2a;
  --primary-light: #28a745;
  --secondary: #f7c31c;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #1a5f2a 0%, #28a745 100%);
  --gradient-solar: linear-gradient(135deg, #f7c31c 0%, #ff8c00 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Global ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

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

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
}

.section-title {
  position: relative;
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-title .title-line {
  width: 80px;
  height: 4px;
  background: var(--gradient-solar);
  margin: 15px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-solar {
  background: var(--gradient-solar);
  color: var(--dark);
  font-weight: 600;
  padding: 12px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(247, 195, 28, 0.4);
}

.btn-solar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(247, 195, 28, 0.5);
  color: var(--dark);
}

.btn-green {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(26, 95, 42, 0.4);
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 95, 42, 0.5);
  color: #fff;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-loader {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 20px var(--secondary), 0 0 60px var(--secondary);
  animation: pulse-sun 1.2s ease-in-out infinite;
}

@keyframes pulse-sun {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--secondary), 0 0 60px var(--secondary); }
  50% { transform: scale(1.2); box-shadow: 0 0 40px var(--secondary), 0 0 80px var(--secondary); }
}

/* ---------- Navbar ---------- */
.navbar {
  padding: 15px 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
}

.navbar-brand img {
  height: 55px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
  height: 45px;
}

.navbar .nav-link {
  color: #333 !important;
  font-weight: 500;
  padding: 8px 18px !important;
  position: relative;
  font-size: 0.95rem;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: calc(100% - 36px);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
}

.navbar .btn-quote {
  background: var(--gradient-primary);
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 25px !important;
  font-weight: 600;
}

.navbar .btn-quote::after {
  display: none;
}

.navbar .btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 95, 42, 0.4);
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(22, 33, 62, 0.75)), url('../images/dashboard-carasoul-back.jpeg') center/cover no-repeat;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,120L1360,120C1280,120,1120,120,960,120C800,120,640,120,480,120C320,120,160,120,80,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom/cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--secondary);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 35px;
  max-width: 550px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
}

.hero-stat h3 {
  color: var(--secondary);
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.hero-stat p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
  bottom: 30px;
  left: -40px;
}

.floating-card.card-2 {
  top: 30px;
  right: -30px;
}

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

/* ---------- Solar Particles (Hero) ---------- */
.solar-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.solar-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 195, 28, 0.8), rgba(255, 140, 0, 0.2));
  pointer-events: none;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px) scale(0.3);
    opacity: 0;
  }
}

/* ---------- Hero Sun Rays ---------- */
.hero-sun-rays {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  z-index: 0;
  animation: rotateSunRays 30s linear infinite;
  opacity: 0.12;
}

.sun-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  transform-origin: 0 50%;
  border-radius: 3px;
}

.sun-ray:nth-child(1) { transform: rotate(0deg); }
.sun-ray:nth-child(2) { transform: rotate(45deg); }
.sun-ray:nth-child(3) { transform: rotate(90deg); }
.sun-ray:nth-child(4) { transform: rotate(135deg); }
.sun-ray:nth-child(5) { transform: rotate(180deg); }
.sun-ray:nth-child(6) { transform: rotate(225deg); }
.sun-ray:nth-child(7) { transform: rotate(270deg); }
.sun-ray:nth-child(8) { transform: rotate(315deg); }

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

/* ---------- Orbit Animation (Experience Badge) ---------- */
.experience-badge {
  overflow: visible;
}

.orbit-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: orbitSpin 8s linear infinite;
}

.orbit-ring-2 {
  top: -28px;
  left: -28px;
  right: -28px;
  bottom: -28px;
  border-color: rgba(247, 195, 28, 0.25);
  animation-duration: 12s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--secondary);
}

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

/* ---------- Energy Flow Divider ---------- */
.energy-flow-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.energy-flow-divider svg {
  width: 100%;
  height: 100%;
}

.energy-wave {
  stroke-dasharray: 12 8;
  animation: energyWaveDash 2s linear infinite;
}

.energy-wave.wave-2 {
  animation-delay: -1s;
  animation-direction: reverse;
}

@keyframes energyWaveDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -40; }
}

.energy-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 15px var(--secondary), 0 0 30px rgba(247, 195, 28, 0.3);
  animation: energyDotMove 4s ease-in-out infinite;
}

@keyframes energyDotMove {
  0% { left: -12px; }
  50% { left: 100%; }
  100% { left: -12px; }
}

/* ---------- CTA Sun Glow ---------- */
.cta-sun-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(247, 195, 28, 0.15), transparent 70%);
  animation: ctaSunPulse 4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

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

/* ---------- Process Step Solar Pulse ---------- */
.process-number::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: processPulse 2.5s ease-out infinite;
  opacity: 0;
}

@keyframes processPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ---------- Service Card Solar Shimmer ---------- */
.service-card .card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(247, 195, 28, 0.15), transparent);
  transition: none;
  animation: none;
}

.service-card:hover .card-img::after {
  animation: solarShimmer 0.8s ease forwards;
}

.service-card .card-img {
  position: relative;
  overflow: hidden;
}

@keyframes solarShimmer {
  from { left: -100%; }
  to { left: 200%; }
}

/* ---------- Testimonial Glow Ring ---------- */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 22px;
  background: conic-gradient(from 0deg, transparent, var(--secondary), transparent, var(--primary), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-card:hover::after {
  opacity: 0.4;
  animation: testimonialGlow 3s linear infinite;
}

@keyframes testimonialGlow {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

/* ---------- Feature Card Energy Rings ---------- */
.feature-icon::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px dashed transparent;
  transition: var(--transition);
}

.feature-icon {
  position: relative;
}

.feature-card:hover .feature-icon::before {
  border-color: rgba(247, 195, 28, 0.4);
  animation: featureRingSpin 6s linear infinite;
}

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

/* ---------- Section Title Solar Flare ---------- */
.section-title .title-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: titleFlare 3s ease-in-out infinite;
  box-shadow: 0 0 8px var(--secondary);
}

.section-title .title-line {
  position: relative;
}

@keyframes titleFlare {
  0%, 100% { left: 0; }
  50% { left: calc(100% - 10px); }
}

/* ---------- Counter Icon Bounce ---------- */
.counter-item .counter-icon {
  animation: counterBounce 3s ease-in-out infinite;
}

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

/* ---------- Features / Why Choose Us ---------- */
.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  transition: var(--transition);
}

.feature-icon.green {
  background: rgba(26, 95, 42, 0.1);
  color: var(--primary);
}

.feature-icon.solar {
  background: rgba(247, 195, 28, 0.15);
  color: #ff8c00;
}

.feature-card:hover .feature-icon.green {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.feature-card:hover .feature-icon.solar {
  background: #ff8c00;
  color: #fff;
  transform: scale(1.1);
}

.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- About Section ---------- */
.about-section {
  position: relative;
}

.about-img-wrapper {
  position: relative;
}

.about-img-wrapper img {
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(26, 95, 42, 0.4);
}

.experience-badge h3 {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 2px;
}

.experience-badge p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.about-content .lead {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.about-list {
  list-style: none;
  padding: 0;
}

.about-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #444;
}

.about-list li i {
  color: var(--primary-light);
  font-size: 1.2rem;
}

/* ---------- Services Section ---------- */
.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

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

.service-card .card-img {
  height: 220px;
  overflow: hidden;
}

.service-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .card-img img {
  transform: scale(1.1);
}

.service-card .card-body {
  padding: 30px;
}

.service-card .service-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 95, 42, 0.1);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
  margin-top: -50px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
  background: #fff;
}

.service-card h4 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card .read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.service-card .read-more i {
  transition: var(--transition);
}

.service-card:hover .read-more i {
  transform: translateX(5px);
}

/* ---------- Counter / Stats ---------- */
.counter-section {
  background: var(--gradient-dark);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.counter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?w=1920&q=80') center/cover;
  opacity: 0.1;
}

.counter-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.counter-item .counter-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.counter-item h3 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 5px;
}

.counter-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Projects / Gallery ---------- */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.project-filters .filter-btn {
  padding: 8px 25px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  background: transparent;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.project-filters .filter-btn:hover,
.project-filters .filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.9));
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-overlay h5 {
  color: #fff;
  font-size: 1.2rem;
}

.project-overlay span {
  color: var(--secondary);
  font-size: 0.9rem;
}

/* ---------- Testimonials ---------- */
.testimonial-section {
  background: var(--light);
}

.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  margin: 15px;
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 3rem;
  color: rgba(247, 195, 28, 0.2);
  position: absolute;
  top: 20px;
  right: 30px;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.testimonial-card .stars {
  color: var(--secondary);
  margin-bottom: 15px;
}

.testimonial-card p {
  color: #555;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h6 {
  margin-bottom: 2px;
  color: var(--dark);
}

.testimonial-author span {
  color: #888;
  font-size: 0.85rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--gradient-primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
  color: #fff;
  font-size: 2.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* ---------- Contact Section ---------- */
.contact-info-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-info-card .icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(26, 95, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-info-card h5 {
  color: var(--dark);
  margin-bottom: 10px;
}

.contact-info-card p {
  color: #666;
  margin: 0;
}

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 95, 42, 0.15);
}

/* ---------- Quote Form ---------- */
.quote-hero {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.8)), url('https://images.unsplash.com/photo-1559302504-64aae6ca6b6d?w=1920&q=80') center/cover;
  padding: 160px 0 100px;
}

.quote-form-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.quote-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.step {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  color: #999;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
}

.step.active {
  background: var(--gradient-primary);
  color: #fff;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -22px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: #e8e8e8;
}

.step.active:not(:last-child)::after {
  background: var(--primary);
}

/* ---------- Team Section ---------- */
.team-card {
  text-align: center;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.team-card .team-img {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.team-card .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-img img {
  transform: scale(1.1);
}

.team-card .team-social {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  transition: var(--transition);
}

.team-card:hover .team-social {
  bottom: 20px;
}

.team-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.team-social a:hover {
  background: var(--primary);
  color: #fff;
}

.team-card .team-info {
  padding: 25px;
}

.team-card .team-info h5 {
  color: var(--dark);
  margin-bottom: 5px;
}

.team-card .team-info p {
  color: #888;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  padding: 80px 0 0;
}

.footer h5 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a i {
  font-size: 0.7rem;
  color: var(--secondary);
}

.footer-contact li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact li i {
  color: var(--secondary);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
  margin-top: 50px;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Page Header / Breadcrumb ---------- */
.page-header {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.8)), url('../images/dashboard-carasoul-back.jpeg') center/cover;
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-header .breadcrumb {
  justify-content: center;
  background: transparent;
  margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item.active {
  color: var(--secondary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  box-shadow: 0 5px 15px rgba(26, 95, 42, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 25px;
  }

  .hero-image {
    margin-top: 40px;
  }

  section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .experience-badge {
    right: 10px;
    bottom: -10px;
    width: 110px;
    height: 110px;
  }

  .experience-badge h3 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .floating-card {
    display: none;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .quote-form-card {
    padding: 30px 20px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }
}

/* ---------- Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax */
.parallax-bg {
  background-attachment: fixed;
}

/* Ripple effect on buttons */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10%);
  transform: scale(10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.btn-ripple:active::after {
  transform: scale(0);
  opacity: 1;
  transition: 0s;
}

/* Tilt cards */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Marquee for partners */
.partners-section {
  padding: 40px 0;
  background: var(--light);
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 60px;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-track img {
  height: 50px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partners-track img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Process / How it works */
.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.process-step:last-child::after {
  display: none;
}

.process-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

/* FAQ */
.faq-item .accordion-button {
  font-weight: 600;
  color: var(--dark);
  font-size: 1.05rem;
  padding: 18px 25px;
}

.faq-item .accordion-button:not(.collapsed) {
  background: rgba(26, 95, 42, 0.05);
  color: var(--primary);
}

.faq-item .accordion-button::after {
  background-image: none;
  content: '\f067';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.9rem;
}

.faq-item .accordion-button:not(.collapsed)::after {
  content: '\f068';
  transform: none;
}

.faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 12px !important;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-item .accordion-body {
  color: #666;
  line-height: 1.8;
}

/* ---------- Service Detail Page ---------- */
.service-detail-intro {
  position: relative;
}

.service-detail-intro .lead {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.8;
}

.service-highlight-box {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.service-highlight-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-highlight-box .icon-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.service-highlight-box h5 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.service-highlight-box p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Spec / data table */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spec-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.spec-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
}

.spec-table tr:nth-child(even) td {
  background: #f9fafb;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

/* Types grid */
.type-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-top: 4px solid transparent;
}

.type-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--secondary);
}

.type-card .type-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  background: rgba(26, 95, 42, 0.1);
  color: var(--primary);
  transition: var(--transition);
}

.type-card:hover .type-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.type-card h5 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.type-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Sidebar for service detail */
.service-sidebar .sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.service-sidebar .sidebar-card h5 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.service-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-nav li {
  margin-bottom: 5px;
}

.service-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 10px;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.service-nav li a:hover,
.service-nav li a.active {
  background: rgba(26, 95, 42, 0.08);
  color: var(--primary);
}

.service-nav li a i {
  font-size: 0.8rem;
  transition: var(--transition);
}

.service-nav li a:hover i {
  transform: translateX(3px);
}

/* Quick contact sidebar */
.sidebar-contact {
  background: var(--gradient-primary) !important;
  color: #fff;
  text-align: center;
}

.sidebar-contact h5 {
  color: #fff !important;
  border-bottom-color: rgba(255,255,255,0.2) !important;
}

.sidebar-contact p {
  color: rgba(255,255,255,0.85);
}

.sidebar-contact .phone-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin: 10px 0;
}

/* Other services row */
.other-services-row .service-card {
  height: auto;
}

.other-services-row .card-img {
  height: 180px;
}

.other-services-row .card-body {
  padding: 20px;
}

.other-services-row .service-icon {
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  margin-top: -40px;
}

/* ---------- Project Lightbox ---------- */
.project-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

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

.lightbox-content img.active {
  display: block;
  animation: lightboxFadeIn 0.4s ease;
}

.lightbox-content iframe {
  width: 80vw;
  height: 45vw;
  max-width: 900px;
  max-height: 506px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
}

.lightbox-content iframe.active {
  display: block;
  animation: lightboxFadeIn 0.4s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-caption {
  margin-top: 15px;
}

.lightbox-caption h5 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.lightbox-caption span {
  color: var(--secondary);
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

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

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

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Lightbox hint icon on image cards */
.lightbox-hint {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .lightbox-hint {
  opacity: 1;
}

/* Clickable cursor on lightbox cards */
.project-card[data-lightbox],
.project-video-card {
  cursor: pointer;
}

/* ---------- Video Project Cards ---------- */
.video-thumbnail {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.play-btn-overlay i {
  margin-left: 4px;
}

.project-video-card:hover .play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 0, 0, 1);
  box-shadow: 0 8px 35px rgba(255, 0, 0, 0.4);
}

/* Inline video cards */
.project-inline-video {
  border-radius: 20px;
  overflow: hidden;
}

.project-inline-video video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-info-bar {
  padding: 20px 25px;
  background: var(--dark);
}

.video-info-bar h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.video-info-bar span {
  color: var(--secondary);
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .lightbox-content iframe {
    width: 92vw;
    height: 52vw;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .project-inline-video video {
    height: 220px;
  }
}
