/* ===================================================
   LUANARTS PORTFOLIO — styles.css
   =================================================== */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ----- Layout ----- */
:root {
  --transition: 0.3s ease;
  --radius:     12px;
  --radius-lg:  20px;
  --container:  1200px;
  --header-h:   68px;
}

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

/* ===================================================
   THEMES — CSS Variables
   =================================================== */

[data-theme="cyber-dark"] {
  --bg:         #07070e;
  --bg2:        #0d0d1b;
  --bg3:        #111128;
  --card:       rgba(14, 14, 35, 0.85);
  --accent:     #00d4ff;
  --accent2:    #7c3aed;
  --accent3:    #f472b6;
  --text:       #dde8f5;
  --text2:      #7a8aa0;
  --border:     rgba(0, 212, 255, 0.14);
  --glow:       0 0 35px rgba(0, 212, 255, 0.22);
  --glow-sm:    0 0 14px rgba(0, 212, 255, 0.3);
  --scan:       rgba(0, 212, 255, 0.025);
  --hbg:        rgba(7, 7, 14, 0.88);
}

[data-theme="neon-purple"] {
  --bg:         #09000f;
  --bg2:        #110020;
  --bg3:        #1a0032;
  --card:       rgba(22, 0, 44, 0.85);
  --accent:     #d946ef;
  --accent2:    #7c3aed;
  --accent3:    #fb7185;
  --text:       #f3e8ff;
  --text2:      #a78bfa;
  --border:     rgba(217, 70, 239, 0.14);
  --glow:       0 0 35px rgba(217, 70, 239, 0.22);
  --glow-sm:    0 0 14px rgba(217, 70, 239, 0.3);
  --scan:       rgba(217, 70, 239, 0.025);
  --hbg:        rgba(9, 0, 15, 0.88);
}

[data-theme="neon-green"] {
  --bg:         #020f02;
  --bg2:        #041604;
  --bg3:        #062006;
  --card:       rgba(5, 24, 5, 0.85);
  --accent:     #00ff88;
  --accent2:    #00cc66;
  --accent3:    #a3e635;
  --text:       #e0ffe8;
  --text2:      #6ee7b7;
  --border:     rgba(0, 255, 136, 0.14);
  --glow:       0 0 35px rgba(0, 255, 136, 0.22);
  --glow-sm:    0 0 14px rgba(0, 255, 136, 0.3);
  --scan:       rgba(0, 255, 136, 0.025);
  --hbg:        rgba(2, 15, 2, 0.88);
}

[data-theme="light-clean"] {
  --bg:         #f8fafc;
  --bg2:        #eef2f8;
  --bg3:        #e2e8f0;
  --card:       rgba(255, 255, 255, 0.92);
  --accent:     #6366f1;
  --accent2:    #8b5cf6;
  --accent3:    #ec4899;
  --text:       #1e293b;
  --text2:      #64748b;
  --border:     rgba(99, 102, 241, 0.18);
  --glow:       0 4px 24px rgba(99, 102, 241, 0.18);
  --glow-sm:    0 2px 10px rgba(99, 102, 241, 0.22);
  --scan:       transparent;
  --hbg:        rgba(248, 250, 252, 0.92);
}

/* Apply theme */
body { background: var(--bg); color: var(--text); }

/* ===================================================
   BACKGROUND CANVAS + SCAN LINES
   =================================================== */

#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scan-lines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    var(--scan),
    var(--scan) 1px,
    transparent 1px,
    transparent 5px
  );
}

/* ===================================================
   HEADER / NAVBAR
   =================================================== */

#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--hbg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
#siteHeader.scrolled {
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Logo */
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo .bracket,
.nav-logo em { color: var(--accent); font-style: normal; }

/* Nav links */
.nav-menu { display: flex; gap: 36px; }
.nav-menu a {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
  position: relative;
  transition: color var(--transition);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  box-shadow: var(--glow-sm);
  transition: width var(--transition);
}
.nav-menu a:hover        { color: var(--accent); }
.nav-menu a:hover::after { width: 100%; }

