/* Custom CSS for Bhraman Travel Website */

:root {

  --white: #ffffff;
  --text-muted: #6c757d;
  --sky-blue: #769FBA;
  --ocean-blue: #2F6794;
  --charcoal-green: #2A3A41;
  --forest-moss: #4A594F;
  --deep-night: #0E1011;

  --primary-black: var(--deep-night);
  --secondary-gray: var(--charcoal-green);
  --light-gray: var(--forest-moss);
  --text-muted: var(--sky-blue);
}

/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-black); /* #0E1011 */
  color: var(--sky-blue); /* Soft contrast */
  line-height: 1.6;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
  background: var(--light-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

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

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-out;
}

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

.slide-left {
  animation: slideLeft 0.8s ease-out;
}

.slide-right {
  animation: slideRight 0.8s ease-out;
}

/* Animation Delays */
.animation-delay-200 {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.animation-delay-400 {
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.animation-delay-600 {
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

.animation-delay-800 {
  animation-delay: 0.8s;
  animation-fill-mode: both;
}

.animation-delay-1000 {
  animation-delay: 1s;
  animation-fill-mode: both;
}

/* Hero Section */
.hero-section {
  height: 80vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    url("images/uttarakhand.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-section-panch {
  height: 70vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1544735716-392fe2489ffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://images.unsplash.com/photo-1464822759844-d150baec4ba5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

/* Gradient Backgrounds */
.bg-gradient-dark {
  background: linear-gradient(135deg, var(--secondary-gray) 0%, var(--primary-black) 100%);
}

/* Button Styles */
.btn-hover {
   background-color: var(--ocean-blue);
  color: white;
  border: none;
  transition: all 0.3s ease;
  transition: all 0.3s ease;
  transform: scale(1);
}
.bg-section-dark {
  background-color: var(--charcoal-green); /* #2A3A41 */
}

.bg-section-light {
  background-color: var(--forest-moss); /* #4A594F */
}
.btn-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Card Styles */
.trek-card {
    background-color: var(--forest-moss);
  box-shadow: 0 8px 25px rgba(118, 159, 186, 0.4); /* sky-blue glow */
  transition: all 0.5s ease;
  transform: translateY(0);
}

.trek-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(118, 159, 186, 0.2); /* Sky-blue shadow */
}

/* Image Effects - Colorful Images Only */
.grayscale-image {
  filter: grayscale(0%) brightness(1.0) contrast(1.2) saturate(1.3);
  transition: all 0.5s ease;
}

.grayscale-image:hover {
  filter: grayscale(0%) brightness(1.1) contrast(1.3) saturate(1.6) hue-rotate(10deg);
  transform: scale(1.05);
}

.colorful-image {
  filter: grayscale(0%) brightness(1.0) contrast(1.2) saturate(1.3);
  transition: all 0.5s ease;
}

.colorful-image:hover {
  filter: grayscale(0%) brightness(1.1) contrast(1.3) saturate(1.6) hue-rotate(10deg);
  transform: scale(1.05);
}

.trek-image {
  overflow: hidden;
}

.trek-image img {
  filter: grayscale(0%) brightness(1.0) contrast(1.2) saturate(1.3);
  transition: all 0.5s ease;
}

.trek-card:hover .trek-image img {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(1.1) contrast(1.3) saturate(1.6) hue-rotate(5deg);
}

/* Gallery Styles */
.gallery-preview {
  overflow: hidden;
  border-radius: 0.5rem;
  position: relative;
}

.gallery-hover {
  filter: grayscale(0%) brightness(1.0) contrast(1.2) saturate(1.3);
  transition: all 0.5s ease;
}

.gallery-preview:hover .gallery-hover {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(1.1) contrast(1.3) saturate(1.6) hue-rotate(15deg);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
}

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

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

.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Service Icons */
.service-icon {
  width: 80px;
  height: 80px;
  transition: all 0.3s ease;
}

.service-icon:hover {
  background-color: var(--white) !important;
  transform: scale(1.1);
}

.service-icon:hover i {
  color: var(--primary-black) !important;
}

/* About Section Hover */
.about-hover {
  filter: grayscale(0%) brightness(1.0) contrast(1.2) saturate(1.3);
  transition: all 0.5s ease;
}

.about-hover:hover {
  transform: scale(1.02);
  filter: grayscale(0%) brightness(1.1) contrast(1.3) saturate(1.6) hue-rotate(8deg);
}

/* Temple Hover Effects */
.temple-hover {
  filter: grayscale(0%) brightness(1.0) contrast(1.2) saturate(1.3);
  transition: all 0.5s ease;
}

.temple-hover:hover {
  transform: scale(1.02);
  filter: grayscale(0%) brightness(1.1) contrast(1.3) saturate(1.6) hue-rotate(12deg);
}

/* Navigation Hover */
.navbar-nav .nav-link {
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Footer Hover */
.hover-white:hover {
   background-color: var(--deep-night); /* #0E1011 */
  transition: color 0.3s ease;
}

/* Form Styles */
.form-control:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Filter Button Styles */
.filter-btn {
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: var(--white);
  color: var(--primary-black);
  border-color: var(--white);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section,
  .hero-section-panch {
    height: 60vh;
    background-attachment: scroll;
  }

  .display-1 {
    font-size: 3rem;
  }

  .display-2 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section,
  .hero-section-panch {
    height: 50vh;
  }

  .display-1 {
    font-size: 2.5rem;
  }

  .display-2 {
    font-size: 2rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

/* Custom Badge Styles */
.badge {
    background-color: var(--sky-blue);
  color: var(--deep-night);
  border-radius: 20px;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

/* Modal Customization */
.modal-content {
  background-color: var(--primary-black);
  border: 1px solid var(--light-gray);
}

.modal-header {
  border-bottom: 1px solid var(--light-gray);
}

/* Contact Info Styling */
.contact-info .d-flex {
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.contact-info .d-flex:hover {
  background-color: var(--secondary-gray);
  transform: translateX(10px);
}

/* Trek Details Page Styles */
.breadcrumb {
  background: none;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: white !important;
}

/* Itinerary Timeline Styles */
.itinerary-timeline {
  position: relative;
}

.itinerary-timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #ffffff, transparent);
}

/* Trek Info Cards */
.trek-info-card {
  transition: all 0.3s ease;
}

.trek-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Booking Modal Enhancements */
.modal-content {
  backdrop-filter: blur(10px);
}

.form-control:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  background-color: #2d2d2d;
}

.form-select:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  background-color: #2d2d2d;
}

/* Inclusion/Exclusion Lists */
.inclusion-list li,
.exclusion-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.inclusion-list li:hover,
.exclusion-list li:hover {
  background-color: rgba(255, 255, 255, 0.05);
  padding-left: 1rem;
}

.inclusion-list li:last-child,
.exclusion-list li:last-child {
  border-bottom: none;
}

/* Trek Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Responsive Adjustments for Trek Details */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem;
  }

  .itinerary-timeline::before {
    left: 15px;
  }

  .trek-info-card .row > div {
    margin-bottom: 1rem;
  }
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Trek Details Hero Enhancement */
.trek-hero-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Price Card Animation */
.price-card {
  animation: pulse 2s infinite;
}

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