/* ======================================================
   Explore Sri Lanka - Custom CSS Styles
   ====================================================== */

/* Base Styles
   --------------------------------------------------- */
:root {
  --primary-color: #05a3b7;
  --secondary-color: #037ade;
  --accent-color: #f4b350;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #222;
  --light-bg: #f8fbfd;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --safe-area-inset-top: env(safe-area-inset-top);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
  --safe-area-inset-left: env(safe-area-inset-left);
  --safe-area-inset-right: env(safe-area-inset-right);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Scroll Transitions
   --------------------------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

/* Content Sections
   --------------------------------------------------- */
.content-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s ease;
}

.bg-light {
  background-color: var(--light-bg);
}

.section-accent {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin-bottom: 20px;
  position: relative;
  transition: width 0.5s ease;
}

.section-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  background: var(--accent-color);
  animation: none;
  opacity: 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-color);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.section-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #666;
  margin-bottom: 50px;
  transition: color 0.3s ease;
}

.section-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Welcome Section
   --------------------------------------------------- */
.greeting {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.2em;
  position: relative;
}

.greeting::after {
  content: '🙏';
  position: absolute;
  font-size: 0.8rem;
  top: -5px;
  right: -15px;
  animation: namaste 3s ease-in-out infinite;
}

.welcome-text {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.8;
}

/* Map Container
   --------------------------------------------------- */
.map-container {
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 260px;
}

.map-container.animate {
  opacity: 1;
  transform: translateX(0);
}

.map-container:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.map-marker {
  position: absolute;
  top: 45%;
  left: 72.5%;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  transform: scale(0);
  box-shadow: 0 0 0 5px rgba(244, 179, 80, 0.3);
  animation: pulse 2s infinite, markerAppear 1s forwards 0.5s;
}

/* Image Frame
   --------------------------------------------------- */
.image-frame {
  position: relative;
  padding: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: #fff;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s ease;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 200px;
}

.image-frame.animate {
  opacity: 1;
}

.image-frame:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.image-frame img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.image-accent {
  display: none; /* Hide the background square symbol */
}

/* Geography Section
   --------------------------------------------------- */
.geography-facts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 20px;
}

.fact-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.fact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.fact-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.fact-text {
  font-weight: 200;
}

/* Image Gallery
   --------------------------------------------------- */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-gallery.animate {
  opacity: 1;
  transform: translateX(0);
}

.gallery-image {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  aspect-ratio: 4/3;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-image:hover img {
  transform: scale(1.1);
}

/* Ceylon Section
   --------------------------------------------------- */
.ceylon-content {
  max-width: 910px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
              transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
}

.ceylon-content p {
  text-align: center !important;
}

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

.highlight-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: black !important;
  margin-top: 20px;
  position: relative;
  display: inline-block;
}

.highlight-text::before {
  display: none;
}

/* Experiences Gallery
   --------------------------------------------------- */
.experiences-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.tilt-card {
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  transition: box-shadow 0.3s ease;
  position: relative;
}

.tilt-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-content {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tilt-card:hover .card-content {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.card-front {
  background: var(--primary-color);
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tilt-card:hover .card-front img {
  transform: scale(1.1);
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  color: white;
}

.back-content {
  z-index: 1;
}

.back-content h4 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.back-content h4:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: white;
  transition: width 0.3s ease;
}

.tilt-card:hover .back-content h4:after {
  width: 100%;
}

.back-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.2s;
}

.tilt-card:hover .back-content p {
  opacity: 1;
  transform: translateY(0);
}

.shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

/* Highlights Section
   --------------------------------------------------- */
.highlight-tabs {
  display: flex;
  justify-content: center;
  border: none !important;
  margin-bottom: 40px;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.highlight-tabs.animate {
  opacity: 1;
}

.highlight-tabs .nav-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.highlight-tabs.animate .nav-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.1s * var(--item-index, 0));
}