/* Actions group */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===================================================
   LANGUAGE SWITCHER
   =================================================== */

.lang-switcher {
  display: flex;
  gap: 3px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 4px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn img {
  border-radius: 2px;
  flex-shrink: 0;
}
.lang-btn.active {
  background: var(--accent);
  color: #000;
  font-weight: 900;
}
.lang-btn:not(.active):hover {
  background: var(--bg3);
  color: var(--text);
}

/* ===================================================
   THEME PICKER
   =================================================== */

.theme-picker { position: relative; }

.theme-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-btn:hover {
  background: var(--bg3);
  box-shadow: var(--glow-sm);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  width: 190px;
  box-shadow: var(--glow), 0 10px 40px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 300;
}
.theme-picker.open .theme-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.theme-menu-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text2);
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 8px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-option:hover   { background: var(--bg3); color: var(--text); }
.theme-option.active  { color: var(--accent); }

.color-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.check-icon {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0;
  color: var(--accent);
}
.theme-option.active .check-icon { opacity: 1; }

/* ===================================================
   HAMBURGER (mobile)
   =================================================== */

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   HERO SECTION
   =================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Hero text */
.hero-text { flex: 1; max-width: 580px; }

.hero-eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--accent);
  box-shadow: var(--glow-sm);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Glitch effect on LUAN */
.glitch {
  position: relative;
  color: var(--text);
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
}
.glitch::before {
  color: var(--accent);
  clip-path: inset(0 0 100% 0);
  animation: glitch-1 4s infinite;
}
.glitch::after {
  color: var(--accent2);
  clip-path: inset(100% 0 0 0);
  animation: glitch-2 4s infinite;
}

@keyframes glitch-1 {
  0%,90%,100% { clip-path: inset(0 0 100% 0); transform: none; }
  91%          { clip-path: inset(25% 0 55% 0); transform: skewX(-3deg) translateX(-2px); }
  93%          { clip-path: inset(65% 0 15% 0); transform: skewX(2deg)  translateX(2px);  }
  95%          { clip-path: inset(10% 0 75% 0); transform: skewX(-1deg); }
}
@keyframes glitch-2 {
  0%,88%,100% { clip-path: inset(100% 0 0 0); transform: none; }
  89%          { clip-path: inset(55% 0 30% 0); transform: skewX(3deg) translateX(2px);  }
  91%          { clip-path: inset(20% 0 65% 0); transform: skewX(-2deg) translateX(-2px); }
}

.hero-subtitle {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  font-weight: 400;
  color: var(--text2);
  letter-spacing: 0.1em;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text2);
  max-width: 440px;
  margin-bottom: 34px;
}

/* Buttons */
.hero-btns {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 9px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: var(--glow);
}
.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: var(--glow), 0 8px 24px rgba(0,0,0,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-sm);
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  margin-top: 2px;
}
.stat-div {
  width: 1px; height: 44px;
  background: var(--border);
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 360px; height: 360px;
  flex-shrink: 0;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--border);
  animation: spin linear infinite;
}
.orbit-1 { inset: 0;    border-color: color-mix(in srgb, var(--accent) 40%, transparent);  animation-duration: 10s; }
.orbit-2 { inset: 28px; border-color: color-mix(in srgb, var(--accent2) 30%, transparent); animation-duration: 14s; animation-direction: reverse; }
.orbit-3 { inset: 56px; border-color: color-mix(in srgb, var(--accent3) 25%, transparent); animation-duration: 22s; }

.orbit-dot {
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: var(--glow-sm);
}
.orbit-2 .orbit-dot { background: var(--accent2); }
.orbit-3 .orbit-dot { background: var(--accent3); }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-avatar-wrap {
  position: absolute;
  inset: 84px;
  border-radius: 50%;
}
.hero-avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.hero-avatar-border {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent2), var(--accent3), var(--accent));
  z-index: 0;
  animation: spin 6s linear infinite;
}
.hero-avatar-glow {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 68%);
  z-index: 0;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text2);
  z-index: 3;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(9px); }
}

