/* ═══════════════════════════════════════════════════════
   franzspace.cz — Design System CSS
   v1.1 | Frantisek Vltavsky
═══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ────────────────────────────────────── */
:root {
  --bg-base:        #121214; /* Slightly lighter black */
  --bg-surface:     #1a1a1d;
  --bg-elevated:    #242429;
  --bg-overlay:     rgba(20,20,24,0.8); /* Glass effect base */
  --glass-blur:     blur(12px);
  --glass-bg:       rgba(255, 255, 255, 0.03);
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-sheen:    linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 40%);

  --neon-line:      rgba(139,92,246,0.5);
  --neon-line-hover: rgba(139,92,246,0.95);
  --neon-glow:      0 0 6px rgba(139,92,246,0.35), 0 0 20px rgba(139,92,246,0.22), 0 0 44px rgba(139,92,246,0.1);
  --neon-glow-hover: 0 0 10px rgba(139,92,246,0.65), 0 0 30px rgba(139,92,246,0.4), 0 0 64px rgba(139,92,246,0.2);

  --text-primary:   #F4F0EB;
  --text-secondary: #A89F95;
  --text-muted:     #D97706;
  --text-inverse:   #0A0A0A;
  --accent:         #8B5CF6;
  --accent-hover:   #A78BFA;
  --accent-muted:   rgba(139, 92, 246, 0.15);
  
  --shadow-3d:      0 6px 20px -10px rgba(0,0,0,0.3), 0 0 1px 0 rgba(255,255,255,0.08) inset; /* 3D Depth — softened */
  
  --border-subtle:  rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.12);
  --border-strong:  rgba(255,255,255,0.22);
  --success:        #4CAF88;
  --warning:        #E8A838;
  --error:          #E05252;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-full:    9999px;
  --font-display:   'Space Grotesk', sans-serif;
  --font-body:      'Space Grotesk', sans-serif;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;
  --transition:     250ms ease;
  --transition-slow:450ms cubic-bezier(0.25,0.46,0.45,0.94);
  --nav-h:          68px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.6);
}

/* ── GLASS + NEON TILE SYSTEM ─────────────────────────── */
.service-card, .service-full-card, .featured-item, .genre-tile, .portal-login-box, .folder-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur) saturate(140%);
  -webkit-backdrop-filter: var(--glass-blur) saturate(140%);
  border: 1px solid var(--neon-line);
  box-shadow: var(--shadow-3d), var(--neon-glow);
  transition: box-shadow 360ms ease, border-color 360ms ease;
}
.service-card::after, .service-full-card::after, .featured-item::after,
.genre-tile::after, .portal-login-box::after, .folder-card::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--glass-sheen);
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
}
.service-card:hover, .service-full-card:hover, .featured-item:hover,
.genre-tile:hover, .folder-card:hover {
  border-color: var(--neon-line-hover);
  box-shadow: var(--shadow-3d), var(--neon-glow-hover);
}

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background:
    radial-gradient(ellipse 900px 600px at 12% -10%, rgba(139,92,246,0.09), transparent 60%),
    radial-gradient(ellipse 700px 500px at 88% 15%, rgba(139,92,246,0.06), transparent 55%),
    radial-gradient(ellipse 800px 700px at 50% 100%, rgba(139,92,246,0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 55%, var(--bg-base) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── SKIP LINK ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%; left: 16px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-size: 0.875rem;
  font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── PAGE ROUTING ─────────────────────────────────────── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ── NAVIGATION ───────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border-subtle);
}
.nav-logo {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 40px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active { border-color: var(--accent); }
.nav-portal-btn {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}
.nav-portal-btn:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--bg-base);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 48px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { font-size: 1.5rem; letter-spacing: 0.1em; text-align: center; }
.mobile-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 1.5rem; color: var(--text-secondary);
  cursor: pointer; line-height: 1;
}

/* ── SHARED UTILITIES ─────────────────────────────────── */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 48px; }
.section    { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-label {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.divider { height: 1px; background: var(--border-subtle); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform 120ms ease,
              box-shadow 360ms ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent); color: var(--text-inverse);
  border: 1px solid var(--accent);
  box-shadow: var(--neon-glow);
}
.btn-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  box-shadow: var(--neon-glow-hover);
}
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: none; padding: 8px 0; letter-spacing: 0.05em; text-transform: none;
  font-size: 0.85rem; font-weight: 400;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost::after { content: " →"; }