.highlight-tabs .nav-item:nth-child(1) { --item-index: 1; }
.highlight-tabs .nav-item:nth-child(2) { --item-index: 2; }
.highlight-tabs .nav-item:nth-child(3) { --item-index: 3; }

.highlight-tabs .nav-link {
  border: 0 !important;
  padding: 15px 25px;
  margin: 0 5px;
  color: var(--text-color);
  background: white;
  border-radius: 12px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  min-height: 44px; /* Apple minimum touch target */
  text-decoration: none !important;
}

.highlight-tabs .nav-link:hover,
.highlight-tabs .nav-link:focus {
  transform: translateY(-5px);
  color: var(--primary-color);
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 0 !important;
  outline: none !important;
}

.highlight-tabs .nav-link span {
  text-decoration: none !important;
}

.highlight-tabs .nav-link:hover span,
.highlight-tabs .nav-link:focus span {
  text-decoration: none !important;
}

.highlight-tabs .nav-link i {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.highlight-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none !important;
  border: 0 !important;
}

.highlight-tabs .nav-link.active span {
  text-decoration: none !important;
}

.highlight-tabs .nav-link.active i {
  color: white;
}

.highlight-tabs .nav-link::after,
.highlight-tabs .nav-link::before {
  display: none !important;
  content: none !important;
  border: none !important;
}

/* Highlight Content
   --------------------------------------------------- */
