/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* ======================
   BASE STYLES & RESETS
   ====================== */
:root {
  --color-purple-dark: #2D1B69;
  --color-purple-main: #5B21B6;
  --color-purple-light: #8B5CF6;
  --color-accent: #C084FC;
  --color-white: #FFFFFF;
  --color-gray-50: #1A1625;
  --color-gray-100: #1E1A2B;
  --color-gray-200: #242038;
  --color-gray-300: #2D2B42;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #E2E8F0;
  --color-gray-700: #F1F5F9;
  --color-gray-800: #F8FAFC;
  --color-gray-900: #18181b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--color-gray-600);
  background-color: var(--color-gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
  color: var(--color-purple-light);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ======================
   TYPOGRAPHY
   ====================== */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* ======================
   BUTTON STYLES
   ====================== */
.primary-button, .cta-button, .submit-button {
  display: inline-block;
  background-color: var(--color-purple-main);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.primary-button:hover, .cta-button:hover, .submit-button:hover {
  background-color: var(--color-purple-light);
}

.cta-button {
  background-color: var(--color-accent);
}

.cta-button:hover {
  background-color: var(--color-purple-light);
}

.outline-button {
  display: inline-block;
  background-color: transparent;
  color: var(--color-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  border: 1px solid var(--color-blue);
  transition: all 0.3s;
}

.outline-button:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ======================
   NAVIGATION & HEADER
   ====================== */
.navbar {
  position: fixed;
  top: 40px; /* Height of top bar */
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s;
  padding: 1rem 0;
  background-color: var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-300);
}

.navbar.scrolled {
  background-color: var(--color-gray-200);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.desktop-menu {
  display: none;
}

.nav-item {
  color: var(--color-white);
  margin: 0 0.75rem;
  padding: 0.5rem 0;
  font-weight: 500;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--color-purple-light);
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
}

.menu-icon {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
}

.mobile-menu {
  position: fixed;
  top: calc(32px + 50px); /* top bar + navbar height for mobile */
  left: 0;
  right: 0;
  background-color: var(--color-gray-200);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(-150%);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 999; /* Below navbar but above content */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .nav-item {
  margin: 0.5rem 0;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-out;
}

.mobile-menu.active .nav-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu.active .nav-item:nth-child(6) { transition-delay: 0.6s; }

@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
    align-items: center;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

/* Animated Hamburger Menu */
.menu-toggle {
  position: fixed;
  top: 40px;
  right: 16px;
  z-index: 2002;
  background: none;
  box-shadow: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger {
  display: inline-block;
  width: 28px;
  height: 22px;
  position: relative;
  z-index: 1201;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform-origin: left center;
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0;
  transform-origin: left center;
}

.hamburger span:nth-child(2) {
  top: 9px;
  transform-origin: left center;
}

.hamburger span:nth-child(3) {
  top: 18px;
  transform-origin: left center;
}

.menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: -1px;
  left: 4px;
}

.menu-toggle.active .hamburger span:nth-child(2) {
  width: 0;
  opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
  left: 4px;
}

@media (min-width: 768px) {
  .menu-toggle, .mobile-menu, .menu-overlay {
    display: none;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    position: fixed;
    top: 36px;
    right: 12px;
    z-index: 2002;
    background: none;
    box-shadow: none;
  }
  .navbar {
    z-index: 2001;
  }
  .mobile-menu {
    z-index: 2000;
    top: calc(32px + 50px);
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  padding-top: 7rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(45, 27, 105, 0.8), rgba(45, 27, 105, 0.9));
  z-index: 1;
}

.water-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    45deg,
    rgba(45, 27, 105, 0.8) 0%,
    rgba(139, 92, 246, 0.8) 50%,
    rgba(45, 27, 105, 0.8) 100%
  );
  background-size: 400% 400%;
  animation: water-flow 15s ease infinite;
}

@keyframes water-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  z-index: 10;
  text-align: center;
  max-width: 800px;
  animation: fade-in 0.8s ease-out;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 10;
}

.scroll-arrow {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--color-white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Hero Slider */
.hero-slider {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.8s ease-in-out;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
  pointer-events: none;
  z-index: 1;
}

.hero-slider .slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-slider .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.1);
  transition: transform 8s ease;
}

.hero-slider .slide.active .slide-bg {
  transform: scale(1);
}

.hero-slider .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-slider .slide-content {
  position: absolute;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
  bottom: 40px;
  left: 40px;
}

.hero-slider .slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider .slide-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  color: var(--color-white);
}

.hero-slider .slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider .slide-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  max-width: 600px;
}

