/* ============================================================
   TITAN COMPANY — VISUAL MERCHANDISING PRESENTATION
   Premium Dark Theme · Luxury Aesthetic · Ambient Side-Glow
   ============================================================ */

/* ----------------------------------------------------------
   0. DESIGN TOKENS (CSS Custom Properties)
   ---------------------------------------------------------- */
:root {
  --bg:             #0a0a0a;
  --surface:        #141414;
  --card-bg:        #1a1a1a;
  --gold:           #D4AF37;
  --warm-gold:      #C9A84C;
  --copper:         #B87333;
  --text-primary:   #F5F0E8;
  --text-secondary: #8A8070;
  --text-dim:       #5a5347;
  --font-heading:   'Univers', 'Univers LT Std', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:      'Univers', 'Univers LT Std', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-smooth:    cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ----------------------------------------------------------
   1. RESET & BASE
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.55);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.35) var(--bg);
}

/* Selection */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--gold);
}

::-moz-selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--gold);
}

/* ----------------------------------------------------------
   2. SIDE GLOW EFFECTS  (Key Visual Feature)
   ---------------------------------------------------------- */
.side-glow {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 8px;
  z-index: 1000;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--gold) 20%,
    var(--copper) 40%,
    var(--warm-gold) 60%,
    var(--copper) 80%,
    transparent 100%
  );
  background-size: 100% 200%;
  box-shadow:
    0 0 30px 10px rgba(212, 175, 55, 0.3),
    0 0 60px 20px rgba(184, 115, 51, 0.15);
  animation:
    sideGlowPulse 4s ease-in-out infinite alternate,
    sideGlowShift 8s linear infinite;
}

.side-glow-left {
  left: 0;
}

.side-glow-right {
  right: 0;
}

/* ----------------------------------------------------------
   3. COMMON SECTION STYLES
   ---------------------------------------------------------- */
.section {
  min-height: 100vh;
  padding: 120px 80px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .section {
    position: sticky;
    /* top offset is calculated dynamically via JavaScript based on height */
    min-height: 100vh;
    background: var(--bg);
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.7);
  }

  .section:not(#endscreen) {
    padding-bottom: 300px;
  }
}

.section-title {
  font-family: 'Impact', 'Arial Black', var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  text-align: center;
}

.section-subtitle {
  font-family: 'Baskerville', 'Baskerville Old Face', 'Hoefler Text', Garamond, 'Times New Roman', serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 60px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

/* ----------------------------------------------------------
   3.5 HEADER & NAVIGATION DRAWER
   ---------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 80px;
  background: #e6e3db; /* Elegant beige */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-logo {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Playfair Display', 'EB Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.logo-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: #c5a880; /* Subtle gold accent */
  letter-spacing: 0.25em;
  margin-top: 2px;
}

.header-menu {
  cursor: pointer;
  padding: 4px;
}

.menu-icon {
  width: 22px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  width: 100%;
  height: 2px;
  background-color: #1a1a1a;
  transition: all 0.3s ease;
}

/* Side Drawer Menu */
.side-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: #141414;
  z-index: 9999;
  padding: 60px 40px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: right 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.side-drawer.open {
  right: 0;
}

.drawer-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: #ffffff;
  cursor: pointer;
  margin-bottom: 40px;
  line-height: 1;
  transition: color 0.3s;
}

.drawer-close:hover {
  color: var(--gold);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.drawer-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 8px;
}

.drawer-nav a:hover {
  color: var(--gold);
  padding-left: 8px;
}

/* ----------------------------------------------------------
   4. HERO SECTION (#hero)
   ---------------------------------------------------------- */
.hero-section {
  background: #111111 !important; /* Elegant dark background */
  position: relative;
  padding: 0 40px 300px !important;
  text-align: center;
  display: block !important;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
}

.hero-vision-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-smooth) forwards;
}

.hero-main-title {
  display: flex;
  flex-direction: column;
  font-family: 'Playfair Display', 'EB Garamond', serif;
  font-size: 5.5rem;
  font-weight: 300;
  letter-spacing: 0.05em; /* Spread title text more */
  line-height: 1.2;
  color: #ffffff;
  text-transform: none;
  margin-bottom: 56px; /* Moved subtext a little lower */
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-smooth) forwards;
  animation-delay: 150ms;
}