.highlight-content {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.highlight-content.animate {
  opacity: 1;
}

.tab-pane {
  transition: opacity 0.5s ease;
}

.tab-image {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.tab-text {
  padding: 20px;
}

.tab-text h3 {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.history-timeline {
  margin-top: 30px;
}

.timeline-item {
  display: flex;
  margin-bottom: 15px;
  position: relative;
  padding-left: 5px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 45px;
  width: 2px;
  height: 100%;
  background: #f0f0f0;
  display: none; /* Remove the vertical dots line */
}

.year {
  min-width: 110px;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
}

.year::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
  z-index: 1;
  display: none; /* Remove the dot */
}

.event {
  flex: 1;
  padding-left: 15px;
}

/* Religion Chart */
.religion-chart {
  margin-top: 30px;
}

.chart-item {
  margin-bottom: 15px;
}

.chart-fill {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  margin-bottom: 5px;
  text-align: right;
  font-weight: 200;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.chart-label {
  font-size: 0.9rem;
  color: #666;
}

/* Climate Info */
.climate-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.climate-season {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: var(--transition);
}

.climate-season:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.climate-season h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.climate-season p {
  font-size: 0.9rem;
  margin: 0;
}

/* Call to Action Section
   --------------------------------------------------- */
#explore-cta {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('./images/6.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  color: var(--light-text);
  text-align: center;
}

#explore-cta h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

#explore-cta p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--accent-color);
  color: var(--dark-bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(244, 179, 80, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 44px; /* Apple minimum touch target */
  min-width: 44px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  opacity: 0;
  transition: none;
}

.cta-button:hover {
  background: #f5c066;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(244, 179, 80, 0.4);
  color: var(--dark-bg);
}

.cta-button:hover::before {
  animation: none;
}

/* Scroll Down Button Animation
   --------------------------------------------------- */
.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light-text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeIn 1s forwards 1.5s;
  transition: var(--transition);
  min-height: 44px; /* Apple minimum touch target */
  padding: 10px;
}

.scroll-down i {
  font-size: 1.5rem;
  margin-top: 8px;
  animation: bounce 2s infinite;
}

.scroll-down:hover {
  color: var(--accent-color);
}

/* Hero Video Section
   --------------------------------------------------- */
#explore-hero {
  position: relative;
  height: 100vh;
  height: calc(100vh - var(--safe-area-inset-top));
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: #000; /* Fallback color */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

#youtube-player {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.video-controls {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 10;
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}

.pulse-attention {
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.sound-tooltip {
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.control-btn:hover .sound-tooltip {
  opacity: 1;
}

.control-btn:hover, .control-btn:focus {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.control-btn:active {
  transform: scale(0.95);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1000px;
  padding: 0 20px;
  margin-top: 40px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--light-text);
  text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.5s;
  line-height: 1.1;
}

.hero-title span {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  animation: none;
  opacity: 0;
}

.hero-tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--light-text);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.8s;
  letter-spacing: 0.3em;
}

.accent-text {
  color: var(--primary-color);
  font-weight: 200;
}

/* Image Slideshow
   --------------------------------------------------- */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
  animation: fadeEffect 1.5s;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.slideshow-nav {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.slide-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* Smooth Scrolling Transition for Anchor Navigation
   --------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust based on your header height */
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scaleIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes accentSlide {
  0% {
    left: 0;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 179, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(244, 179, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 179, 80, 0);
  }
}

@keyframes markerAppear {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes namaste {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-5px) rotate(10deg);
  }
}

@keyframes buttonShine {
  0% {
    opacity: 0;
    left: -50%;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    left: 150%;
  }
}

@keyframes fadeEffect {
  from {
    opacity: 0.7;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Media Queries
   --------------------------------------------------- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .experiences-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-section {
    padding: 70px 0;
  }
  
  .highlight-tabs .nav-link {
    padding: 12px 20px;
    margin: 0 5px;
  }
  
  .video-controls {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .image-frame, .map-container, .section-content {
    margin-bottom: 40px;
  }
  
  .experiences-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .tilt-card {
    height: 250px;
  }
  
  .climate-info {
    grid-template-columns: 1fr;
  }
  
  .section-content {
    margin-bottom: 30px;
  }
  
  .content-section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .content-section {
    padding: 50px 0;
  }
  
  .highlight-tabs {
    flex-direction: column;
    width: 100%;
  }
  
  .highlight-tabs .nav-link {
    margin: 5px 0;
    width: 100%;
  }
  
  .geography-facts {
    flex-direction: column;
  }
  
  .fact-item {
    width: 100%;
  }
  
  .image-gallery {
    grid-template-columns: 1fr;
  }
  
  .experiences-gallery {
    grid-template-columns: 1fr;
  }
  
  .video-controls {
    bottom: 15px;
    right: 15px;
  }
}

/* Additional fixes to completely remove all tab animations and lines */
.nav-tabs {
  border-bottom: 0 !important;
}

.nav-tabs .nav-link {
  border: 0 !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:active,
.nav-tabs .nav-link.active {
  border: 0 !important;
  outline: none !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.nav-tabs .nav-link::after,
.nav-tabs .nav-link::before {
  display: none !important;
  content: none !important;
  border: none !important;
}

/* Remove any potential Bootstrap focus outline */
.nav-link:focus {
  outline: none !important;
}

/* Override Bootstrap's focus borders */
.btn:focus, .btn.focus,
.nav-link:focus, .nav-link.focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Style the tab bar itself without any lines */
.highlight-tabs {
  display: flex;
  justify-content: center;
  border: none !important;
  margin-bottom: 40px;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Floating Islands Effect */
.floating-islands {
    position: relative;
    height: 180px;
    margin: 40px 0;
    overflow: hidden;
}

.island {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
    transform-origin: center bottom;
    animation: float 6s ease-in-out infinite;
}

.island-1 {
    width: 120px;
    height: 80px;
    background-image: url('./images/island1.png'), radial-gradient(circle at center, rgba(76,175,80,0.6) 0%, rgba(76,175,80,0) 70%);
    left: 15%;
    bottom: 20px;
    animation-delay: 0s;
}

.island-2 {
    width: 150px;
    height: 100px;
    background-image: url('./images/island2.png'), radial-gradient(circle at center, rgba(139,195,74,0.6) 0%, rgba(139,195,74,0) 70%);
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    animation-delay: 1s;
}

.island-3 {
    width: 130px;
    height: 90px;
    background-image: url('./images/island3.png'), radial-gradient(circle at center, rgba(205,220,57,0.6) 0%, rgba(205,220,57,0) 70%);
    right: 15%;
    bottom: 30px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* Fireflies effect */
.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fffc00;
    box-shadow: 0 0 10px 2px rgba(255, 252, 0, 0.8);
    animation: firefly 6s ease-in-out infinite;
    opacity: 0;
}

.firefly-1 {
    left: 20%;
    top: 30%;
    animation-delay: 0s;
}

.firefly-2 {
    left: 35%;
    top: 50%;
    animation-delay: 1s;
}

.firefly-3 {
    left: 55%;
    top: 20%;
    animation-delay: 2s;
}

.firefly-4 {
    left: 75%;
    top: 45%;
    animation-delay: 3s;
}

.firefly-5 {
    left: 90%;
    top: 35%;
    animation-delay: 4s;
}

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

/* Cloud effect */
.cloud {
    position: absolute;
    background-image: url('./images/cloud.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    animation: cloud-move 20s linear infinite;
}

.cloud-1 {
    width: 100px;
    height: 50px;
    top: 20px;
    left: -100px;
    animation-delay: 0s;
}

.cloud-2 {
    width: 80px;
    height: 40px;
    top: 40px;
    left: -80px;
    animation-delay: 10s;
}

@keyframes cloud-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* Creative Quote */
.quote-container {
    margin: 50px auto 30px;
    max-width: 800px;
    position: relative;
}

.creative-quote {
    position: relative;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 40px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    animation: quote-glow 5s ease-in-out infinite;
}

.creative-quote:before {
    content: "";
    position: absolute;
    top: -30px;
    left: 10px;
    font-size: 100px;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: 'Georgia', serif;
}

.creative-quote p {
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    color: #333;
    margin-bottom: 10px;
}

.creative-quote cite {
    display: block;
    text-align: right;
    font-weight: 200;
    color: var(--primary-color);
    font-style: normal;
}

@keyframes quote-glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.2); }
}

@media (max-width: 768px) {
    .floating-islands {
        height: 120px;
    }
    
    .island-1, .island-2, .island-3 {
        transform: scale(0.7);
    }
    
    .creative-quote {
        padding: 20px 25px;
    }
    
    .creative-quote p {
        font-size: 16px;
    }
}

/* Typing Animation Effect */
.typing-animation-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.typing-text {
    display: inline-block;
    white-space: nowrap;
    margin: 0;
    overflow: hidden;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, var(--primary-color) 0%, #ff9966 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    padding-right: 0.5rem;
}

.typing-cursor {
    position: relative;
    display: inline-block;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

.typing-cursor.typing-done {
    animation: fadeOut 1s forwards 1s;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

/* Enhancing the highlight-text for non-typing instances */
.highlight-text:not(.typing-text) {
      font-weight: 200;
      font-style: italic;
      color: black !important;
      text-align: center;
      margin-top: 1.5rem;
      font-size: 1.2rem;
      display: inline-block;
}

/* Interactive Map */
.interactive-map {
    position: relative;
    margin: 40px 0;
    height: 400px;
    background: url('./images/sri-lanka-outline.png') center no-repeat;
    background-size: contain;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a3d62, #60a3bc);
    z-index: 1;
}

/* Map Hotspots */
.map-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 3;
}

.hotspot-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.hotspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.hotspot-info {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 200px;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 4;
}

.hotspot-info:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.hotspot-info h4 {
    margin: 0 0 5px;
    color: var(--primary-color);
    font-size: 16px;
}

.hotspot-info p {
    margin: 0;
    font-size: 12px;
    color: #555;
}

.hotspot:hover .hotspot-dot {
    width: 14px;
    height: 14px;
    background-color: #fff;
}

.hotspot:hover .hotspot-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .interactive-map {
        height: 300px;
    }
    
    .hotspot-info {
        width: 150px;
        padding: 10px;
    }
} 