.hero-slider .slide.active .slide-description {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider .slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  color: var(--color-white);
  font-size: 1.5rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.hero-slider .slider-nav:hover {
  background-color: var(--color-purple-light);
}

.hero-slider .slider-nav.prev {
  left: 2rem;
}

.hero-slider .slider-nav.next {
  right: 2rem;
}

.hero-slider .slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.hero-slider .dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--color-white);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slider .dot.active {
  background-color: var(--color-white);
  transform: scale(1.2);
}

.hero-slider .slide-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  color: var(--color-white);
  background-color: var(--color-purple-main);
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 1.1s, transform 0.8s ease 1.1s, background-color 0.3s ease;
}

.hero-slider .slide-button:hover {
  background-color: var(--color-purple-light);
}

.hero-slider .slide.active .slide-button {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-slider {
    min-height: 500px;
  }

  .hero-slider .slide-content {
    padding: 30px;
    bottom: 30px;
    left: 20px;
    right: 20px;
  }

  .hero-slider .slide-title {
    font-size: 2rem;
  }

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

  .hero-slider .slider-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .hero-slider .slider-nav.prev {
    left: 1rem;
  }

  .hero-slider .slider-nav.next {
    right: 1rem;
  }
}

/* Page Headers */
.page-header {
  padding-top: calc(40px + 74px); /* top bar + navbar height */
  padding-bottom: 2rem;
  background-color: var(--color-gray-200);
  text-align: center;
}

/* Welcome Section */
.welcome {
  padding: 4rem 0;
  text-align: center;
}

.welcome h2 {
  margin-bottom: 2rem;
}

.welcome p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

/* Home About Section */
.home-about {
  padding: 6rem 0;
  background-color: var(--color-gray-100);
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.home-about-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.image-container:hover .about-img {
  transform: scale(1.05);
}

.home-about-content {
  max-width: 600px;
}

.home-about-content h2 {
  margin-bottom: 1rem;
}

.home-about-content p {
  margin-bottom: 1.5rem;
}

.home-about-content .button-group {
  margin-top: 2rem;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .home-about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Stats Section */
.stats-section {
  position: relative;
  padding: 6rem 0;
  background-image: url('../images/stats-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var (--color-white);
}

.stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
    rgba(45, 27, 105, 0.95),
    rgba(91, 33, 182, 0.9));
}

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

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.stat-suffix {
  font-size: 1.5rem;
  margin-left: 0.25rem;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Section Intro */
.section-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--color-purple-light);
  margin: 0 auto 1.5rem;
}

.section-intro p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background-color: var(--color-gray-50);
}

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

.about-history h3 {
  margin-bottom: 1.5rem;
}

.mission-vision {
  background-color: var(--color-gray-200);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.mission, .vision {
  margin-bottom: 2rem;
}

.mission h4, .vision h4 {
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  padding: 3rem 0;
  margin-top: 2rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-purple-main), var(--color-accent));
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 2px;
}

.timeline-items {
  position: relative;
  z-index: 2;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 2rem 2rem 0;
  text-align: right;
  margin-bottom: 3rem;
}

.timeline-item.right {
  left: 50%;
  padding: 2rem 0 2rem 2rem;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  top: 2rem;
  right: -14px;
  width: 28px;
  height: 28px;
  background: var(--color-white);
  border: 4px solid var(--color-accent);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(91,33,182,0.15);
  transition: background 0.3s;
}

.timeline-item.right .timeline-marker {
  left: -14px;
  right: auto;
}

.timeline-item h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-purple-main);
}

.timeline-item p {
  color: var(--color-gray-600);
  display: inline-block;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(91,33,182,0.08);
  margin: 0;
}

@media (max-width: 900px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  .timeline-item, .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 2rem 0 2rem 3.5rem;
  }
  .timeline-marker, .timeline-item.right .timeline-marker {
    left: 0;
    right: auto;
  }
}

.features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 900px;
}

