/* Modern Color Palette */
:root {
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --secondary: #f72585;
  --accent: #4cc9f0;
  --dark: #14213d;
  --light: #f8f9fa;
  --gray: #adb5bd;
  --dark-gray: #495057;
}

/* Base Styles */
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  padding-top: 80px;
  scroll-behavior: smooth;
}

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

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  color: var(--dark);
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--dark-gray);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: 
    linear-gradient(135deg, rgba(20, 33, 61, 0.85) 0%, rgba(67, 97, 238, 0.85) 100%),
    url('https://source.unsplash.com/random/1920x1080/?travel,landscape') no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: rgb(255, 255, 255);
  text-align: center;
  position: relative;
  overflow: hidden;
}


.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(transparent, var(--light));
  z-index: 1;
}

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

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Gallery Section */
.gallery-section {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  aspect-ratio: 1/1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.gallery-item .overlay h5 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* Video Cards */
.video-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background-color: white;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.video-card .ratio {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.video-card iframe {
  border: none;
}

.video-card .card-body {
  padding: 1.5rem;
}

.video-card .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.video-card .card-text {
  color: var(--dark-gray);
}

/* Travel Cards */
.travel-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.travel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.travel-card img {
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.travel-card:hover img {
  transform: scale(1.05);
}

.travel-card .card-body {
  padding: 1.5rem;
}

.travel-card .card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.travel-card .card-text {
  color: var(--dark-gray);
  margin-bottom: 1.25rem;
}

.travel-card .badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Portfolio Items */
.portfolio-item {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.portfolio-item img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item .card-body {
  padding: 1.5rem;
}

.portfolio-item .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  background-color: var(--dark);
  color: white;
}

.modal-body {
  padding: 0;
}

.modal-footer {
  border-top: none;
  background-color: #f8f9fa;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
}

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

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

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background-color: rgba(20, 33, 61, 0.95) !important;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  color: rgba(255,255,255,0.8) !important;
  position: relative;
}

.nav-link:hover {
  color: white !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 50%;
}

.nav-link.active {
  color: white !important;
}

.nav-link.active::after {
  width: 50%;
}

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

footer h5 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

footer a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

footer a:hover {
  color: var(--accent) !important;
  transform: translateX(5px);
}

footer .social-links a {
  font-size: 1.2rem;
  margin-right: 1rem;
}

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

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-section p {
    font-size: 1.2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.6rem;
  }
  
  .gallery-container {
    grid-template-columns: 1fr;
  }
}


.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

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


.hero-section .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Text animation */
.hero-content h1 {
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

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



@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* For video background on mobile */
    .hero-media video {
        display: none;
    }
    
    .hero-media .fallback-image {
        display: block;
    }
}