/* Smooth Page Fade Transition */
body {
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.fade-in {
  opacity: 1;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  /* Soft Gradient Background */
  background: linear-gradient(135deg, #e6f7f1 0%, #f3f9ff 100%);
  /* Abstract Pattern Overlay */
  background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
  background-attachment: fixed;
  background-size: cover;
  background-repeat: repeat;
  color: #333;
}


/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #2980b9, #1abc9c);
  color: white;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: fadeDown 1.5s ease forwards;
}

.hero-title span {
  background: linear-gradient(90deg, #f1c40f, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 2s ease forwards;
  animation-delay: 0.5s;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero .btn {
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero .btn.primary {
  background: #1abc9c;
  color: white;
}

.hero .btn.primary:hover {
  background: #16a085;
  transform: scale(1.05);
}

.hero .btn.secondary {
  background: #f39c12;
  color: white;
}

.hero .btn.secondary:hover {
  background: #d35400;
  transform: scale(1.05);
}

/* Background animated circles */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  animation: float 8s infinite ease-in-out;
}

.hero::before {
  width: 250px;
  height: 250px;
  top: -50px;
  left: -80px;
}

.hero::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -100px;
  animation-delay: 4s;
}

/* Animations */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Section Box */
.section-box {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  margin: 40px auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  max-width: 1100px;
}
.section-box h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

/* Our Story Section */
.our-story .story-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.story-text {
  flex: 2;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  animation: fadeInLeft 1.5s ease;
}

.story-text p {
  margin-bottom: 15px;
}

.story-image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1.5s ease;
}

.story-image img {
  max-width: 280px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

.story-image img:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* Animations */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}



/* Mission & Vision */
.mv {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.mv div {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.mv div:nth-child(1) { animation-delay: 0.2s; }
.mv div:nth-child(2) { animation-delay: 0.4s; }

.mv i {
  font-size: 2.5rem;
  color: #2980b9;
  margin-bottom: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.mv div:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
  background: #ffffff;
}

.mv div:hover i {
  transform: scale(1.2);
  color: #1abc9c;
}

/* Fade up animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Why Choose Us */
.why-us {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: stretch;
}

.why-us div {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: bounceUp 1s ease forwards;
  position: relative;
  cursor: pointer;
}

.why-us div:nth-child(1) { animation-delay: 0.2s; }
.why-us div:nth-child(2) { animation-delay: 0.4s; }
.why-us div:nth-child(3) { animation-delay: 0.6s; }
.why-us div:nth-child(4) { animation-delay: 0.8s; }
.why-us div:nth-child(5) { animation-delay: 1s; }
.why-us div:nth-child(6) { animation-delay: 1.2s; }

.why-us i {
  font-size: 2.5rem;
  color: #2980b9;
  margin-bottom: 15px;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.why-us h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.why-us p {
  font-size: 0.95rem;
  color: #555;
  display: none; /* by default hidden (toggle by JS) */
  margin-top: 10px;
}

.why-us div:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  background: #ffffff;
}

.why-us div:hover i {
  transform: rotate(12deg) scale(1.2);
  color: #1abc9c;
  text-shadow: 0 0 15px rgba(26, 188, 156, 0.7);
}

/* Bounce effect on scroll */
@keyframes bounceUp {
  0% { opacity: 0; transform: translateY(60px) scale(0.9); }
  60% { opacity: 1; transform: translateY(-10px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Expanded card style */
.why-us div.active {
  background: #eafaf6;
  border: 2px solid #1abc9c;
}

/* Keyframe for fade up */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Achievements */
.achievements .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
}
.stats div {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stats h3 {
  font-size: 1.8rem;
  color: #2980b9;
}

/* Team */
.team {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.member {
  flex: 1;
  min-width: 220px;
  background: #f9f9f9;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.member i {
  font-size: 2rem;
  color: #1abc9c;
  margin-bottom: 10px;
}

/* Contact Info */
.contact-info p {
  font-size: 1.1rem;
  text-align: center;
}

/* CTA */
.cta {
  background: #2980b9;
  color: white;
  text-align: center;
  padding: 50px 20px;
}
.cta h2 { margin-bottom: 20px; }
.btn {
  display: inline-block;
  margin: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  background: #1abc9c;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.btn.secondary { background: #e67e22; }



/* Partner Slider */
.partner-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 20px 0;
}

.partner-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: scroll 25s linear infinite; /* speed updated */
}

.partner-track img {
  height: 60px;        /* sabhi logos ki height fix */
  width: auto;         /* width automatically adjust hogi */
  object-fit: contain; /* distort nahi hoga */
  display: block;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hover effect */
.partner-track img:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.stats div {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.stats div:hover {
  transform: translateY(-8px);
}

.stats i {
  font-size: 2rem;
  color: #1abc9c;
  margin-bottom: 10px;
}

.progress {
  background: #eee;
  border-radius: 8px;
  margin-top: 10px;
  height: 8px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2980b9, #1abc9c);
}

.cta.highlight {
  background: linear-gradient(135deg, #1abc9c, #2980b9);
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 15px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cta.highlight h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta.highlight p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}


/* Floating Contact Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.floating-buttons a:hover {
  transform: scale(1.1);
}

.floating-buttons .whatsapp {
  background: #25d366;
}

.floating-buttons .call {
  background: #2980b9;
}


/* Our Journey / Timeline */
.timeline-container {
  position: relative;
  margin: 40px 0;
  padding-left: 40px;
  border-left: 3px solid #1abc9c;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.timeline-item:nth-child(odd) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(even) {
  animation-delay: 0.4s;
}

.timeline-item .year {
  position: absolute;
  left: -80px;
  top: 0;
  font-weight: bold;
  color: #2980b9;
  font-size: 1.3rem;
  background: #f9f9f9;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.timeline-item h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.timeline-item p {
  background: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
}

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: center;
}

.awards-grid div {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.awards-grid div:hover {
  transform: translateY(-8px);
}

.awards-grid i {
  font-size: 2.5rem;
  color: #1abc9c;
  margin-bottom: 12px;

}

/* Preloader Background */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100000; /* सबके ऊपर */
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

/* Loader Circle */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #1abc9c;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide after load */
body.loaded #preloader {
  display: none;
}
