/* ========================================
   GLOBAL STYLES
   File: css/style.css
   ======================================== */

/* CSS Variables */
:root {
  /* Colors */
  --color-primary: #1a1a1a;
  --color-secondary: #666666;
  --color-background: #f5f5f5;
  --color-white: #ffffff;
  --color-border: #dddddd;
  --color-overlay-bg: rgba(255, 255, 255, 0.95);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 8px;
  --spacing-lg: 0.5rem;
  --spacing-xl: 16px;

  /* Typography */
  --font-family: Helvetica Neue, Helvetica, sans-serif, Helvetica Neue Regular;
  --font-size-base: 0.9rem;
  --font-size-sm: 0.9rem;
  --font-size-lg: 1rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Levels */
  --z-base: 1;
  --z-section: 10;
  --z-overlay-level-1: 100;
  --z-overlay-level-2: 200;
  --z-close-button: 300;
  --z-backdrop: 5;
}
/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.15;
  color: var(--color-primary);
  background-color: var(--color-background);
  overflow: hidden;
}

img {
  margin-top: 5px;
}

video {
  margin-top: 5px;
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body hr {
  background: rgba(0, 0, 0, 0.14);
  border: 0;
  height: 1px;
  display: block !important;
  /* margin-top: 0.5rem !important; */
  margin-bottom: 0.5rem !important;
}

hr-special {
  display: block !important;
  width: 97% !important;
  /* margin: 1rem auto !important; */

  /* Height & visibility */
  height: 3px !important;
  min-height: 1px !important;
  /* max-height: 3px !important; */

  /* Background color - PAKSA! */
  background: rgba(0, 0, 0, 0.14) !important;
  background-color: #6666 !important;
  opacity: 1 !important;
  visibility: visible !important;

  /* Border - override inline */
  border: 0 !important;
  /* border-top: 1px solid gray !important; */
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;

  /* Positioning - ensure not overlapped */
  position: relative !important;
  z-index: 99999 !important; /* 🔥 SUPER HIGH! */

  /* Box model */
  padding: 0 !important;
  box-sizing: border-box !important;

  /* Ensure rendering */
  overflow: visible !important;
}

a {
  color: inherit; /* ikut warna teks sekitarnya */
  text-decoration: none; /* hilangin underline */
}

/* ========================================
   BACKDROP GIF - DESKTOP & MOBILE (FINAL)
   ======================================== */

/* ----- DESKTOP BACKDROP (#backdrop-gif) ----- */
#backdrop-gif {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-backdrop);
  pointer-events: none;
  user-select: none;
  background: transparent;
  display: block;
}

#backdrop-gif .backdrop-gif__image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-backdrop);
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  background: transparent;
}

/* Hide desktop on mobile */
@media screen and (max-width: 768px) {
  #backdrop-gif {
    display: none !important;
  }
}

/* ----- MOBILE BACKDROP (#backdrop-gif-mobile) ----- */
#backdrop-gif-mobile {
  display: none; /* Hide di desktop */
}

/* Show mobile backdrop FULLSCREEN on mobile */
@media screen and (max-width: 768px) {
  #backdrop-gif-mobile {
    display: block !important;
    position: fixed; /* 🔥 FIXED, bukan relative! */
    top: 0;
    left: 0;
    width: 100vw; /* 🔥 Full viewport width */
    height: 100vh; /* 🔥 Full viewport height */
    z-index: var(--z-backdrop); /* 🔥 Sama kayak desktop */
    pointer-events: none;
    user-select: none;
    background: transparent;
    object-fit: contain;
  }

  #backdrop-gif-mobile .backdrop-gif__image {
    position: fixed; /* 🔥 FIXED, bukan static! */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 🔥 Contain agar tidak stretch */
    pointer-events: none;
    -webkit-user-drag: none;
    background: transparent;
  }
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* For Firefox */
* {
  scrollbar-width: none; /* 🔥 Hide scrollbar */
  -ms-overflow-style: none; /* 🔥 For IE/Edge */
}

/* ========================================
   MOBILE: Stack Columns Vertically
   Simple & Clean - No JS Needed!
   ======================================== */

/* ========================================
   MOBILE: Stack Header Columns Only
   ======================================== */

@media screen and (max-width: 768px) {
  /* ONLY target columns with --header class */
  .columns--header {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .columns--header > div,
  .columns--header > button {
    width: 100% !important;
    flex: none !important;
  }

  /* Reposition close button for mobile */
  .columns--header .overlay__close {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    text-align: right !important;
    margin-top: 0.5rem !important;
  }
}

/* ========================================
   ANTI-DARK MODE — SAFE VERSION
   File: css/responsive.css (LAST!)
   ======================================== */

/* 🔥 Block system dark mode from affecting colors */
@media (prefers-color-scheme: dark) {
  html {
    color-scheme: light only !important;
  }

  body {
    background: var(--color-background, #f5f5f5) !important;
    color: var(--color-primary, #1a1a1a) !important;
  }

  /* Preserve your existing color variables */
  :root {
    --color-background: #f5f5f5 !important;
    --color-white: #ffffff !important;
    --color-primary: #1a1a1a !important;
    --color-secondary: #666666 !important;
  }
}

/* 🔥 Force light color scheme */
html {
  color-scheme: light only !important;
}