.hero-main-title .gold-italic {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: #c5a880; /* Elegant gold tone */
  font-weight: 300; /* Decreased font weight */
  margin-right: 8px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-smooth) forwards;
  animation-delay: 300ms;
}

.hero-tags span {
  white-space: nowrap;
}

.hero-footer {
  position: absolute;
  bottom: 80px;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: heroFadeIn 0.8s var(--ease-smooth) forwards;
  animation-delay: 450ms;
}

.hero-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.1s ease;
}

.scroll-indicator:hover {
  opacity: 0.8;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.scroll-chevron {
  width: 24px;
  height: 24px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ----------------------------------------------------------
   5. BRAND COMPARISON (#brands) — Bento Grid
   ---------------------------------------------------------- */
#brands {
  padding-left: 0;
  padding-right: 0;
}

#brands .section-title,
#brands .section-subtitle {
  padding-left: 15px;
  padding-right: 15px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
  grid-auto-flow: dense;
}

.brand-card {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card-bg);
  transition:
    transform 0.4s var(--ease-smooth),
    box-shadow 0.4s var(--ease-smooth);
}

.brand-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(212, 175, 55, 0.15);
}

.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
  pointer-events: none;
  z-index: 1;
}

.brand-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.brand-card:hover .brand-card-img {
  transform: scale(1.08);
}

.brand-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Brand card size variants */
.brand-card.span-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.brand-card.span-2x1 {
  grid-column: span 2;
}

.brand-card.span-1x2 {
  grid-row: span 2;
}

/* ----------------------------------------------------------
   6. BRAND OVERLAY (#brand-overlay)
   ---------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.overlay-content {
  position: relative;
  z-index: 1;
  width: 85vw;
  max-width: 1100px;
  max-height: 85vh;
  background: var(--surface);
  border-radius: 16px;
  padding: 48px;
  overflow-y: auto;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transform: translateY(30px);
  transition:
    transform 0.3s var(--ease-smooth),
    opacity 0.3s ease;
}

.overlay.active .overlay-content {
  transform: translateY(0);
}

/* Overlay scrollbar */
.overlay-content::-webkit-scrollbar {
  width: 6px;
}

.overlay-content::-webkit-scrollbar-track {
  background: transparent;
}

.overlay-content::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 3px;
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  z-index: 2;
}

.overlay-close:hover {
  color: var(--gold);
}

.overlay-brand-name {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 32px;
  color: var(--gold);
}

.overlay-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.overlay-img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s var(--ease-smooth);
}

.overlay-img:hover {
  transform: scale(1.03);
}

.overlay-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ----------------------------------------------------------
   7. MATERIALS SECTION (#materials)
   ---------------------------------------------------------- */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.material-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  padding: 12px;
  text-align: center;
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
}

.material-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.material-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.material-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ----------------------------------------------------------
   8. MINDMAP (#mindmap)
   ---------------------------------------------------------- */
.mindmap-showcase {
  max-width: 1600px;
  margin: 40px auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition:
    transform 0.4s var(--ease-smooth),
    box-shadow 0.4s var(--ease-smooth);
}

.mindmap-showcase:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 50px rgba(212, 175, 55, 0.25) !important;
}

.mindmap-showcase img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), border-radius 0.3s ease;
}

/* Fullscreen Map Mode */
.mindmap-showcase img.fullscreen-map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  background: rgba(10, 10, 10, 0.98);
  z-index: 99999;
  border-radius: 0 !important;
  cursor: grab;
  /* Disable transition during active pan/drag */
  transition: none !important;
}

.mindmap-showcase img.grabbing {
  cursor: grabbing !important;
}

/* ----------------------------------------------------------
   9. MOODBOARD (#moodboard)
   ---------------------------------------------------------- */
.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 12px;
}

.mood-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.mood-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.mood-item:hover img {
  transform: scale(1.05);
}

/* Moodboard size variants */
.mood-item.tall {
  grid-row: span 2;
}

.mood-item.wide {
  grid-column: span 2;
}

