/* ==========================================================================
   MEMORIES MADE BY ADI — LUXURY EDITORIAL PHOTOFOLIO DESIGN SYSTEM
   Aesthetic: Hemad Nazari Minimal Luxury / Dark Obsidian Architecture
   Designer: AnonymCreator (https://AnonymCreator.online)
   Copyright © Memories Made By Adi 2026
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Story: Deep Obsidian Void & Charcoal Panels */
  --bg-pitch: #000000;
  --bg-surface: #080808;
  --bg-surface-elevated: #0e0e0e;
  --bg-surface-card: #141414;
  --bg-surface-hover: #1a1a1a;
  --bg-glass: rgba(8, 8, 8, 0.85);
  --bg-glass-nav: rgba(0, 0, 0, 0.88);

  /* Razor-thin Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(255, 255, 255, 0.4);
  --border-active: #ffffff;

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --text-subtle: #444444;

  /* Accent & Highlight Elements */
  --accent-gold-whisper: #d4af37;
  --accent-silver: #e5e5e5;
  --accent-glow: rgba(255, 255, 255, 0.18);
  --status-success: #10b981;
  --status-error: #f43f5e;

  /* Typography Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  /* Spacing System */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Transitions & Animation Timings */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout Constants */
  --header-height: 80px;
  --drawer-width: 90px;
  --container-max: 1440px;
}

/* --------------------------------------------------------------------------
   GLOBAL LOGO INVERSION (Black logo asset inverted to crisp pure white)
   -------------------------------------------------------------------------- */
.brand-logo-img,
.footer-logo-img,
.admin-logo-img,
.auth-logo,
.drawer-header-logo img {
  filter: brightness(0) invert(1) !important;
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   02. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-pitch);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.015em;
  background-color: var(--bg-pitch);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Sleek Obsidian Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-pitch);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

::selection {
  background: #ffffff;
  color: #000000;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   03. TYPOGRAPHY & EDITORIAL UTILITIES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.heading-display {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.heading-hero {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.heading-section {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.heading-card {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.text-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-secondary);
}

.text-subtle {
  color: var(--text-muted);
}

.editorial-italic {
  font-style: italic;
  font-family: var(--font-display);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

.container-narrow {
  max-width: 880px;
}

/* --------------------------------------------------------------------------
   04. BUTTONS, TAGS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-pitch);
  border: 1px solid var(--text-primary);
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
  transform: scale(1.05);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   05. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Brand Logo */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.03);
  opacity: 0.95;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2px 4px;
  gap: 2px;
}

.lang-btn {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-weight: 600;
}

/* Social Nav Icons */
.header-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  padding: 6px;
  background: transparent;
  border: none;
}

.mobile-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background-color: var(--text-primary);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-pitch);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-2xl) var(--space-xl);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  z-index: 999;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--text-primary);
  padding-left: 8px;
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   06. HEMAD NAZARI HERO & VERTICAL THUMBNAIL DOCK (INDEX.HTML)
   -------------------------------------------------------------------------- */
body.page-home {
  overflow: hidden !important;
  height: 100vh !important;
  width: 100vw !important;
  position: fixed;
  inset: 0;
}

.hero-format-layout {
  position: relative;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  overflow: hidden;
  background-color: var(--bg-pitch);
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

body.page-home.footer-active .hero-format-layout {
  transform: translateY(-48px) scale(0.975);
  filter: brightness(0.6);
}

/* Main Luxury Viewport - All pictures fully visible */
.hero-viewport {
  position: relative;
  flex: 1;
  height: 100%;
  width: 100%;
  background: var(--bg-pitch);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.5vw, 36px);
  padding-right: calc(var(--drawer-width) + 24px);
  user-select: none;
  overflow: hidden;
}

.hero-image-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-pitch);
  cursor: grab;
}

.hero-image-stage:active {
  cursor: grabbing;
}

.hero-active-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Photo HUD Metadata Overlay - Hidden as per user requirement (No text on pictures) */
.hero-hud-overlay {
  display: none !important;
}

/* Right-Side Docked Miniature Thumbnail Strip (Hemad Nazari Format) */
.hero-thumbnail-dock {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: var(--drawer-width);
  height: calc(100vh - var(--header-height));
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--border-subtle);
  z-index: 800;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.drawer-header {
  display: none !important;
}

.drawer-scroll-track {
  flex: 1;
  overflow-y: auto;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  scrollbar-width: none; /* Hide scrollbar for ultra sleek look */
}
.drawer-scroll-track::-webkit-scrollbar {
  display: none;
}

/* Miniature Thumbnail Card (No text, pure photography preview) */
.thumb-card {
  position: relative;
  width: 72px;
  height: 48px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-surface);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.55;
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.85);
}

.thumb-card:hover {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.04);
}

.thumb-card.active {
  opacity: 1;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  transform: scale(1.02);
}

.thumb-card.active img {
  filter: brightness(1.05);
}

.thumb-meta-badge,
.thumb-label {
  display: none !important;
}

/* Mobile Off-Canvas Drawer Toggle Trigger */
.mobile-drawer-toggle-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 850;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: 30px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   07. PROJECTS & GALLERIES 3-COLUMN MASONRY (PROIECTE.HTML)
   -------------------------------------------------------------------------- */
.page-hero-header {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.page-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: var(--space-sm);
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Filter Tabs */
.filter-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.filter-tab.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 600;
}

/* 3-Column Editorial Grid */
.editorial-grid-section {
  padding: var(--space-3xl) 0 var(--space-5xl);
}