.feature-card {
  flex: 1 1 250px;
  max-width: 300px;
  min-width: 220px;
  margin: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-gray-200);
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .features {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .feature-card {
    max-width: 100%;
    margin: 0;
  }
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background-color: var(--color-gray-100);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-gray-200);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background-color: var (--color-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.service-icon img {
  width: 2rem;
  height: 2rem;
  color: var(--color-white);
}

.service-icon i {
  font-size: 2.5rem;
  color: var(--color-purple-main);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-cta {
  margin-top: 3rem;
  text-align: center;
  font-size: 1.125rem;
}

.text-link {
  color: var(--color-purple);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.text-link:hover {
  color: var(--color-blue);
}

.text-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s;
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Gallery Section */
.gallery-section {
  padding: 4rem 0;
  background-color: var(--color-gray-50);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--color-gray-200);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

.gallery-item:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.error-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  text-align: center;
  padding: 1rem;
  width: 100%;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -2rem;
  right: -2rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

#modal-caption {
  color: var(--color-white);
  text-align: center;
  margin-top: 1rem;
  padding: 0 1rem;
  font-size: 1.1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: var(--color-white);
  max-width: 800px;
  width: 90%;
  border-radius: 0.5rem;
  padding: 1rem;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 2rem;
  color: var(--color-white);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2001;
}

#modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

#modal-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.125rem;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
  background-color: var(--color-gray-100);
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}

.testimonial-slide.active {
  opacity: 1;
  z-index: 2;
}

.testimonial-card {
  background-color: var(--color-gray-200);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  margin-bottom: 0.5rem;
}

.star {
  color: gold;
  font-size: 1.5rem;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.author-name {
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 0;
}

.author-location {
  color: var(--color-gray-600);
  margin-bottom: 0;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

.indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--color-gray-300);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: var(--color-blue);
}

.testimonial-cta {
  margin-top: 4rem;
  text-align: center;
}

.cta-text {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background-color: var(--color-gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info {
  order: -1; /* Move contact info above the form */
}

.contact-form-container {
  background-color: var(--color-gray-200);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form-container h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-gray-700);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  color: var(--color-gray-600);
  background-color: var(--color-gray-100);
}

.form-control::placeholder {
  color: var(--color-gray-400);
  opacity: 1;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.active {
  display: block;
}

.form-control.error {
  border-color: #dc2626;
}

.submit-button {
  width: 100%;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.info-card {
  background-color: var(--color-gray-200);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-icon {
  margin-right: 1rem;
  color: var(--color-blue);
}

.contact-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--color-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-method h4 {
  margin-bottom: 0.25rem;
}

.contact-method p {
  margin-bottom: 0;
}

.map-container {
    width: 100%;
    height: 300px; /* Decrease the height to 200px or any desired value */
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 75%;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  stroke: var(--color-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 1.5rem;
}

.success-message h3 {
  margin-bottom: 1rem;
}

.success-message p {
  margin-bottom: 1.5rem;
}

.modal-ok-button {
  background-color: var(--color-blue);
  color: var(--color-white);
  padding: 0.5rem 2rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-ok-button:hover {
  background-color: var(--color-lightblue);
}

.info-card > div:last-child {
  margin-top: 0.5rem;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.info-card > div:last-child h4 {
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  color: var(--color-purple-main);
  font-size: 1.1rem;
  font-weight: 500;
}
.info-card > div:last-child p {
  margin: 0;
  color: var(--color-gray-500);
  font-size: 1rem;
}

/* Ensure all .contact-method and address are vertically stacked and left-aligned */
.info-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Add spacing below info-card for map separation */
.info-card {
  margin-bottom: 1.5rem;
}

/* Fix address contact-method color and alignment to match others */
.info-card .contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 0;
  box-shadow: none;
  width: 100%;
}

.info-card .contact-method h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-purple-main);
  font-weight: 500;
}

.info-card .contact-method p {
  margin: 0;
  color: var(--color-gray-500);
  font-size: 1rem;
}

/* Ensure all .contact-methods have same icon size and alignment */
.info-card .contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-purple-light);
  border-radius: 50%;
  color: var(--color-white);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.info-card .contact-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.info-card .contact-method > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Remove any extra margin from last contact-method */
.info-card .contact-method:last-child {
  margin-bottom: 0;
}

/* Responsive: stack items and ensure left alignment on small screens */
@media (max-width: 900px) {
  .info-card {
    gap: 1rem;
    align-items: flex-start;
  }
  .info-card > div:last-child {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* Footer */
footer {
  background-color: var(--color-purple-dark);
  color: var(--color-white);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

/* ======================
   SERVICES SECTION
   ====================== */

.company-info h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-map {
  margin-top: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.footer-map iframe {
  display: block;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.contact-item .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-links h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.quick-links ul li {
  margin-bottom: 0.5rem;
}

.quick-links ul li a {
  transition: color 0.3s;
}

.quick-links ul li a:hover {
  color: var(--color-purple);
}

.connect h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--color-purple);
}

.social-links .icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

/* ======================
   FOOTER STYLES
   ====================== */

.credit {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Animation Utilities */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive Styles */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .contact-form-container {
    background-color: var(--color-gray-200);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    height: fit-content;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gray-600);
    font-weight: 500;
  }

  .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.375rem;
    background-color: var(--color-gray-100);
    color: var(--color-white);
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  .form-control:focus {
    outline: none;
    border-color: var(--color-purple-light);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  }

  .submit-button {
    width: 100%;
    margin-top: 1rem;
    background-color: var(--color-purple-main);
    color: var(--color-white);
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s, transform 0.2s;
  }

  .submit-button:hover {
    background-color: var(--color-purple-light);
    transform: translateY(-1px);
  }

  .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
  }

  .error .error-message {
    display: block;
  }

  .error .form-control {
    border-color: #ef4444;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 3.5rem;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
}

/* Extra Mobile Responsiveness (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  .hero-slider {
    min-height: 350px;
    height: 70vh;
  }
  .hero-slider .slide-content {
    padding: 15px;
    bottom: 10px;
    left: 5px;
    right: 5px;
    max-width: 95vw;
  }
  .hero-slider .slide-title {
    font-size: 1.25rem;
  }
  .hero-slider .slide-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .hero-slider .slide-button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  .hero-slider .slider-nav {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
  .hero-slider .slider-nav.prev {
    left: 0.5rem;
  }
  .hero-slider .slider-nav.next {
    right: 0.5rem;
  }
  .hero-slider .slider-dots {
    bottom: 1rem;
    gap: 0.5rem;
  }
  .scroll-indicator {
    bottom: 1rem;
  }
  .welcome {
    padding: 2rem 0;
  }
  .welcome h2 {
    font-size: 1.25rem;
  }
  .welcome p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .button-group {
    gap: 0.5rem;
  }
  .home-about {
    padding: 2rem 0;
  }
  .home-about-grid {
    gap: 1.5rem;
  }
  .home-about-content h2 {
    font-size: 1.1rem;
  }
  .home-about-content p {
    font-size: 0.95rem;
  }
  .stats-section {
    padding: 2rem 0;
    background-attachment: scroll;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .stat-item {
    padding: 1rem;
  }
  .stat-value {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 1rem;
  }
  .footer-grid {
    display: block;
  }
  .company-info, .quick-links, .connect {
    margin-bottom: 2rem;
    max-width: 100%;
  }
  .footer-map iframe {
    height: 120px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Ensure images and iframes never overflow */
img, iframe {
  max-width: 100%;
  height: auto;
}

/* Fix for modal and gallery on mobile */
@media (max-width: 480px) {
  .modal-content {
    padding: 0.5rem;
    max-width: 98vw;
  }
  #modal-image {
    max-height: 60vh;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .gallery-item {
    height: 160px;
  }
}

/* Top Bar Styles */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-purple-dark);
  height: 40px; /* Fixed height for consistency */
  display: flex;
  align-items: center;
  z-index: 1100;
  border-bottom: 1px solid var(--color-gray-300);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Update Navbar positioning to account for top bar */
.navbar {
  position: fixed;
  top: 40px; /* Exactly match top bar height */
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px; /* Fixed height for consistency */
  display: flex;
  align-items: center;
  background-color: var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-300);
}

/* Update page header padding to account for both bars */
.page-header {
  padding-top: calc(40px + 74px); /* top bar + navbar height */
  padding-bottom: 2rem;
  background-color: var(--color-gray-200);
  text-align: center;
}

/* Media query for mobile adjustments */
@media (max-width: 767px) {
  .top-bar {
    height: 32px; /* Slightly reduced height for mobile */
  }
  
  .navbar {
    top: 32px; /* Match reduced top bar height */
    height: 50px; /* Slightly reduced height for mobile */
  }
  
  .page-header {
    padding-top: calc(32px + 50px); /* Adjusted for mobile heights */
  }
  
  .top-bar-text {
    display: none; /* Hide text labels on mobile */
  }
  
  .top-bar-item i {
    margin-right: 0; /* Remove icon spacing when text is hidden */
  }
}

/* Top Bar Styles */
.top-bar {
  width: 100%;
  background: var(--color-purple-dark, #3a2067);
  color: var(--color-white, #fff);
  font-family: var(--font-family, 'Poppins', sans-serif);
  font-size: 0.97rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-gray-300, #e0e0e0);
  z-index: 1001;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-white, #fff);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.top-bar-item:hover {
  color: var(--color-purple, #8B5CF6);
}
.top-bar-item i {
  font-size: 1.1rem;
  min-width: 1.1rem;
  text-align: center;
}
.top-bar-text {
  display: inline-block;
}
@media (max-width: 900px) {
  .top-bar-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .top-bar-left, .top-bar-right {
    justify-content: flex-start;
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .top-bar {
    font-size: 1rem;
    padding: 0.25rem 0;
  }
  .top-bar-content {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }
  .top-bar-left, .top-bar-right {
    gap: 0.5rem;
  }
  .top-bar-text {
    display: none;
  }
  .top-bar-item {
    padding: 0.3rem;
    font-size: 1.1rem;
    border-radius: 50%;
    background: transparent;
    min-width: 2.2rem;
    min-height: 2.2rem;
    justify-content: center;
  }
}
/* Ensure icons remain clear and tappable */
.top-bar-item i {
  pointer-events: none;
}

.top-bar-item i {
  pointer-events: none;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
