/* css/base.css */

/* Modern CSS Reset */
*, *::before, *::after { box-sizing: border-box; }

/* Ensure hidden elements are truly hidden */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography & Reset */
h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-text-dark); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { cursor: pointer; }

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.text-center { text-align: center; }
.mb-large { margin-bottom: var(--space-3xl); }
.mt-small { margin-top: var(--space-xs); }
.section-padding { padding: var(--space-4xl) 0; }
.bg-surface { background-color: var(--color-surface); }

/* Header - Minimal HUD Style */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-md) 0;
  background: transparent;
  backdrop-filter: none;
  transition: all 0.4s ease;
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.main-header .header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.main-header .logo {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(26, 26, 26, 0.4);
  transition: color 0.4s ease;
  font-family: var(--font-heading);
}

.main-header.scrolled .logo {
  color: var(--color-primary);
}

.main-nav {
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-header.scrolled .main-nav a {
  color: var(--color-primary);
}

.main-header.scrolled .main-nav a:hover {
  color: var(--color-accent);
}

/* Language Toggle Button */
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.2);
  color: rgba(26, 26, 26, 0.6);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lang-toggle:hover {
  background: rgba(26, 26, 26, 0.05);
  border-color: rgba(26, 26, 26, 0.4);
  color: var(--color-primary);
}

.main-header.scrolled .lang-toggle {
  border-color: rgba(26, 26, 26, 0.2);
  color: var(--color-primary);
}

.main-header.scrolled .lang-toggle:hover {
  background: rgba(26, 26, 26, 0.05);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: rgba(26, 26, 26, 0.5);
  transition: all 0.3s ease;
}

.main-header.scrolled .menu-toggle span {
  background-color: var(--color-primary);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-header .header-wrap {
    padding: 0 var(--space-md);
  }

  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--space-lg);
    background: white;
    padding: var(--space-2xl) var(--space-lg);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
    border-bottom: 1px solid var(--color-line);
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-header.scrolled .main-nav {
    background: white;
  }

  .main-nav a {
    font-size: var(--text-base);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-line);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .header-controls {
    display: flex;
    gap: var(--space-md);
    align-items: center;
  }

  .lang-toggle {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .hero-title {
    text-align: left;
    padding: 0 var(--space-lg);
  }

  .hero-tag {
    display: block;
    text-align: left;
    padding-left: var(--space-lg);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Taller for parallax movement */
  z-index: -1;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}
.hero-title {
  font-size: clamp(3rem, 10vw, var(--text-8xl));
  color: white;
  z-index: 1;
  text-align: center;
}

/* Narrative Section */
.narrative-section { position: relative; z-index: 2; background-color: var(--color-background); }
.narrative-text {
  font-size: clamp(1.5rem, 5vw, var(--text-4xl));
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* Horizontal Scroll (Native) */
.horizontal-showcase-wrapper {
  background-color: var(--color-background);
  overflow: hidden;
}
.horizontal-gallery-container {
  width: 100%;
  overflow-x: auto; /* Enable native horizontal scroll */
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
  scroll-behavior: smooth;
  padding-bottom: var(--space-lg);
  /* Hide Scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}
.horizontal-gallery-container::-webkit-scrollbar { 
    background: transparent; /* Chrome/Safari/Webkit */
    width: 0px;
    height: 0px;
}

.horizontal-gallery {
  display: flex;
  gap: var(--space-lg);
  padding: 0 var(--space-lg); /* Side padding */
  width: max-content; /* Ensure it stretches */
}
.gallery-item {
  width: 350px;
  height: 500px;
  flex-shrink: 0;
  background-color: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.gallery-item:hover { transform: translateY(-10px); }
.gallery-item img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item h3, .gallery-item p {
  position: relative; z-index: 1; color: white;
  padding: 0 var(--space-md) var(--space-md);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.gallery-item h3 { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--space-xs); }

/* Philosophy Grid (Bento) */
.philosophy-section { background-color: var(--color-background); }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.bento-item {
  background-color: var(--color-surface);
  border-radius: 16px;
  padding: var(--space-lg);
  min-height: 300px;
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-item.item-large { grid-column: span 2; background-color: #f5f2eb; }
.bento-item.item-dark { background-color: var(--color-primary); color: white; border: none; }
.bento-item.item-dark h3, .bento-item.item-dark p { color: white; }
@media (max-width: 768px) { .bento-item.item-large { grid-column: span 1; } }

/* CTA Section */
.cta-section { background-color: var(--color-surface); }
.cta-title { font-size: var(--text-5xl); margin-bottom: var(--space-md); }
.cta-subtitle { font-size: var(--text-xl); color: var(--color-muted); margin-bottom: var(--space-xl); }
.cta-buttons { display: flex; gap: var(--space-md); justify-content: center; }
.button {
  padding: var(--space-md) var(--space-2xl);
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-large { background: var(--color-primary); color: white; }
.btn-large:hover { background: var(--color-secondary); }
.btn-outline { border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: white; }

/* Footer (Standard, No Curtain) */
.main-footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: 0; /* Reset any curtain margins */
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.footer-section h4 { color: white; margin-bottom: var(--space-md); font-size: var(--text-lg); }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: var(--space-xs); }
.footer-section a { color: inherit; transition: color 0.2s; }
.footer-section a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}
