/* Enhanced Logo Animations */
@keyframes logoGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.6);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

.logo-container {
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-container:hover {
  animation: logoGlow 2s ease-in-out infinite;
}

/* Hero Slide Transitions for 5 Images */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  transform: scale(1.05);
}

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

/* Responsive Design Improvements */
@media (max-width: 640px) {
  .glass-card {
    padding: 1.5rem !important;
    margin: 0 1rem;
  }
  .hero-large-desc {
    font-size: 0.95rem !important;
    line-height: 1.4rem !important;
  }
  .service-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .application-type-btn {
    width: 100px;
    height: 100px;
  }
  .country-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    min-width: 70px;
  }
}

@media (max-width: 768px) {
  .glass-card {
    padding: 2rem !important;
  }
  .service-glass {
    padding: 1.5rem !important;
  }
  .destination-glass img {
    height: 48 !important;
  }
}

@media (min-width: 1024px) {
  .glass-card {
    padding: 3rem !important;
  }
}

/* Clean Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 2rem 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(20, 83, 45, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

/* Animated Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(234, 179, 8, 0.6);
  border-radius: 50%;
  animation: particleFloat 8s infinite linear;
}

.particle-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.particle-2 {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}
.particle-3 {
  top: 40%;
  left: 20%;
  animation-delay: 4s;
}
.particle-4 {
  top: 80%;
  left: 60%;
  animation-delay: 6s;
}
.particle-5 {
  top: 30%;
  left: 90%;
  animation-delay: 1s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0;
  }
}

/* Content */
.hero-container {
  position: relative;
  z-index: 4;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

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

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

/* Title */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.gradient-text {
  background: linear-gradient(135deg, #eab308 0%, #f59e42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-description strong {
  color: #eab308;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #eab308 0%, #f59e42 100%);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 179, 8, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #eab308;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    padding: 5rem 0 1rem 0;
    margin-top: 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

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

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

  .hero-stats {
    gap: 1.5rem;
  }
}
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  animation: kenburns 16s ease-in-out infinite alternate;
  background-color: #222; /* fallback for image load error */
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-2%, -2%);
  }
}
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  z-index: 1;
}
.hero-headline {
  margin: 0 auto;
  letter-spacing: 0.05em;
  font-size: 2.1rem;
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  animation: fadeInHero 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.navbar-blur {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: background 0.4s, box-shadow 0.4s;
  box-shadow: 0 2px 16px 0 rgba(20, 83, 45, 0.08);
}
.hero-large-desc {
  font-size: 1.1rem;
  line-height: 1.7rem;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px -8px rgba(20, 83, 45, 0.16),
    0 4px 16px -8px rgba(234, 179, 8, 0.1);
  border: 2px solid #eab308;
  background: rgba(255, 255, 255, 0.22);
  filter: none;
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
}
.transition-all {
  transition: all 0.3s ease;
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px) saturate(160%);
  border-radius: 1.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 24px 0 rgba(20, 83, 45, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.03) rotateZ(-0.5deg);
  box-shadow: 0 16px 32px -8px rgba(20, 83, 45, 0.14),
    0 4px 16px -8px rgba(234, 179, 8, 0.08);
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}
.service-glass {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(160%);
  border-radius: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 24px 0 rgba(20, 83, 45, 0.1);
  transition: box-shadow 0.3s, border 0.3s, transform 0.3s;
  position: relative;
  z-index: 1;
}
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}
.destination-glass {
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px) saturate(160%);
  border-radius: 1.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 24px 0 rgba(20, 83, 45, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.services-animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, #14532d 0%, #eab308 100%, #f59e42 100%);
  background-size: 200% 200%;
  animation: servicesGradientMove 12s ease-in-out infinite;
  opacity: 0.13;
  pointer-events: none;
}
@keyframes servicesGradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px 0 rgba(20, 83, 45, 0.1);
}
.service-icon.study {
  background: linear-gradient(135deg, #2563eb 60%, #eab308 100%);
  color: #fff;
}
.service-icon.work {
  background: linear-gradient(135deg, #059669 60%, #f59e42 100%);
  color: #fff;
}
.service-icon.tour {
  background: linear-gradient(135deg, #f59e42 60%, #14532d 100%);
  color: #fff;
}
.service-icon.visa {
  background: linear-gradient(135deg, #eab308 60%, #2563eb 100%);
  color: #fff;
}
.service-icon.accommodation {
  background: linear-gradient(135deg, #059669 60%, #eab308 100%);
  color: #fff;
}
.service-icon.scholarship {
  background: linear-gradient(135deg, #2563eb 60%, #f59e42 100%);
  color: #fff;
}
.country-badge {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
  outline: none;
  display: inline-block;
  text-align: center;
  min-width: 80px;
}
.country-badge:hover,
.country-badge:focus {
  background: #14532d;
  color: #fff;
  border-color: #14532d;
  box-shadow: 0 6px 18px 0 rgba(20, 83, 45, 0.25);
  transform: translateY(-4px) scale(1.06);
}
.application-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
}
.application-type-btn:hover {
  border-color: #14532d;
  color: #14532d;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px 0 rgba(20, 83, 45, 0.15);
}
.application-type-btn.active {
  border-color: #14532d;
  background: #14532d;
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(20, 83, 45, 0.25);
}
.application-form {
  transition: all 0.3s ease;
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
  .application-type-btn {
    min-height: 100px;
    min-width: 100px;
  }

  .country-badge {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .glass-card {
    margin: 0 0.5rem;
  }

  .service-glass {
    margin-bottom: 1rem;
  }
}

/* Improved modal responsiveness */
@media (max-width: 640px) {
  #all-destinations-modal .bg-white {
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  #all-destinations-modal .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  #all-destinations-modal .grid {
    grid-template-columns: 1fr !important;
  }
}

/* Scroll Reveal Animations - Section Headings Only */
.reveal-heading {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.reveal-heading-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #059669; /* Forest green color only */
  z-index: 10;
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-heading-cover.revealed {
  transform: translateX(100%); /* Changed to left-to-right reveal */
}

.reveal-heading-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.3s;
}

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

/* All headings use the same forest green color */
.reveal-heading-cover.services-heading,
.reveal-heading-cover.about-heading,
.reveal-heading-cover.global-heading,
.reveal-heading-cover.contact-heading,
.reveal-heading-cover.partnerships-heading,
.reveal-heading-cover.faq-heading {
  background: #059669; /* Forest green color only */
}

/* Remove the old section-wide reveal styles */
.reveal-section {
  position: relative;
  overflow: visible;
}

.reveal-cover {
  display: none;
}

.reveal-content {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal-item {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Smooth scrolling for better reveal experience */
html {
  scroll-behavior: smooth;
}

/* Fix any layout issues */
body {
  margin: 0;
  padding: 0;
  padding-top: 80px;
  overflow-x: hidden;
}

/* Ensure proper spacing */
section {
  position: relative;
  width: 100%;
}

/* Loading state for reveal animations */
.reveal-section.loading {
  opacity: 0;
}

.reveal-section.loaded {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

/* Navigation Bar Styling */
nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Navbar brand styling */
.navbar-brand {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  text-decoration: none;
  color: inherit;
  transform: scale(1.02);
}

.navbar-brand:focus {
  outline: none;
  text-decoration: none;
  color: inherit;
}