.mood-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* ----------------------------------------------------------
   10. SKETCHES (#sketches)
   ---------------------------------------------------------- */
#sketches {
  /* Inherits standard section padding to align with other sections */
}

.sketches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
  grid-auto-rows: 132px;
  gap: 5px;
  grid-auto-flow: dense;
  padding: 20px 0 0;
  max-width: 1600px;
  margin: 0 auto;
  justify-content: center;
}

.sketch-card {
  border-radius: 9px;
  overflow: hidden;
  background: var(--card-bg);
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
  display: flex;
}

.sketch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

.sketch-card.portrait {
  grid-column: span 1;
  grid-row: span 3;
}

.sketch-card.portrait-large {
  grid-column: span 2;
  grid-row: span 6;
}

.sketch-card.landscape {
  grid-column: span 2;
  grid-row: span 2;
}

.sketch-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------
   11. RENDERS (#renders)
   ---------------------------------------------------------- */
.renders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.render-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
}

.render-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.render-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.video-card video {
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.render-caption {
  padding: 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------
   12. END SCREEN (#endscreen)
   ---------------------------------------------------------- */
#endscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px;
}

.end-logo {
  width: 200px;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  display: block;
}

.end-tagline {
  margin-top: 24px;
  font-family: 'Baskerville', 'Baskerville Old Face', 'Hoefler Text', Garamond, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.end-title {
  font-family: 'Impact', 'Arial Black', var(--font-heading);
  font-size: 6rem;
  font-weight: 900;
  margin-bottom: 7px;
  color: #ffffff;
  text-transform: uppercase;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
}

.end-subtitle {
  font-family: 'Baskerville', 'Baskerville Old Face', 'Hoefler Text', Garamond, 'Times New Roman', serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.end-credits {
  margin-top: 60px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ----------------------------------------------------------
   13. EDIT MODE (contenteditable)
   ---------------------------------------------------------- */
[contenteditable='true'] {
  outline: none;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
  position: relative;
}

[contenteditable='true']:hover {
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}

[contenteditable='true']:focus {
  box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.05);
}

.img-edit-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 10;
  font-size: 0.85rem;
}

.img-delete-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 75, 75, 0.3);
  color: #ff4b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  cursor: pointer;
  z-index: 10;
  font-size: 0.85rem;
}

/* Show edit and delete buttons on parent hover */
.brand-card:hover .img-edit-btn,
.material-card:hover .img-edit-btn,
.mood-item:hover .img-edit-btn,
.sketch-card:hover .img-edit-btn,
.render-card:hover .img-edit-btn,
.video-card:hover .img-edit-btn,
.render-card:hover .img-delete-btn,
.video-card:hover .img-delete-btn,
[style*="position: relative"]:hover > .img-edit-btn {
  opacity: 1;
}

.img-edit-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--gold);
}

.img-delete-btn:hover {
  background: rgba(255, 75, 75, 0.2);
  border-color: #ff4b4b;
}

/* Admin controls for dynamic elements */
.admin-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-btn:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* ----------------------------------------------------------
   14. SCROLL REVEAL ANIMATION
   ---------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Enable scroll reveal selectively for specific boards and titles */
.section-title.reveal,
.section-subtitle.reveal,
.brand-card.reveal,
.material-card.reveal,
.sketch-card.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease-smooth),
    transform 0.8s var(--ease-smooth);
}

