/* ==========================================================================
   ANTARICX - Vertical Cinematic Responsive Website
   ========================================================================== */

/* --- Custom Font Face --- */
@font-face {
  font-family: 'ANTARICX';
  src: url('assets/fonts/ANTARICX_FONT-Regular.ttf') format('truetype'),
       url('assets/fonts/ANTARICX_FONT-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables & Reset --- */
:root {
  --bg-color: #000000;
  --text-primary: #ffffff;
  --brand-font: 'ANTARICX', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --system-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 20px);
  --safe-bottom: env(safe-area-inset-bottom, 20px);
  --safe-left: env(safe-area-inset-left, 20px);
  --safe-right: env(safe-area-inset-right, 20px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--system-font);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Viewport Wrapper --- */
.viewport-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ambient Blurred Video Background for PC / Wide Screens */
.ambient-video {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  filter: blur(55px) brightness(0.22) saturate(1.3);
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
  display: none;
}

/* --- 9:16 Main Video Container (Responsive Design) --- */
/* Default Mobile Portrait (Phones & small screens): Fullscreen edge-to-edge */
.video-container {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

/* PC, Laptops & Landscape / Tablet Screens (Screen is wider than 9:16) */
@media (min-aspect-ratio: 9/16) and (min-width: 601px) {
  .video-container {
    height: 100vh;
    height: 100dvh;
    aspect-ratio: 9 / 16;
    width: calc(100dvh * (9 / 16));
    max-width: 100vw;
    border-radius: 14px;
    box-shadow: 
      0 0 45px rgba(0, 0, 0, 0.95),
      0 0 100px rgba(0, 0, 0, 0.75),
      0 0 1px rgba(255, 255, 255, 0.15);
  }
  .ambient-video {
    display: block;
  }
}

/* Landscape on Short Phones / Handhelds */
@media (orientation: landscape) and (max-height: 500px) {
  .video-container {
    height: 100dvh;
    aspect-ratio: 9 / 16;
    width: calc(100dvh * (9 / 16));
    max-width: 100vw;
    border-radius: 0;
  }
  .ambient-video {
    display: block;
  }
}

/* Foreground Main Video */
.main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: auto;
  background-color: #000000;
}

/* Subtle Vignette Gradient for Readability of Overlays */
.video-gradient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.22) 16%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0) 65%,
    rgba(0, 0, 0, 0.25) 82%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

/* --- Top Overlay (Directly over Video) --- */
.top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--safe-top) + 14px) calc(var(--safe-right) + 18px) 16px calc(var(--safe-left) + 18px);
  pointer-events: auto;
}

/* Left: ANTARICX Brand Text */
.brand-title {
  font-family: var(--brand-font);
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.85),
    0 4px 22px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.brand-title:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Right: SHOP Icon (<i class="fa-solid fa-shop"></i>, Transparent BG, No Text) */
.shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  outline: none;
  padding: 6px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.shop-button:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.shop-button:active {
  transform: scale(0.95);
}

.shop-button i {
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  color: #ffffff;
}

/* --- Bottom Overlay (Middle Centered, Socials above Copyright) --- */
.bottom-overlay {
  position: absolute;
  bottom: calc(var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 20;
  pointer-events: auto;
  text-align: center;
}

/* Social Media Icons Row */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.social-link:hover {
  color: #ffffff;
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
}

.social-link:active {
  transform: scale(0.95);
}

.social-link svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Copyright Text */
.copyright-text {
  font-family: var(--system-font);
  font-size: clamp(0.7rem, 2.2vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 4px 16px rgba(0, 0, 0, 0.7);
  user-select: none;
  white-space: nowrap;
}

/* --- Page Transition Overlay --- */
.page-transition {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   SHOP PAGE SPECIFIC STYLES
   ========================================================================== */
.shop-body {
  background-color: #000000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.coming-soon-wrapper {
  text-align: center;
  padding: 24px;
  z-index: 10;
  animation: fadeInBloom 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.coming-soon-title {
  font-family: var(--system-font);
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  padding-left: 0.35em;
  user-select: none;
}

.coming-soon-sub {
  font-family: var(--system-font);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 18px;
  padding-left: 0.25em;
}

/* Shop Back Button (Icon Only, Transparent Background, No Text) */
.back-button {
  position: absolute;
  top: calc(var(--safe-top) + 16px);
  left: calc(var(--safe-left) + 20px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  outline: none;
  color: #ffffff;
  text-decoration: none;
  padding: 8px;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  z-index: 20;
}

.back-button:hover {
  color: #ffffff;
  transform: translateX(-3px) scale(1.15);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.back-button:active {
  transform: scale(0.95);
}

.back-button i {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  color: #ffffff;
}

.shop-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

@keyframes fadeInBloom {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
