/*
 * Global stylesheet for the ghumoowithus travel website.  
 *
 * This file defines a cohesive colour palette, responsive layouts and
 * cinematic animations to give the site a polished, high‑end feel.  
 * Each section is built using modern CSS features like flexbox and grid
 * to ensure it adapts gracefully across devices.  
 */

/* Colour palette */
:root {
  --primary-color: #ff6b6b;        /* vibrant coral used for highlights */
  --secondary-color: #0f172a;      /* rich dark blue for backgrounds */
  --accent-color: #ffd166;         /* warm gold accent */
  --light-color: #f5f5f5;          /* off‑white for light elements */
  --text-color: #f0f4f8;           /* very light grey for main text */
  --muted-text: #94a3b8;           /* muted blue/grey for secondary text */
  --shadow-color: rgba(0, 0, 0, 0.4); /* subtle drop shadow */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light-color);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--light-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-color);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--light-color);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Show/hide nav menu on small screens */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 60px);
    background: rgba(15, 23, 42, 0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Slightly lighter gradient so more of the background image shows through */
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.hero .content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 1rem;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--muted-text);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--primary-color);
  color: var(--light-color);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.btn.small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* Section styling */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--muted-text);
  font-size: 1rem;
}

/* Destinations grid */
.destinations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 16px var(--shadow-color);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
}

.card .overlay-card {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 10%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  color: var(--light-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: backdrop-filter 0.4s ease;
}

.card:hover .overlay-card {
  backdrop-filter: blur(2px);
}

.card .overlay-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card .overlay-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted-text);
}

/* About section */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-container .about-text {
  flex: 1 1 400px;
}

.about-container .about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-container .about-text p {
  font-size: 1rem;
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.about-container .about-image {
  flex: 1 1 400px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 16px var(--shadow-color);
}

.about-container .about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact form */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-color);
  font-size: 1rem;
  resize: vertical;
  transition: background 0.3s ease, border 0.3s ease;
}

.contact-container input:focus,
.contact-container textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.contact-container button {
  align-self: flex-start;
}

/* Header section used on inner pages */
.header-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.header-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Adjust overlay on header sections to reveal more of the photo */
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.header-section .content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--light-color);
  animation: fadeInUp 1s ease forwards;
}

.header-section.small {
  height: 40vh;
}

.header-section h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.header-section p {
  font-size: 1.1rem;
  color: var(--muted-text);
}

/* Footer */
footer {
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted-text);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  margin-top: 4rem;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Keyframes for hero text */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}