/* ============================================
   AQUA HAVEN MALDIVES - Luxury Resort Theme
   Inspired by Meeru.com
   ============================================ */

/* CSS Variables */
:root {
  --color-ocean: #006994;
  --color-ocean-light: #4a90a4;
  --color-sand: #f5f0e8;
  --color-sand-dark: #e8e0d4;
  --color-gold: #c9a96e;
  --color-gold-light: #d4b87a;
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--color-sand);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}

.site-header.scrolled .nav-logo-text,
.site-header.scrolled .nav-link {
  color: var(--color-dark);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-logo-text span {
  color: var(--color-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: var(--transition);
}

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

.nav-cta {
  padding: 12px 28px;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 105, 148, 0.7) 0%,
    rgba(0, 105, 148, 0.4) 50%,
    rgba(201, 169, 110, 0.3) 100%
  );
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #f5e6c8;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: 4px;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  border: 2px solid var(--color-gold);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-cta:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease infinite;
}

.hero-scroll svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-white);
  opacity: 0.7;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */

.section {
  padding: 120px 0;
}

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

.section-white {
  background: var(--color-white);
}

.section-dark {
  background: var(--color-ocean);
  color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
  padding: 0 40px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-gold);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  line-height: 1.2;
}

.section-title.white {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.section-subtitle.white {
  color: rgba(255, 255, 255, 0.8);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   FEATURED INTRO
   ============================================ */

.intro-section {
  padding: 100px 0;
  text-align: center;
}

.intro-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.intro-text em {
  font-style: italic;
  color: var(--color-ocean);
}

/* ============================================
   ACCOMMODATIONS GRID
   ============================================ */

.accommodations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.accommodation-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 500px;
}

.accommodation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.accommodation-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--color-white);
}

.accommodation-overlay h3 {
  color: var(--color-white);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.accommodation-overlay p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 16px;
}

.accommodation-link {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.accommodation-link:hover {
  gap: 16px;
}

/* ============================================
   EXPERIENCES
   ============================================ */

.experiences-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.experience-item {
  position: relative;
  height: 400px;
  overflow: hidden;
}

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

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

.experience-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: var(--color-white);
}

.experience-overlay h4 {
  color: var(--color-white);
  font-size: 1.4rem;
}

/* ============================================
   FEATURES LIST
   ============================================ */

.features-section {
  padding: 120px 0;
}

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

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-ocean);
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-ocean-light) 100%);
  opacity: 0.95;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-white);
  margin-bottom: 40px;
  font-style: italic;
}

.testimonial-author {
  color: var(--color-gold-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-section {
  padding: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: var(--transition);
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
  padding: 100px 0;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 500px;
  margin: 40px auto 0;
  border: 1px solid var(--color-sand-dark);
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form button {
  padding: 16px 32px;
  background: var(--color-ocean);
  color: var(--color-white);
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--color-ocean-light);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  justify-items: end;
}

.footer-brand {
  justify-self: start;
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.footer-brand h3 span {
  color: var(--color-gold);
}

.footer-brand p {
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}

.footer-social a:hover {
  border-color: var(--color-gold);
  background: var(--color-gold);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
  display: block;
  margin: auto;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-contact li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact li svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-gold);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--color-gold);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .experiences-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 80px 40px;
    gap: 30px;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-link {
    color: var(--color-dark);
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .accommodations-grid {
    grid-template-columns: 1fr;
  }
  
  .experiences-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