/* ── FOCUS ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ════════════════════════════════════════════════════════
   HOMEPAGE — HERO
════════════════════════════════════════════════════════ */
.hero {
  height: 100vh; min-height: 600px;
  position: relative;
  display: flex; align-items: flex-end;
  padding-bottom: 96px;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.6; /* Adjust opacity for neon-space feel */
  filter: hue-rotate(190deg) contrast(1.2) brightness(0.8); /* Apply neon look */
}
/* Fallback gradient when photo fails to load */
.hero-bg-fallback {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, #0A0A0A 0%, #1A1512 30%, #0D0B08 60%, #050505 100%);
}
.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.15) 0%,
    rgba(10,10,10,0) 30%,
    rgba(10,10,10,0.65) 70%,
    rgba(10,10,10,0.96) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 0 48px; width: 100%;
}
.hero-label {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: block;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic; color: var(--text-secondary);
  display: block; font-weight: 300;
}
.hero-sub {
  font-size: 0.95rem; color: var(--text-secondary);
  margin-bottom: 44px; font-weight: 300;
  letter-spacing: 0.02em;
}
.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.1); }
}

/* ════════════════════════════════════════════════════════
   HOMEPAGE — FEATURED PORTFOLIO
════════════════════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 260px 180px;
  gap: 8px;
}
.featured-item {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--radius-sm);
}
.featured-item:first-child { grid-row: 1 / 3; }
.featured-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.featured-item:hover img { transform: scale(1.04); }
.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition);
}
.featured-item:hover .featured-overlay { opacity: 1; }
.featured-tag {
  position: absolute; bottom: 12px; left: 12px;
  font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(240,237,232,0.8);
  opacity: 0; transition: opacity var(--transition);
}
.featured-item:hover .featured-tag { opacity: 1; }

/* ════════════════════════════════════════════════════════
   HOMEPAGE — SERVICES PREVIEW
════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.service-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  transition: border-color 360ms ease, background var(--transition), box-shadow 360ms ease;
  cursor: pointer;
}
.service-card:hover {
  background: var(--accent-muted);
}
.service-num {
  font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 20px;
  display: block;
}
.service-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 900;
  line-height: 1.2; margin-bottom: 16px;
  color: var(--text-primary);
}
.service-desc {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 28px;
}

/* ════════════════════════════════════════════════════════
   HOMEPAGE — CTA BAND
════════════════════════════════════════════════════════ */
.cta-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 0;
  text-align: center;
}
.cta-band .section-title { margin-bottom: 16px; }
.cta-band p { color: var(--text-secondary); margin-bottom: 40px; font-size: 0.95rem; }

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-logo {
  font-family: var(--font-body); font-weight: 300;
  font-size: 1.1rem; letter-spacing: 0.06em;
  color: var(--text-primary); margin-bottom: 12px;
}
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.footer-col-title {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 0.85rem; color: var(--text-secondary);
  transition: color var(--transition); cursor: pointer;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════
   PORTFOLIO PAGE
════════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 64px;
  border-bottom: 1px solid var(--border-subtle);
}
.gallery-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 48px; margin-bottom: 48px;
}
.filter-btn {
  padding: 9px 22px;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition); cursor: pointer;
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent); color: var(--text-inverse);
  border-color: var(--accent);
}
.gallery-grid {
  columns: 3; column-gap: 8px;
  padding: 0 48px 48px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 8px;
  position: relative; overflow: hidden;
  cursor: pointer; border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}
.gallery-item img {
  width: 100%; display: block;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background var(--transition);
  display: flex; align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.35); }
.gallery-item-meta { opacity: 0; transition: opacity var(--transition); }
.gallery-item:hover .gallery-item-meta { opacity: 1; }
.gallery-item-meta span {
  display: block; font-size: 0.7rem;
  color: rgba(240,237,232,0.8);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.96);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 1.5rem; color: var(--text-secondary);
  cursor: pointer; line-height: 1;
  transition: color var(--transition); z-index: 10;
  background: none; border: none;
}
.lightbox-close:hover { color: var(--text-primary); }
.lightbox-img {
  max-width: 85vw; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--text-secondary);
  cursor: pointer; z-index: 10; padding: 16px;
  transition: color var(--transition);
  background: none; border: none;
}
.lightbox-nav:hover { color: var(--accent); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-info {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 300;
  color: var(--text-primary); margin-bottom: 6px;
}
.lightbox-exif {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--text-muted);
  letter-spacing: 0.06em;
}
.lightbox-counter {
  position: absolute; top: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem; color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ════════════════════════════════════════════════════════
   SERVICES PAGE
════════════════════════════════════════════════════════ */
.services-full {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; margin-top: 0;
  background: var(--neon-line);
  border: 1px solid var(--neon-line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--neon-glow);
  transition: box-shadow 360ms ease;
}
.services-full:hover { box-shadow: var(--neon-glow-hover); }
.service-full-card {
  padding: 56px 48px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur) saturate(140%);
  -webkit-backdrop-filter: var(--glass-blur) saturate(140%);
  transition: background var(--transition);
}
.service-full-card:hover { background: rgba(139,92,246,0.06); }
.service-full-card:nth-child(even) { border-right: none; }
.service-full-card:nth-last-child(-n+2) { border-bottom: none; }
.service-full-num {
  font-size: 0.65rem; color: var(--accent);
  letter-spacing: 0.12em; margin-bottom: 24px; display: block;
}
.service-full-name {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 900; line-height: 1.15;
  margin-bottom: 20px;
}
.service-full-desc {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: 28px;
}
.service-full-list { list-style: none; margin-bottom: 32px; }
.service-full-list li {
  font-size: 0.82rem; color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; gap: 12px;
}
.service-full-list li::before { content: '→'; color: var(--accent); flex-shrink: 0; }

