/* ==========================================
   CSS RESET 2026 - Modern Baseline
   ========================================== */

/* 1. Universal Reset & Box Sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Root Defaults */
:root {
  /* Color Palette */
  --color-primary: #4bd4db;
  --color-dark: #0b0b0b;
  --color-light: #ffffff;
  --color-text: #e8e8e8;
  --color-text-muted: #a0a0a0;
  --color-white-translucent: rgba(255, 255, 255, 0.3);
  --color-white-translucent-hover: rgba(255, 255, 255, 0.5);

  /* Spacing System */
  --space-xss: 0.3rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 30px;

  /* Typography */
  --font-base:
    "Aeonik TRIAL", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-cursive: "Bonheur Royale", cursive;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-loose: 1.8;

  /* Container */
  /* --container-max: 1400px; */
  --container-max: 95dvw;
  --container-padding: 2rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* 3. Document & Body Setup */
html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 400;
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-dark);
  overflow-x: hidden;
}

/* 4. Typography Reset */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  text-wrap: balance;
}

p,
li,
figcaption {
  max-width: 65ch;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* 5. List Reset */
ul,
ol {
  list-style: none;
}

/* 6. Media Elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

/* 7. Form Elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
  user-select: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

textarea {
  resize: vertical;
}

/* 8. Table Reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* 9. Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  margin-left: auto;
  margin-right: auto;
}

/* 10. Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-play-state: paused !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 11. Dark mode color scheme support */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* 12. High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #00d9ff;
  }
}

/* ==========================================
   End CSS Reset
   ========================================== */

/* COMMON */
.font-cursive {
  font-family: var(--font-cursive);
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color var(--transition-base);
}

.btn--white {
  background-color: var(--color-light);
  color: var(--color-dark);
}

.btn--white:hover {
  background-color: #ffffffcc;
}

.btn--white-translucent {
  background-color: var(--color-white-translucent);
  color: var(--color-light);
}

.btn--white-translucent:hover {
  background-color: var(--color-white-translucent-hover);
}
/* COMMON END */

/* HEADER */
.header {
  height: 100dvh;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

.header-spacer {
  height: 100dvh;
}

.header__container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc(100dvw - var(--space-sm) * 7);
  height: calc(100dvh - var(--space-sm) * 4);
  border-radius: 0;
  padding: var(--space-md) var(--space-sm);
  position: relative;
  transform: scale(1.05);
  transform-origin: center center;
  will-change: transform, border-radius;
}

.header__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
  border-radius: var(--radius-xl);
}

.header__top-section {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  gap: var(--space-md);
}

.header__actions {
  display: flex;
  gap: var(--space-md);
}

.header__hero-title {
  font-size: 7rem;
  font-weight: 400;
  line-height: 0.8;
}

.header__hero-title--top {
  display: block;
  margin-bottom: var(--space-sm);
}

.header__hero-title--italic {
  font-size: 10rem;
}

.header__hero-description {
  margin-top: var(--space-md);
  max-width: 350px;
}

.header__hero-description {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--space-sm);
}

.header__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.header__time {
  opacity: 0.5;
}

.header__sound {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header__footer-showreel-btn {
  height: 110px;
  width: 180px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../images/meditation-poster.jpg");
  background-size: cover;
  background-position: center;
}

.header__footer-showreel-btn:hover {
  filter: brightness(1.2);
}
/* HEADER END*/

/* SHOWREEL MODAL */
.showreel-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: rgba(0, 0, 0, 0.95);
  border: none;
  padding: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.showreel-modal[open] {
  opacity: 1;
  visibility: visible;
}

.showreel-modal::backdrop {
  background: rgba(0, 0, 0, 0.95);
}

.showreel-modal__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--space-lg);
}

.showreel-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white-translucent);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--color-light);
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-base);
  z-index: 10;
}

.showreel-modal__close:hover {
  background: var(--color-white-translucent-hover);
  transform: rotate(90deg);
}

