:root {
  --primary-color: #2563eb;
  --secondary-color: #3b82f6;
  --accent-color: #ffc801;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --text-color: #334155;
  --light-text: #fff;
  --gray-color: #64748b;
  --border-radius: 8px;
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}


.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--secondary-color);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline::before {
  background-color: var(--primary-color);
}

.btn-outline:hover {
  color: var(--light-text);
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray-color);
}

/* Modern Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

.header.scrolled {
  background-color: var(--light-text);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  transition: var(--transition);
}

.header.scrolled .logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--light-text);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.header.scrolled .nav-menu a {
  color: var(--text-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  color: var(--light-text);
  cursor: pointer;
}

.header.scrolled .mobile-toggle {
  color: var(--text-color);
}

/* Updated Slideshow Background Styles */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  color: var(--light-text);
  align-items: center;
  justify-content: center;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slideshow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: 2;
}

.slideshow-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 1.5s ease, transform 1.5s ease, visibility 0s 1.5s;
  transform: scale(1.1);
}

.slideshow-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: scale(1);
  transition: opacity 1.5s ease, transform 1.5s ease, visibility 0s 0s;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  top: 280px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
  opacity: 0.9;
}

.hero-btns {
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Services Section */
.services {
  background-color: var(--light-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--light-text);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(37, 99, 235, 0.03);
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: rgba(37, 99, 235, 0.2);
  transform: scale(1.1);
}

.service-icon i {
  font-size: 32px;
  color: var(--primary-color);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  color: var(--accent-color);
}

.service-content {
  padding: 30px;
  text-align: center;
}

.service-content h3 {
  margin-bottom: 15px;
}

/* About Section */
.about {
  background-color: var(--dark-color);
  color: var(--light-text);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  display: block;
}

.about-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.about-content h2::after {
  left: 0;
  transform: none;
}

/* Why Choose Us Section */
.why-us {
  background-color: var(--light-color);
}

.why-us-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-us-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.why-us-image img {
  width: 100%;
  display: block;
}

.why-us-content h2::after {
  left: 0;
  transform: none;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  transition: var(--transition);
  padding: 15px;
  border-radius: var(--border-radius);
}

.why-us-item:hover {
  background-color: rgba(37, 99, 235, 0.05);
  transform: translateX(5px);
}

.why-us-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  transition: var(--transition);
}

.why-us-item:hover .why-us-icon {
  background-color: var(--primary-color);
}

.why-us-icon i {
  font-size: 20px;
  color: var(--primary-color);
  transition: var(--transition);
}

.why-us-item:hover .why-us-icon i {
  color: var(--light-text);
}

/* CTA Section */
.cta {
  background-color: var(--dark-color);
  color: var(--light-text);
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Contact Section */
.contact {
  background-color: var(--light-color);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 40px;
  border-radius: var(--border-radius);
}

.contact-info h3 {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 20px;
}

.contact-form {
  background-color: var(--light-text);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 80px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 20px;
}

.footer h4 {
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #aaa;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--light-text);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-newsletter p {
  margin-bottom: 20px;
}

.newsletter-form {
  position: relative;
}

.newsletter-form input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
}

.newsletter-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 20px;
  background-color: var(--accent-color);
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  color: var(--light-text);
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  color: var(--light-text);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.mt-4 {
  margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .section {
    padding: 80px 0;
  }
  
  .about-container,
  .why-us-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--light-text);
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 0 0 20px;
  }
  
  .nav-menu a {
    color: var(--text-color);
    display: block;
  }
  
  .close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 24px;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 10px 20px;
  }
}

/* Scroll-Triggered Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Rotating Service Icons */
.service-icon {
  transition: var(--transition);
  transform-origin: center;
}

.service-card:hover .service-icon {
  animation: spin-bounce 1.5s ease-in-out;
}

@keyframes spin-bounce {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(90deg) scale(1.1); }
  40% { transform: rotate(180deg) scale(1); }
  60% { transform: rotate(270deg) scale(1.1); }
  80% { transform: rotate(360deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.1); }
}

/* 3D Card Effect */
.service-card {
  perspective: 1000px;
  transition: transform 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px) rotateY(5deg) rotateX(5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Parallax Effect for Hero */
.hero {
  background-attachment: fixed;
}

/* Floating Animation for Hero Content */
.hero-content {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Progress Bar for Scrolling */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  z-index: 2000;
  transition: width 0.1s ease;
}

/* Spinning Logo on Hover */
.logo img:hover {
  animation: spin-once 1s ease;
}

@keyframes spin-once {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Particle Background for CTA */
.cta {
  position: relative;
  overflow: hidden;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta .container {
  position: relative;
  z-index: 1;
}

/* Glowing Effect for Buttons */
.btn:hover {
  box-shadow: 0 0 10px 5px rgba(37, 99, 235, 0.3);
  animation: pulse 2s infinite;
}

/* Animated Numbers */
.counter-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.counter-container {
  text-align: center;
  margin-bottom: 50px;
}

/* Image Reveal on Scroll for About and Why Us */
.reveal-image {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-image.visible {
  clip-path: inset(0);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Slideshow Indicators */
.slideshow-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slideshow-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slideshow-indicator.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}