/* Root Variables */
:root {
  --primary-bg: #ffffff;
  --secondary-bg: #f7f7f7;
  --text-color: #333333;
  --secondary-text: #666666;
  --accen-color: #151B54;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
  --card-hover-bg: #e0f7fa;
  --card-icon-size: 50px;
}

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

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
  overflow: hidden;
  margin-top: 10vh;
  animation: fadeIn 2s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.5s ease-in-out forwards;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--secondary-text);
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.5s ease-in-out 0.3s forwards;
  text-align: justify;
}

.hero-cta {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1.5s ease-in-out 0.6s forwards;
}

.btn {
  padding: 12px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all var(--transition-speed);
  text-align: center;
}

.btn-primary {
  background-color: var(--accen-color);
  color: var(--primary-bg);
  border: 2px solid var(--accen-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accen-color);
  border: 2px solid var(--accen-color);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-image {
  flex: 1;
  max-width: 50%;
  opacity: 0;
  transform: translateX(50px);
  animation: fadeInRight 1.5s ease-in-out forwards;
}

.hero-video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
    margin-top: 5vh;
  }

  .hero-content,
  .hero-image {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

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

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

  .hero-description {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Section Headings */
section {
  background: linear-gradient(to right, #f9f9f9, #ffffff);
  padding: 60px 20px;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #0a74da;
  margin: 20px auto 0;
  border-radius: 2px;
}

section p {
  text-align: justify; /* Updated to justify text alignment */
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Our Story Section */
:root {
  --primary-color: #003366;
  --secondary-color: #1e90ff;
  --accent-color: #ffcc00;
  --neutral-white: #ffffff;
  --text-color: #333333;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --milestone-hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* General Styles */
.story {
  padding: 50px 20px;
  background: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.story h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

.story p {
  text-align: justify; /* Updated to justify text alignment */
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

/* Timeline */
.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
}

.milestone {
  background: #fff;
  color: #333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  flex-basis: calc(30% - 20px);
  opacity: 0;
  transform: translateY(50px);
}

.milestone:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.milestone .icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #e6f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.milestone .icon img {
  width: 50%;
  height: auto;
}

.milestone h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #151B54;
}

.milestone p {
  font-size: 1rem;
  color: #555;
}

/* Divider */
.divider {
  position: relative;
  flex-basis: 5%;
  height: 2px;
  background: #007bff;
  align-self: center;
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.divider span {
  width: 15px;
  height: 15px;
  background: #ff5722;
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

/* Scroll Animation */
[data-scroll] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-scroll].active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .milestone {
    flex-basis: calc(45% - 20px);
  }
}

@media (max-width: 480px) {
  .milestone {
    flex-basis: 100%;
  }

  .divider {
    display: none;
  }
}

/* Mission, Vision, Values Section */
.mission-vision {
  background: linear-gradient(120deg, #f4f4f4, #eaeaea);
  padding: 50px 20px;
}

.mission-vision h2 {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 40px;
}

.mission-vision .values {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.mission-vision .card {
  flex: 1 1 calc(33.333% - 30px);
  background: #fff;
  color: #333;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-vision .card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  background: #f9f9f9;
}

.mission-vision .card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
}

.mission-vision .card-icon img {
  width: 50%;
  height: auto;
}

.mission-vision .card:hover .card-icon {
  transform: rotate(360deg);
}

.mission-vision .card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.mission-vision .card p,
.mission-vision .card ul {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  text-align: justify; /* Updated to justify text alignment */
}

.mission-vision .card ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.mission-vision .card ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.mission-vision .card ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #0a74da;
  font-size: 0.9rem;
  top: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mission-vision .card {
    flex-basis: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .mission-vision .card {
    flex-basis: 100%;
  }

  .mission-vision h2 {
    font-size: 1.5rem;
  }
}

/* Why Choose Us Section Styling */
.why-choose-us {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
}

.why-choose-us h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
  animation: fadeIn 1s ease-in-out;
}

.usp-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.usp-icon {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.usp-icon:nth-child(even) {
  animation-delay: 0.2s;
}

.usp-icon:nth-child(odd) {
  animation-delay: 0.4s;
}

.usp-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.usp-icon h3 {
  font-size: 1.5rem;
  color: #151B54;
  margin-bottom: 0.5rem;
}

.usp-icon p {
  font-size: 1rem;
  color: #666;
  text-align: justify; /* Updated to justify text alignment */
}

.usp-icon:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Scroll Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animation class */
.usp-icon {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}

.usp-icon.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .why-choose-us h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .why-choose-us h2 {
    font-size: 1.8rem;
  }
}

/* Leadership Section */
h2 {
  text-align: center;
  margin: 1em 0;
  color: #151B54;
}

.management-card {
  display: flex;
  align-items: stretch;
  /* important: both sides equal height */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5em auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.6s ease;
  /* max-width: 900px; */
  width: 90%;
  height: 450px;
  opacity: 0;
  transform: translateY(20px);
}

.management-card.active {
  opacity: 1;
  transform: translateY(0);
}

.management-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.management-card .image-section {
  width: 40%;
  display: flex;
  justify-content: center;
  /* CENTER horizontally */
  align-items: center;
  /* CENTER vertically */
  /* background: #f5f5f5; */
  /* (optional) halka background dena ho to */
}

.management-card .image-section img {
  width: 260px;
  /* image ko bhi thoda shrink */
  height: auto;
  /* maintain original aspect ratio */
  max-height: 90%;
  object-fit: cover;
  display: block;
}

.management-card .details {
  padding: 2em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align items from the start, no center alignment */
}

.details h3 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: #222;
}

.details p {
  font-size: 1em;
  margin-bottom: 0.5em;
  color: #555;
  margin-top: 0.2em; /* Ensures the text is right below the heading */
}

.social-links {
  margin-top: 1em;
}

.social-links a {
  margin-right: 0.7em;
  color: #0A66C2;
  font-size: 1.5em;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #004182;
}


/* Responsive */
/*  Responsive for Mobile Devices */
@media (max-width: 768px) {
  .management-card {
    flex-direction: column;
    height: auto;
  }

  .management-card .image-section {
    width: 100%;
    height: 50%;
    padding: 1em 0;
  }

  .management-card .image-section img {
    width: 50%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  .management-card .details {
    width: 100%;
    padding: 1.5em;
    text-align: center;
  }

  .details h3 {
    font-size: 1.5em;
  }

  .details p {
    font-size: 0.95em;
  }

  .social-links {
    margin-top: 1em;
    justify-content: center;
    display: flex;
  }
}
/* Team Section */
#team {
  padding: 3em 2em;
  background-color: #f5f7fa;
}

#team h2 {
  text-align: center;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 1.5em;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Team Card Layout */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
  padding: 1.5em;
  animation: fadeIn 0.5s ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Image Styling */
.team-card img {
  width: 120px;
  height: 160px;
  margin-bottom: 1em;
  object-fit: cover;
}

/* Text Styling */
.team-card h3 {
  font-size: 1.5rem;
  color: #003366;
  margin-bottom: 0.5em;
}

.team-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  text-align: justify; /* Updated to justify text alignment */
}

.team-card strong {
  display: block;
  font-size: 1rem;
  color: #151B54;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

/* Social Links */
.team-card .social-links {
  margin-top: 1em;
}

.team-card .social-links a {
  color: #151B54;
  font-size: 1.2rem;
  margin: 0 0.5em;
  transition: color 0.3s ease;
}

.team-card .social-links a:hover {
  color: #003366;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-container {
    flex-direction: column;
    align-items: center;
  }

  .team-card {
    width: 90%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Media Queries */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  section h2 {
    font-size: 2.2rem;
  }

  .story .milestone,
  .mission-vision .card,
  .leadership .card {
    flex-basis: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 2rem;
  }

  .story .milestone,
  .mission-vision .card,
  .leadership .card {
    flex-basis: 100%;
  }

  .why-choose .feature {
    padding: 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Additional Enhancements */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Improved Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