.section-title.reveal.revealed,
.section-subtitle.reveal.revealed,
.brand-card.reveal.revealed,
.material-card.reveal.revealed,
.sketch-card.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays */
.reveal:nth-child(2)  { transition-delay: 0.05s; }
.reveal:nth-child(3)  { transition-delay: 0.1s; }
.reveal:nth-child(4)  { transition-delay: 0.15s; }
.reveal:nth-child(5)  { transition-delay: 0.2s; }
.reveal:nth-child(6)  { transition-delay: 0.25s; }
.reveal:nth-child(7)  { transition-delay: 0.3s; }
.reveal:nth-child(8)  { transition-delay: 0.35s; }
.reveal:nth-child(9)  { transition-delay: 0.4s; }
.reveal:nth-child(10) { transition-delay: 0.45s; }
.reveal:nth-child(11) { transition-delay: 0.5s; }
.reveal:nth-child(12) { transition-delay: 0.55s; }
.reveal:nth-child(13) { transition-delay: 0.6s; }
.reveal:nth-child(14) { transition-delay: 0.65s; }
.reveal:nth-child(15) { transition-delay: 0.7s; }
.reveal:nth-child(16) { transition-delay: 0.75s; }
.reveal:nth-child(17) { transition-delay: 0.8s; }
.reveal:nth-child(18) { transition-delay: 0.85s; }
.reveal:nth-child(19) { transition-delay: 0.9s; }
.reveal:nth-child(20) { transition-delay: 0.95s; }
.reveal:nth-child(21) { transition-delay: 1.0s; }
.reveal:nth-child(22) { transition-delay: 1.05s; }
.reveal:nth-child(23) { transition-delay: 1.1s; }
.reveal:nth-child(24) { transition-delay: 1.15s; }
.reveal:nth-child(25) { transition-delay: 1.2s; }

/* ----------------------------------------------------------
   15. KEYFRAME ANIMATIONS
   ---------------------------------------------------------- */
@keyframes haloPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.95;
  }
}

@keyframes sideGlowPulse {
  0% {
    opacity: 0.5;
    box-shadow:
      0 0 20px 6px rgba(212, 175, 55, 0.2),
      0 0 40px 12px rgba(184, 115, 51, 0.1);
  }
  100% {
    opacity: 1;
    box-shadow:
      0 0 40px 14px rgba(212, 175, 55, 0.4),
      0 0 80px 28px rgba(184, 115, 51, 0.2);
  }
}

@keyframes sideGlowShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 200%;
  }
}

@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(10px) rotate(45deg);
  }
  60% {
    transform: translateY(5px) rotate(45deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes logoGlow {
  0% {
    filter: brightness(0) invert(1) drop-shadow(0 0 0px rgba(212, 175, 55, 0));
  }
  100% {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(212, 175, 55, 0.25));
  }
}

/* ----------------------------------------------------------
   16. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */

/* ---- Large tablets / small laptops ---- */
@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 100px 50px;
  }



  .moodboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Tablets / small screens ---- */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .section {
    padding: 80px 30px;
  }



  .hero-main-title {
    font-size: 3.8rem;
  }
  .main-header {
    padding: 12px 32px;
  }
  .hero-section {
    padding-bottom: 80px !important;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .overlay-content {
    width: 95vw;
    padding: 24px;
    max-height: 90vh;
  }

  .overlay-brand-name {
    font-size: 1.8rem;
  }

  .renders-grid {
    grid-template-columns: 1fr;
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .moodboard-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .sketches-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    grid-auto-rows: 88px;
    gap: 5px;
  }

  .end-title {
    font-size: 4.2rem;
  }

  /* Side glow becomes thinner on mobile */
  .side-glow {
    width: 4px;
  }
}

/* ---- Mobile phones ---- */
@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .mindmap-showcase {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
  }

  .mindmap-showcase img:not(.fullscreen-map) {
    width: 150% !important;
    max-width: none !important;
    border-radius: 0 !important;
  }

  /* Reset span variants on single column */
  .brand-card.span-2x2,
  .brand-card.span-2x1 {
    grid-column: span 1;
  }

  .brand-card.span-2x2,
  .brand-card.span-1x2 {
    grid-row: span 1;
  }

  .hero-main-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  .main-header {
    padding: 12px 16px;
  }
  .logo-title {
    font-size: 1.1rem;
  }
  .hero-tags {
    font-size: 0.85rem;
    gap: 12px;
  }
  .hero-footer {
    bottom: 95px;
  }
  .hero-section {
    padding-bottom: 80px !important;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 40px;
  }

  .moodboard-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .mood-item.wide,
  .mood-item.large {
    grid-column: span 1;
  }

  .mood-item.tall,
  .mood-item.large {
    grid-row: span 1;
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sketches-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    grid-auto-rows: 72px;
    gap: 5px;
  }

  .overlay-gallery {
    grid-template-columns: 1fr;
  }

  .end-title {
    font-size: 3.3rem;
  }

  .end-credits {
    margin-top: 40px;
  }
}