/* ════════════════════════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 96px; align-items: start;
  padding: calc(var(--nav-h) + 80px) 0 120px;
}
.contact-info { position: sticky; top: 120px; }
.contact-info-item { margin-bottom: 40px; }
.contact-info-label {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.contact-info-value {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6;
}
.contact-info-value a { transition: color var(--transition); }
.contact-info-value a:hover { color: var(--accent); }
.form-group { margin-bottom: 28px; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 400;
  color: var(--text-secondary); margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.form-label .required { color: var(--accent); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 14px 18px;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-elevated); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-success {
  display: none;
  background: rgba(76,175,136,0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.875rem; color: var(--success);
  margin-top: 20px;
}
.form-success.show { display: block; }

/* ════════════════════════════════════════════════════════
   PORTAL — LOGIN
════════════════════════════════════════════════════════ */
#page-portal { display: none; min-height: 100vh; background: var(--bg-base); align-items: center; justify-content: center; }
#page-portal.active { display: flex; }
.portal-login-box {
  width: 100%; max-width: 400px;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  margin: 0 24px;
}
.portal-logo {
  font-family: var(--font-body); font-weight: 300;
  font-size: 1.1rem; letter-spacing: 0.08em;
  color: var(--text-primary); margin-bottom: 6px;
}
.portal-subtitle {
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 40px;
}
.portal-error {
  display: none; background: rgba(224,82,82,0.1);
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.82rem; color: var(--error);
  margin-bottom: 20px;
}
.portal-error.show { display: block; }
.portal-back {
  font-size: 0.75rem; color: var(--text-muted);
  cursor: pointer; margin-top: 24px; text-align: center;
  display: block; transition: color var(--transition);
}
.portal-back:hover { color: var(--accent); }

/* ── PORTAL DASHBOARD ─────────────────────────────────── */
.portal-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center;
  padding: 0 48px;
}
.portal-dashboard { padding: calc(var(--nav-h) + 48px) 0 80px; min-height: 100vh; }
.portal-greeting {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 300;
  margin-bottom: 8px;
}
.portal-greeting span { color: var(--accent); }
.portal-info-bar {
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.82rem; color: var(--text-secondary);
  margin-bottom: 48px; display: flex; align-items: center; gap: 10px;
}
.portal-info-bar::before { content: '↳'; color: var(--accent); font-size: 1rem; }
.folder-card {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  transition: border-color 360ms ease, background var(--transition), box-shadow 360ms ease;
  cursor: pointer;
}
.folder-card:hover { background: rgba(139,92,246,0.05); }
.folder-left { display: flex; align-items: center; gap: 20px; }
.folder-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent-muted);
  border: 1px solid rgba(201,169,110,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.folder-name { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.folder-meta { font-size: 0.75rem; color: var(--text-muted); }
.folder-expiry { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.expiry-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.btn-download {
  padding: 10px 20px; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--accent);
  border: 1px solid rgba(201,169,110,0.35);
  border-radius: var(--radius-sm);
  transition: all var(--transition); cursor: pointer;
  font-family: var(--font-body); font-weight: 500;
  white-space: nowrap;
}
.btn-download:hover { background: var(--accent-muted); border-color: var(--accent); }
.portal-logout {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer;
  transition: color var(--transition);
  margin-left: auto;
}
.portal-logout:hover { color: var(--error); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .container, .container-narrow { padding: 0 24px; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 5rem); }
  .services-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; padding-top: calc(var(--nav-h) + 48px); }
  .contact-info { position: static; }
  .services-full { grid-template-columns: 1fr; }
  .service-full-card:nth-child(even) { border-right: none; }
  .featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .featured-item:first-child { grid-row: auto; }
  .portal-nav { padding: 0 24px; }
  .portal-dashboard .container { padding: 0 24px; }
  .folder-card { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 600px) {
  .gallery-grid { columns: 1; padding: 0 24px 48px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .featured-grid { grid-template-columns: 1fr; }
  .services-full { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