/* ===================================================
   SECTIONS — shared
   =================================================== */

.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.25;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}
.section-desc {
  font-size: 1rem;
  color: var(--text2);
}

/* ===================================================
   GALLERY SECTION
   =================================================== */

.gallery-section { background: var(--bg2); }

/* Filter bar */
.filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 24px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  box-shadow: var(--glow-sm);
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Items */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.45s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Aspect ratios */
.gallery-item.thumbnail { aspect-ratio: 16/9; }
.gallery-item.profile   { aspect-ratio: 1/1; }
.gallery-item.banner    { aspect-ratio: 4/1; grid-column: span 3; }

/* Hover overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.overlay-zoom {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 48px; height: 48px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--transition), opacity var(--transition);
  opacity: 0;
}
.gallery-item:hover .overlay-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.overlay-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.overlay-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===================================================
   CONTACT SECTION
   =================================================== */

.contact-section { background: var(--bg); }

.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.social-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--glow);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.social-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.social-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  transition: transform var(--transition);
}
.social-card:hover .social-icon-wrap { transform: scale(1.1); }

.insta { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; }
.x-tw  { background: #000; color: #fff; border: 1px solid #333; }
.disc  { background: #5865F2; color: #fff; }

.social-arrow {
  color: var(--text2);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.social-card:hover .social-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

.social-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.social-handle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.social-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.social-card:hover .social-bar { transform: scaleX(1); }
.insta-bar { background: linear-gradient(90deg,#f09433,#bc1888); }
.x-bar     { background: linear-gradient(90deg,#555,#fff); }
.disc-bar  { background: #5865F2; }

.contact-note {
  text-align: center;
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===================================================
   FOOTER
   =================================================== */

.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
}
.footer-logo .bracket,
.footer-logo em { color: var(--accent); font-style: normal; }
.footer-text { color: var(--text2); font-size: 0.82rem; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 0.88rem;
  transition: all var(--transition);
}
.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

/* ===================================================
   LIGHTBOX
   =================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox.hidden { display: none; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-box {
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
}

.lb-img-wrap { display: flex; align-items: center; justify-content: center; }

#lbImg {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.9), var(--glow);
  display: block;
}

.lb-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lb-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}
.lb-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
}

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 1002;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ===================================================
   BACK TO TOP
   =================================================== */

.back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
}
.back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-top:hover { filter: brightness(1.15); transform: translateY(-3px); }

/* ===================================================
   SCROLL REVEAL
   =================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero-visual { width: 300px; height: 300px; }
  .hero-avatar-wrap { inset: 70px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.banner { grid-column: span 2; aspect-ratio: 3/1; }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  /* Mobile nav */
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    z-index: 199;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-menu li:last-child a { border-bottom: none; }
  .hamburger { display: flex; }

  /* Hero stacked */
  .hero-inner {
    flex-direction: column-reverse;
    gap: 36px;
    padding-top: 36px;
    padding-bottom: 36px;
    text-align: center;
  }
  .hero-eyebrow  { justify-content: center; }
  .hero-btns     { justify-content: center; }
  .hero-stats    { justify-content: center; }
  .hero-desc     { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-visual   { width: 240px; height: 240px; }
  .hero-avatar-wrap { inset: 56px; }

  /* Contact */
  .socials-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* Small mobile */
@media (max-width: 580px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.banner { grid-column: span 1; aspect-ratio: 2/1; }

  .lang-btn span { display: none; } /* hide text, keep flag */
  .lang-btn { padding: 5px 8px; }
}

@media (max-width: 400px) {
  .hero-stats { gap: 14px; }
  .stat-num   { font-size: 1.5rem; }
}
