/* --- CSS Variables & Branding --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #080808;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --brand-orange: #ff5722;
  /* Call to action orange */
  --font-base: 'Poppins', sans-serif;
  --font-stylized: 'Brasika', 'Playfair Display', serif;
}

/* 
  NOTE: To use Brasika local font from dafont.com, 
  download it and place the .ttf file inside assets/fonts/Brasika.ttf 
*/
@font-face {
  font-family: 'Brastika';
  src: url('../assets/fonts/brastika.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* --- Base Resets --- */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-base);
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* Global Typography Smooth Glow */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li {
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
}

.text-orange {
  color: var(--brand-orange) !important;
}

.bg-orange {
  background-color: var(--brand-orange) !important;
}

.text-secondary-custom {
  color: var(--text-secondary);
}

.bg-black {
  background-color: #000000 !important;
}

/* Font Utilities */
.stylized {
  font-family: var(--font-stylized);
  font-style: italic;
}

.fw-normal {
  font-weight: normal !important;
}

.custom-letter-spacing {
  letter-spacing: -0.02em;
}

/* --- General Layout Classes --- */
.fullscreen-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Video Background Asset Helpers */
.bg-asset {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Placeholder background color if video fails */
  background-color: #111;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: brightness(0.7);
  /* slight darkening */
  z-index: 1;
}

.overlay-darker {
  backdrop-filter: brightness(0.5);
  /* darker for footer text readability */
}

/* Placeholders */
.asset-placeholder {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.fit-cover {
  object-fit: cover;
}

.fit-contain {
  object-fit: contain;
}

/* Provide aspect ratios for image/video containers so UI doesn't collapse */
.img-placeholder {
  min-height: 200px;
  /* fallback */
}

.proportion-4-5 {
  aspect-ratio: 4 / 5;
}

.proportion-9-16 {
  aspect-ratio: 9 / 16;
}

.proportion-1-2 {
  aspect-ratio: 1 / 2;
}


/* --- Specific Section Styling --- */

/* Hero Section */
#hero .content-layer {
  position: relative;
  z-index: 2;
}

.fixed-top-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-text {
  letter-spacing: -0.02em;
  font-family: 'brastika';
}

.hero-title {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.letter-spacing-wide {
  letter-spacing: 0.15em;
}

.scroll-down-indicator {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.3s;
}

.scroll-down-indicator:hover {
  opacity: 0.7;
}

.mouse-icon {
  width: 24px;
  height: 38px;
  border: 2px solid white;
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
}

.mouse-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background-color: white;
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* Perception Section */
#perception .section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
}

.max-w-300 {
  max-width: 300px;
}

/* Impact Section */
#impact {
  /* Using background primary down to black to blend smoothly */
  background: linear-gradient(to bottom, #111, #000);
}

#impact .impact-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.bottom-bg-asset {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Muting the top edge of video with a mask to blend with bg */
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
}

.bottom-gradient-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 2;
}


/* Services Section */
.service-card {
  transition: transform 0.4s ease;
  cursor: pointer;
  border-radius: 16px;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* Nudge the middle card down like in design */
@media (min-width: 768px) {
  .transform-y-custom {
    transform: translateY(40px);
  }

  .service-card:hover.transform-y-custom {
    transform: translateY(30px) scale(1.02);
  }
}

/* Philosophy Section */
.connecting-line {
  position: absolute;
  top: 50%;
  width: 50%;
  height: 1px;
  background-color: var(--text-secondary);
}

.line-left {
  left: 100%;
  transform: translateY(-50%);
}

.line-left::after,
.line-right::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
}

.line-left::after {
  right: 0;
}

.line-right {
  right: 100%;
  transform: translateY(-50%);
}

.line-right::after {
  left: 0;
}

.statues-center-text {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}


/* Portfolio Slider */
.hide-horizontal-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-horizontal-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 25s linear infinite;
  /* Double width to hold the clone seamlessly */
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  /* Flex shrink 0 prevents items from squishing */
  flex-shrink: 0;
}

.portfolio-item {
  width: 320px;
  height: 480px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
  cursor: pointer;
  flex-shrink: 0;
}

.portfolio-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 1.5rem / 2));
  }

  /* Negative 50% shifts exact length of one group */
}


/* Footer Section */
.glass-btn {
  background: rgba(255, 87, 34, 0.15) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 87, 34, 0.4) !important;
  color: #ffffff !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  letter-spacing: 2px;
}

.glass-btn:hover {
  background: rgba(255, 87, 34, 0.35) !important;
  border-color: rgba(255, 87, 34, 0.8) !important;
  box-shadow: 0 0 35px rgba(255, 87, 34, 0.4), 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-8px) scale(1.03);
}


/* --- CSS Animation Utilities --- */

/* Base class for elements waiting to be revealed */
.smooth-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

/* Revealed state triggered by JS */
.smooth-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay for inner elements, e.g. text inside revealed section */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

/* Dedicated fade in for the scroll prompt */
.fade-in-delayed {
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


/* ============================================================
   Packages Page
   ============================================================ */

/* --- Layout --- */
.packages-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 60px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

/* --- Scroll Container --- */
.package-scroll-container {
  display: flex;
  gap: 2rem;
  padding: 1rem 5vw 2rem;
  /* Hide scrollbar on mobile by default */
  scrollbar-width: none;
}

.package-scroll-container::-webkit-scrollbar {
  display: none;
}

/* --- Package Card --- */
.package-card {
  background: linear-gradient(145deg, #111111, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--brand-orange);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 87, 34, 0.2);
  border-color: rgba(255, 87, 34, 0.35);
}

.package-card:hover::before {
  opacity: 1;
}

/* --- Card Header --- */
.cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.cat-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
}

/* --- Tier Rows --- */
.tier {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.75rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tier:last-child {
  margin-bottom: 0;
}

.tier:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Advance tier highlight */
.tier--advance {
  border-color: rgba(255, 87, 34, 0.3);
}

.tier h4 {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

/* --- Prices --- */
.price-strike {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: #666;
  margin-right: 6px;
}

.price-new {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.maint-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Badge inside tier heading --- */
.tier-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.tier--advance .tier-badge {
  background: var(--brand-orange);
  color: #fff;
}

/* --- Card Footer CTA --- */
.card-footer-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- End spacer (desktop only) --- */
.scroll-end-spacer {
  display: none;
}

/* ============================================================
   Responsive — Desktop (≥ 900px): horizontal scroll
   ============================================================ */
@media (min-width: 900px) {
  .package-scroll-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    align-items: stretch;
    gap: 2rem;
    /* Reveal custom scrollbar on desktop */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 87, 34, 0.5) rgba(255, 255, 255, 0.05);
  }

  .package-scroll-container::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  .package-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 5vw;
  }

  .package-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.5);
    border-radius: 10px;
  }

  .package-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 87, 34, 0.8);
  }

  .package-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
  }

  .scroll-end-spacer {
    display: block;
    flex: 0 0 5vw;
    min-width: 5vw;
  }
}

/* ============================================================
   Responsive — Tablet (600px – 899px): 2-column grid
   ============================================================ */
@media (min-width: 600px) and (max-width: 899px) {
  .package-scroll-container {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 4vw 2rem;
  }

  .package-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: 380px;
  }
}

/* ============================================================
   Responsive — Mobile (< 600px): single column
   ============================================================ */
@media (max-width: 599px) {
  .main-content {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .package-scroll-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 1rem 2rem;
  }

  .package-card {
    width: 100%;
    max-width: 420px;
  }

  .cat-title {
    font-size: 1rem;
  }
}