.showreel-modal__video {
  width: 100%;
  max-width: 1200px;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* Video player custom styling */
.showreel-modal__video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Animation for modal opening */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.showreel-modal[open] .showreel-modal__content {
  animation: modalFadeIn 0.4s ease-out;
}
/* SHOWREEL MODAL END */

/* FEATURED EXPERIENCES */
.featured__top-section {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.featured__title {
  font-size: 3rem;
  display: flex;
  flex-direction: column;
  line-height: 0.6;
  font-size: 60px;
}

.featured__title--top {
  font-size: 90px;
  line-height: 0.5;
}

.featured__title--bottom {
  font-weight: 400;
  padding-left: 60px;
}

.featured__tabs {
  display: flex;
  gap: var(--space-sm);
}

.featured__tab-btn {
  padding-inline: var(--space-md);
}

.featured__tab-btn--active {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

/* Carousel Container */
.featured__carousel {
  position: relative;
}

.featured__carousel-wrapper {
  overflow: hidden;
}

.featured__places {
  display: flex;
  gap: var(--space-md);
}

.featured__place {
  flex: 0 0 calc((100% - var(--space-md) * 2) / 3);
  display: flex;
  flex-direction: column;
  padding: var(--space-sm);
  background-image: url("../images/featured-place-bg.png");
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-lg);
  height: 550px;
}

/* Carousel Controls */
.featured__carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  gap: var(--space-md);
}

.featured__carousel-progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.featured__carousel-progress-bar {
  height: 100%;
  background: var(--color-light);
  width: 50%;
  transition: width var(--transition-base);
}

.featured__carousel-nav {
  display: flex;
  gap: var(--space-sm);
}

.featured__carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--color-light);
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.featured__carousel-btn:hover:not(:disabled) {
  opacity: 0.7;
}

.featured__carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.featured__carousel-btn svg {
  width: 44px;
  height: 44px;
}

.featured__place-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.featured__place-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.featured__place-actions-btn {
  background-color: transparent;
  border: 1px solid var(--color-light);
}

.featured__place-actions-btn:hover {
  background-color: var(--color-white-translucent-hover);
}

.featured__place-stats {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.featured__place-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xss);
}

.featured__place-stat-icon {
  width: 36px;
}

svg.featured__place-stat-icon {
  width: 44px;
  height: 44px;
}

.featured__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.featured__name {
  font-size: 40px;
  margin-bottom: var(--space-xss);
}

.featured__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: var(--space-xs);
  background-color: var(--color-primary);
  color: var(--color-dark);
}

.featured__link:hover {
  filter: brightness(1.2);
}

.featured__link > svg {
  width: 20px;
  height: 20px;
}
/* FEATURED EXPERIENCES END */

/* STONE BACKGROUND WRAPPER */
.stone-bg-wrapper {
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url("../images/stone-bg.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
  padding-block: var(--space-lg);
  margin-top: 0;
  z-index: 2;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

/* LEAVE BACKPACK */
.leave-backpack {
  margin-top: 10rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leave-backpack--right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.leave-backpack__title {
  font-size: 70px;
  text-align: left;
  width: 100%;
}

.leave-backpack__title > p {
  line-height: 0.9;
  text-align: left !important;
  display: block !important;
  width: 100%;
}

.leave-backpack__title .hero-letter {
  text-align: left;
}

.leave-backpack__title--cursive {
  font-family: var(--font-cursive);
  font-size: 100px;
  font-weight: 400;
}

.leave-backpack__description {
  align-self: center;
  max-width: 450px;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--space-md);
}

.leave-backpack__description p {
  line-height: 1.1;
}

.leave-backpack__description .btn {
  padding-inline: var(--space-md);
}

.leave-backpack__right-img {
  align-self: flex-end;
  margin-top: 140px;
  max-width: 360px;
}

/* Image Reveal Animation */
.img-reveal {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.img-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  clip-path: var(--clip-path, inset(0 0 0 0));
  will-change: clip-path;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.img-reveal--right {
  align-self: flex-end;
}
/* LEAVE BACKPACK END */

/* CONNECT WITH NATURE */
.connect__title-container {
  margin-top: 10rem;
  display: flex;
  gap: 100px;
}

.connect__img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
}

.connect__title {
  font-size: 120px;
  line-height: 0.9;
  display: flex;
  flex-direction: column;
  font-weight: 400;
}

.connect__title--cursive {
  font-family: var(--font-cursive);
  font-size: 170px;
  font-weight: 400;
  line-height: 0.5;
}

.connect__description-container {
  margin-top: var(--space-md);
  display: flex;
  justify-content: flex-end;
}

.connect__description {
  max-width: 300px;
  line-height: 1.1;
}
/* CONNECT WITH NATURE END */

/* ==========================================
   HERO TEXT ANIMATION
   ========================================== */
.hero-letter {
  display: inline-block;
  will-change: transform, opacity;
}

.header__hero-title--top {
  display: block;
  overflow: hidden;
}

.header__hero-title--bottom {
  display: block;
  overflow: hidden;
}

.header__hero-title--bottom .header__hero-title--italic {
  display: inline;
}

.featured__title--top,
.featured__title--bottom {
  display: block;
  overflow: visible;
  padding-block: 0.1em;
}
