/* ========================================
   hocuongx.com — Minimal Design System
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #f0eeeb;
  --bg-secondary: #e9e7e4;
  --bg-card: #e2e0dd;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #999;
  --accent: #D4A853;
  --accent-hover: #c49840;
  --transition: 0.3s ease;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-brand: 'Rowdies', cursive;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain texture overlay */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
.section-label {
  font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.section-desc { color: var(--text-secondary); font-size: 0.95rem; max-width: 500px; }
.section-header { margin-bottom: 48px; }

/* See More Button (Minimal Cinematic) */
.btn-see-more {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.3);
  padding: 12px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 2px;
}
.btn-see-more:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 0; transition: var(--transition); background: transparent;
}
.navbar-static { position: relative; background: var(--bg-primary); }
.navbar.scrolled {
  background: rgba(240,238,235,0.95); backdrop-filter: blur(10px);
}
.navbar .container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: none; padding: 0 32px; height: 56px;
}
.nav-logo {
  font-family: 'Pacifico', cursive; font-size: 1.15rem;
  color: var(--text-primary); letter-spacing: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  list-style: none; display: flex; gap: 0; align-items: center;
  margin-left: auto; padding: 0;
}
.nav-links li { display: flex; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-primary); transition: var(--transition); font-weight: 500;
  padding: 8px 20px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 12px 0; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-primary); transition: var(--transition); }

/* --- Hero Gallery --- */
.hero-gallery { width: 100%; overflow: hidden; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.gallery-item {
  overflow: hidden; aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* --- About / Hero Brand --- */
.hero-brand {
  font-family: var(--font-brand); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1; margin-bottom: 6px; letter-spacing: 2px;
  color: var(--text-primary);
}
.hero-alias {
  font-family: var(--font-body); font-size: 0.85rem;
  color: var(--text-muted); letter-spacing: 1px; font-weight: 400;
  margin-bottom: 4px;
}
.hero-alias .accent { color: var(--accent); }
.hero-tagline {
  font-family: var(--font-heading); font-style: italic;
  font-size: 0.85rem; color: var(--text-muted);
  letter-spacing: 0.5px; font-weight: 400; margin-bottom: 0;
}
.about-divider {
  width: 40px; height: 1px; background: var(--text-muted); margin: 28px 0;
}
.social-links {
  display: flex; gap: 20px; margin-top: 28px;
}
.social-links a {
  color: var(--text-muted); font-size: 1.05rem;
  transition: var(--transition); text-decoration: none;
}
.social-links a:hover { color: var(--text-primary); }

/* --- Section Base --- */
.section { padding: 80px 0; }

/* --- About Section (Dark Mode) --- */
#about {
  background-color: #161616;
  position: relative;
}
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about-image { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: #a0a0a0; margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; }

#about .hero-brand { color: #f0f0f0; }
#about .hero-alias, #about .hero-tagline { color: #a0a0a0; }
#about .about-divider { background: #333; }
#about .social-links a { color: #888; }
#about .social-links a:hover { color: #fff; }

/* --- My Work Section --- */
.section-work { padding-bottom: 0; }

/* Highlight Video */
.work-highlight {
  width: 100%; position: relative; cursor: pointer;
  overflow: hidden; aspect-ratio: 21/9;
  margin-bottom: 2px;
}
.work-highlight img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.work-highlight:hover img { transform: scale(1.03); }
.work-highlight-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.15); transition: 0.3s ease;
}
.work-highlight:hover .work-highlight-play { background: rgba(0,0,0,0.05); }
.work-highlight-play .play-icon { width: 72px; height: 72px; opacity: 0.9; }

/* Anamorphic Video Grid */
.work-anamorphic-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  width: 100%;
}
.work-anam-item {
  overflow: hidden; aspect-ratio: 2.39/1; cursor: pointer;
  position: relative;
}
.work-anam-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
  opacity: 0.92;
}
.work-anam-item:hover img { transform: scale(1.04); opacity: 1; }
.hidden-initially { display: none !important; }

/* --- LUT Shop --- */
.lut-pack-title {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
  margin-bottom: 24px;
}
.lut-pack-title span { font-size: 0.6em; color: var(--text-muted); font-weight: 400; }

.lut-ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }
.lut-ba-card {
  overflow: hidden; background: var(--bg-card);
  transition: var(--transition);
}
.lut-ba-card:hover { opacity: 0.95; }

