/* Reset and Base Styles */
:root {
  --primary-color: #033158;
  /* Accent color */
  --secondary-color: #f7a614;
  /* A golden yellow for contrast */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9fbfd;
  --bg-dark: #111111;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 15px 40px rgba(3, 49, 88, 0.15);
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #555;
}

/* Reusable Components */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(247, 166, 20, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Header & Navigation */
@keyframes slideDownNavbar {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease, box-shadow 0.3s ease;
  animation: slideDownNavbar 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.header.hide {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

@keyframes staggeredFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  animation: staggeredFadeIn 0.5s ease both;
}

.nav-links a:nth-child(1) { animation-delay: 0.1s; }
.nav-links a:nth-child(2) { animation-delay: 0.2s; }
.nav-links a:nth-child(3) { animation-delay: 0.3s; }
.nav-links a:nth-child(4) { animation-delay: 0.4s; }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.nav-links a:hover {
  color: var(--primary-color);
  animation: linkBounce 1.5s ease-in-out infinite;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--primary-color);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--text-light);
  text-align: center;
  z-index: 1;
  padding-top: 80px;
  overflow: hidden;
  /* Offset for sticky header */
}

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

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

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

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(3, 49, 88, 0.6), rgba(0, 0, 0, 0.5));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero p {
  font-size: 1.25rem;
  color: #eeeeee;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Destinations Section */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.destination-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition-fast);
  position: relative;
}

.destination-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.destination-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

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

.destination-content {
  padding: 1.5rem;
}

.destination-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.icon-emoji {
  font-size: 1.5rem;
}

/* About Section */
.about-flex {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
}

/* Features/Stats Section */
.features {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

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

.feature-item i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
  background-color: #fcfcfc;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(3, 49, 88, 0.1);
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* Footer Section */
.footer {
  background-color: #011E36;
  color: white;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  transition: var(--transition-fast);
  color: #ccc;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.9rem;
}

/* Page Headers */
.page-header {
  padding: 150px 0 80px;
  background: var(--primary-color);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/images/kandy.jpg') no-repeat center center/cover;
  opacity: 0.2;
}

.page-header h1 {
  position: relative;
  z-index: 1;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 900px) {

  .about-flex,
  .contact-grid {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition-fast);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
  }
}