.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: stretch;
}

.project-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.project-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000000;
  flex-shrink: 0;
}

.project-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.project-card:hover .project-media-box img {
  transform: scale(1.06);
}

.project-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.project-info-bar {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  margin-top: auto;
  flex: 1;
}

.project-info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold-whisper);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffffff;
}

.project-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.project-card:hover .project-action-btn {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   08. LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 2010;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox-stage {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-subtle);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.8);
  border: 1px solid var(--border-medium);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2010;
}

.lightbox-nav-btn:hover {
  background: #ffffff;
  color: #000000;
}

.lightbox-prev {
  left: var(--space-xl);
}
.lightbox-next {
  right: var(--space-xl);
}

/* --------------------------------------------------------------------------
   09. ABOUT PAGE (DESPRE.HTML)
   -------------------------------------------------------------------------- */
.about-banner-wrapper {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
  padding-top: var(--header-height);
}

.about-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.65) contrast(1.1);
}

.about-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 40%, var(--bg-pitch) 100%);
}

.about-profile-section {
  position: relative;
  margin-top: -100px;
  padding-bottom: var(--space-4xl);
  z-index: 10;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-portrait-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.about-portrait-ring {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
  margin-bottom: var(--space-lg);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.about-portrait-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.about-name {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.about-role-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold-whisper);
  margin-bottom: var(--space-lg);
}

.about-content-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.about-lead-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--accent-silver);
  border-left: 2px solid var(--accent-gold-whisper);
  padding-left: var(--space-lg);
}

.about-bio-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Stats / Accolades Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Gear Showcase */
.gear-showcase-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.gear-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.gear-icon {
  color: var(--accent-gold-whisper);
  margin-top: 2px;
}

.gear-details h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.gear-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. CONTACT PAGE (CONTACT.HTML)
   -------------------------------------------------------------------------- */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  padding: var(--space-3xl) 0 var(--space-5xl);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.contact-meta-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-whisper);
}

.contact-card-info h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-card-info p,
.contact-card-info a {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* WhatsApp Direct CTA Card */
.whatsapp-cta-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(8, 8, 8, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 4px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.btn-whatsapp {
  background: #25d366;
  color: #000000;
  font-weight: 600;
  border: none;
}
.btn-whatsapp:hover {
  background: #20ba5a;
  color: #000000;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
}

/* Split Razor-Border Contact Form */
.contact-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
}

.editorial-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-pitch);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --------------------------------------------------------------------------
   11. EVENT VERIFICATION & 6-DIGIT PORTAL (EVENIMENT.HTML)
   -------------------------------------------------------------------------- */
.event-portal-section {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-5xl);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-portal-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.portal-icon-lock {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-whisper);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.portal-header-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 6-Digit Discrete PIN Input Grid */
.pin-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 14px);
  width: 100%;
  margin: var(--space-sm) 0;
}

.pin-digit-box {
  width: 48px;
  height: 58px;
  background: var(--bg-pitch);
  border: 1.5px solid var(--border-medium);
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.pin-digit-box:focus {
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.pin-digit-box.filled {
  border-color: rgba(255, 255, 255, 0.5);
  background: var(--bg-surface-elevated);
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake-animation {
  animation: pinShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.portal-status-alert {
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: none;
}

.portal-status-alert.error {
  display: block;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid var(--status-error);
  color: #ff99aa;
}

.portal-status-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--status-success);
  color: #6ee7b7;
}

/* Authenticated Results Section */
.event-results-container {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: var(--space-2xl);
  animation: fadeIn 0.6s ease forwards;
}

.event-results-container.visible {
  display: flex;
}

.event-client-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.client-meta-info h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.client-meta-info p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.event-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   12. MINIMAL CENTERED FOOTER & CREDITS (ALL PAGES - FIXED LUXURY DOCK)
   -------------------------------------------------------------------------- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0;
  text-align: center;
  z-index: 850;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

body.footer-active .site-footer {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Bottom clearance for main content so content is never obscured when scrolled to bottom */
body:not(.page-home) {
  padding-bottom: 84px;
}

.footer-minimal-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
  opacity: 0.85;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-logo-img:hover {
  opacity: 1 !important;
  transform: scale(1.06) !important;
}

.copyright-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.5;
}

.designer-credit-link {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-medium);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.designer-credit-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Lightbox Safety: Strict Overlay Only */
#adi-lightbox-modal:not(.is-active),
.adi-lightbox-modal:not(.is-active) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   13. TOAST & NOTIFICATION COMPONENT
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 14px 20px;
  color: #ffffff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  animation: slideInLeft 0.3s ease forwards;
}

/* --------------------------------------------------------------------------
   14. ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-viewport {
    padding-right: clamp(16px, 3vw, 40px);
  }

  .hero-thumbnail-dock {
    transform: translateX(100%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  }

  .hero-thumbnail-dock.open {
    transform: translateX(0);
  }

  .mobile-drawer-toggle-btn {
    display: inline-flex;
  }

  .projects-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-profile-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait-card {
    position: static;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav-menu,
  .header-socials {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-format-layout {
    height: calc(100vh - var(--header-height));
  }

  .hero-viewport {
    padding: 12px;
    padding-top: calc(var(--header-height) + 12px);
  }

  .hero-hud-overlay {
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .projects-masonry {
    grid-template-columns: 1fr;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }

  .gear-grid {
    grid-template-columns: 1fr;
  }

  .pin-digit-box {
    width: 40px;
    height: 50px;
    font-size: 1.3rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}
