/* Index Page Specific Styles */

/* Hero Section */
.hero {
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.95) 0%,
      rgba(30, 58, 138, 0.92) 50%,
      rgba(59, 130, 246, 0.9) 100%),
    url("../images/services/fesability-study.jpg") center center / cover no-repeat;
  min-height: 65vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  /* Account for fixed navbar */
  padding-bottom: 2rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: none;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #ffffff;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 450px;
  height: 450px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.hero-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 35px 70px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Rotating Icons Around the Image */
.hero-image::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: 1;
  animation: rotate 20s linear infinite;
}

/* Individual rotating icons */
.rotating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  animation: rotate 20s linear infinite;
  z-index: 2;
}

.rotating-icon i {
  font-size: 24px;
  background: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.rotating-icon:hover {
  transform: scale(1.2);
  background: rgba(30, 58, 138, 0.1);
  box-shadow: 0 12px 35px rgba(30, 58, 138, 0.3);
}

.rotating-icon:hover i {
  transform: scale(1.1);
}

/* Position icons around the circle */
.rotating-icon:nth-child(1) {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.rotating-icon:nth-child(2) {
  top: 25%;
  right: 15%;
  animation-delay: -2.5s;
}

.rotating-icon:nth-child(3) {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  animation-delay: -5s;
}

.rotating-icon:nth-child(4) {
  bottom: 25%;
  right: 15%;
  animation-delay: -7.5s;
}

.rotating-icon:nth-child(5) {
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -10s;
}

.rotating-icon:nth-child(6) {
  bottom: 25%;
  left: 15%;
  animation-delay: -12.5s;
}

.rotating-icon:nth-child(7) {
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  animation-delay: -15s;
}

.rotating-icon:nth-child(8) {
  top: 25%;
  left: 15%;
  animation-delay: -17.5s;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: white;
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      transparent 49%,
      rgba(37, 99, 235, 0.02) 50%,
      transparent 51%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  text-align: right;
}

.service-card li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-right: 1.5rem;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.about .container {
  position: relative;
  z-index: 2;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}

.about-text {
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.about-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.lead {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.7;
}

.about-text p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.stat {
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.stat h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.stat p {
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.8rem;
}

.about-image {
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(30, 58, 138, 0.1);
  overflow: hidden;
  min-height: 500px;
  height: auto;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

/* Why Choose Us Section */
.why-choose {
  background: #ffffff;
  padding: 6rem 0;
  position: relative;
  margin: 4rem 0;
}

.why-choose .section-header h2 {
  color: var(--text-dark) !important;
  text-shadow: none;
  position: relative;
}

.why-choose .section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 2px;
}

.why-choose .section-header p {
  color: var(--text-medium) !important;
  text-shadow: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background: white;
  padding: 3rem 2rem;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.1);
  position: relative;
  overflow: hidden;
}

.feature i {
  font-size: 2rem;
  color: white;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
  position: relative;
  z-index: 1;
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.feature p {
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.8) 0%,
      rgba(30, 58, 138, 0.7) 50%,
      rgba(59, 130, 246, 0.6) 100%),
    url("../images/services/cta.png");
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-overlay {
  display: none;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-content {
  text-align: center;
  color: white;
}

.cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: #1e3a8a;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.4);
  color: #1e3a8a;
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-bottom: 3rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-title {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  }

  .hero-image img {
    width: 320px;
    height: 320px;
  }

  .rotating-icon {
    width: 45px;
    height: 45px;
  }

  .rotating-icon i {
    font-size: 18px;
  }

  .hero-buttons {
    padding-bottom: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text {
    padding: 2rem;
    order: 1;
  }

  .about-image {
    min-height: 400px;
    order: 2;
  }

  .about-image img {
    min-height: 400px;
  }

  .about-text h2 {
    font-size: 2.2rem;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
  }

  .stat {
    padding: 0.5rem 0.25rem;
  }

  .stat h3 {
    font-size: 1.1rem;
  }

  .stat p {
    font-size: 0.65rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }



  .hero-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

}