/* Before/After Slider */
.ba-slider {
  position: relative; aspect-ratio: 16/10; overflow: hidden; cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
}
.ba-slider .ba-after { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-slider .ba-before {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 50% 0 0);
}
.ba-slider .ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; width: 3px;
  display: flex; flex-direction: column; align-items: center;
  transform: translateX(-50%); z-index: 10;
}
.ba-handle-line { flex: 1; width: 1px; background: rgba(255,255,255,0.6); }
.ba-handle-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.5); border: 1.5px solid white;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); flex-shrink: 0;
}
.ba-handle-circle svg { width: 14px; height: 14px; color: white; }
.ba-label {
  position: absolute; top: 12px; font-size: 0.6rem; font-weight: 600;
  letter-spacing: 2px; color: rgba(255,255,255,0.7); padding: 3px 8px;
  background: rgba(0,0,0,0.4); z-index: 5;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

.lut-ba-info { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.lut-ba-name { font-size: 0.85rem; font-weight: 600; }
.lut-ba-tag { font-size: 0.72rem; color: var(--text-muted); font-style: italic; }

.lut-options { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.lut-option-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: var(--transition);
}
.lut-option-item:first-child { border-top: 1px solid rgba(0,0,0,0.08); }
.lut-option-item:hover { padding-left: 8px; }
.lut-option-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.lut-option-info p { font-size: 0.78rem; color: var(--text-muted); }
.lut-option-action { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lut-price { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.btn-buy {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
  background: var(--text-primary); color: var(--bg-primary); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase;
  transition: var(--transition);
}
.btn-buy:hover { opacity: 0.8; }

.lut-payment-note {
  margin-top: 40px; padding: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}
.lut-payment-note p { color: var(--text-muted); font-size: 0.82rem; }
.lut-payment-note .highlight { color: var(--accent); font-weight: 600; }

/* --- PowerGrade Section --- */
.powergrade-layout {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
.powergrade-video-wrapper {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9; cursor: pointer;
}
.powergrade-video-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.powergrade-video-wrapper:hover img { transform: scale(1.03); }
.powergrade-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); transition: var(--transition);
}
.powergrade-video-wrapper:hover .powergrade-play { background: rgba(0,0,0,0.1); }
.play-icon { width: 56px; height: 56px; }
.powergrade-desc { color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; font-size: 0.95rem; }
.powergrade-features {
  list-style: none; padding: 0; margin-bottom: 32px;
}
.powergrade-features li {
  padding: 6px 0; padding-left: 20px; position: relative;
  color: var(--text-secondary); font-size: 0.85rem;
}
.powergrade-features li::before {
  content: '—'; position: absolute; left: 0; color: var(--text-muted);
}
.powergrade-buy { display: flex; align-items: center; gap: 20px; }
.powergrade-price { font-size: 1.8rem; }
.btn-buy-lg { padding: 12px 32px; font-size: 0.75rem; }

/* --- Contact --- */
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 32px; line-height: 1.8; font-size: 0.95rem; }
.contact-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  color: var(--text-secondary); transition: var(--transition); font-size: 0.9rem;
}
.contact-link:hover { color: var(--text-primary); }
.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-social { display: flex; gap: 16px; margin-top: 28px; }
.contact-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.contact-social a:hover { opacity: 0.6; }
.contact-social svg { width: 18px; height: 18px; fill: var(--text-primary); }

/* --- Footer --- */
.footer { padding: 32px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-family: var(--font-brand); font-size: 1rem; letter-spacing: 2px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: 0.7rem; color: var(--text-muted); }

/* --- Video Modal --- */
.video-modal {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.video-modal.active { display: flex; }
.video-modal .modal-content { width: 90%; max-width: 960px; aspect-ratio: 16/9; }
.video-modal iframe { width: 100%; height: 100%; border: none; }
.modal-close {
  position: absolute; top: 24px; right: 24px; width: 44px; height: 44px;
  font-size: 1.5rem; color: #999; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: white; }

/* --- Fade Animation --- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(240,238,235,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-primary); font-size: 0.9rem; }
  .menu-toggle { display: flex; z-index: 1001; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .work-mosaic { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .lut-ba-grid { grid-template-columns: 1fr; }
  .powergrade-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer .container { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
