/* ============================================================
   FABd Fine Art by Design — Global Stylesheet
   Diana Wunderle
   ============================================================ */

/* ------------------------------------------------------------
   1. Custom Properties (Design Tokens)
   ------------------------------------------------------------ */
:root {
  /* Color Palette */
  --clr-bg:           #0a2a2a;
  --clr-bg-alt:       #0d3535;
  --clr-bg-card:      #0f3d3d;
  --clr-bg-card-hover:#124444;
  --clr-surface:      #112f2f;
  --clr-border:       rgba(255, 255, 255, 0.08);
  --clr-border-accent:rgba(114, 210, 198, 0.3);

  --clr-teal:         #72d2c6;
  --clr-teal-light:   #9de4da;
  --clr-teal-dark:    #4ab8ab;
  --clr-gold:         #c9a84c;
  --clr-gold-light:   #e0c070;

  --clr-text:         #e8f4f2;
  --clr-text-muted:   #8ab8b4;
  --clr-text-faint:   #4d8a84;
  --clr-white:        #ffffff;

  /* Typography */
  --font-display:     'Cormorant Garamond', 'Georgia', serif;
  --font-body:        'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:        'Courier New', monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-w-content: 1200px;
  --max-w-narrow:  800px;
  --nav-height:    70px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-smooth: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders & Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full:9999px;

  /* Shadows */
  --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 8px 32px rgba(0,0,0,0.6);
  --shadow-xl:   0 16px 64px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 30px rgba(114, 210, 198, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--clr-teal-light); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--clr-white);
  font-weight: 400;
}

h1 { font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--clr-teal);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--clr-teal-light);
}

/* ------------------------------------------------------------
   3. Navigation
   ------------------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
  background: rgba(10, 42, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-nav.scrolled {
  background: rgba(10, 42, 42, 0.97);
  box-shadow: var(--shadow-md);
}

.nav-logo {
  flex-shrink: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--clr-white);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-logo-text .brand-sub {
  font-size: var(--text-xs);
  color: var(--clr-teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--clr-teal);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-teal-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  margin-left: var(--space-4);
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-teal);
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    background: rgba(10, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    z-index: 999;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: var(--text-xl);
    padding: var(--space-4) var(--space-8);
    letter-spacing: 0.12em;
  }
}

/* ------------------------------------------------------------
   4. Page Header (non-hero pages)
   ------------------------------------------------------------ */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(114, 210, 198, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .page-title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.page-header .page-subtitle {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

.page-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-teal), transparent);
  margin: var(--space-6) auto;
}

/* ------------------------------------------------------------
   5. Sections & Layout
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

section {
  padding: var(--space-24) 0;
}

section:nth-of-type(even) {
  background-color: var(--clr-bg-alt);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-6);
}

.section-body {
  font-size: var(--text-lg);
  color: var(--clr-text-muted);
  max-width: 680px;
}

/* Two-column split */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ------------------------------------------------------------
   6. Buttons & CTAs
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-teal);
  color: var(--clr-bg);
}
.btn-primary:hover {
  background: var(--clr-teal-light);
  color: var(--clr-bg);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-teal);
  border: 1.5px solid var(--clr-teal);
}
.btn-outline:hover {
  background: rgba(114, 210, 198, 0.1);
  color: var(--clr-teal-light);
  border-color: var(--clr-teal-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
}
.btn-ghost:hover {
  color: var(--clr-text);
  border-color: var(--clr-border-accent);
}

/* ------------------------------------------------------------
   7. Cards
   ------------------------------------------------------------ */
.card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-border-accent);
}

/* ------------------------------------------------------------
   8. Badges
   ------------------------------------------------------------ */
.badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge-available {
  background: rgba(114, 210, 198, 0.15);
  color: var(--clr-teal-light);
  border: 1px solid rgba(114, 210, 198, 0.3);
}

.badge-nfs {
  background: rgba(150, 120, 80, 0.15);
  color: var(--clr-gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.badge-limited {
  background: rgba(180, 100, 140, 0.15);
  color: #e0a0c8;
  border: 1px solid rgba(180, 100, 140, 0.3);
}

.badge-sold {
  background: rgba(120, 120, 120, 0.15);
  color: #a0a0a0;
  border: 1px solid rgba(120, 120, 120, 0.3);
}

/* ------------------------------------------------------------
   9. News & Exhibitions Section
   ------------------------------------------------------------ */
.news-section {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.news-card:hover {
  border-color: var(--clr-border-accent);
  box-shadow: var(--shadow-md);
}

.news-card__type {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.news-card__type--exhibition { color: var(--clr-teal); }
.news-card__type--news       { color: var(--clr-gold); }
.news-card__type--award      { color: #e0a0c8; }

.news-card__date {
  font-size: var(--text-xs);
  color: var(--clr-text-faint);
  letter-spacing: 0.08em;
}

.news-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--clr-text);
  line-height: 1.3;
  margin: 0;
}

.news-card__body {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  flex: 1;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-teal);
  text-decoration: none;
  margin-top: var(--space-2);
  transition: color var(--transition-fast);
}

.news-card__link:hover { color: var(--clr-teal-light); }
.news-card__link::after { content: ' →'; }

/* ------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: #071e1e;
  border-top: 1px solid var(--clr-border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--clr-white);
  display: block;
  margin-bottom: var(--space-2);
}

.footer-brand .brand-tagline {
  font-size: var(--text-sm);
  color: var(--clr-text-faint);
  font-style: italic;
  line-height: 1.6;
  max-width: 280px;
}

.footer-contact-info {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-contact-info a,
.footer-contact-info span {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.footer-contact-info a:hover {
  color: var(--clr-teal);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.footer-links a:hover { color: var(--clr-teal-light); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--clr-text-faint);
  margin-bottom: 0;
}

.footer-gallery-notice {
  background: rgba(114, 210, 198, 0.06);
  border: 1px solid var(--clr-border-accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin-top: var(--space-8);
}

.footer-gallery-notice p {
  font-size: var(--text-sm);
  color: var(--clr-teal-light);
  margin-bottom: 0;
}

.footer-gallery-notice strong {
  color: var(--clr-white);
}

/* ------------------------------------------------------------
   10. Lightbox
   ------------------------------------------------------------ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 15, 15, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
}

.lightbox-caption {
  margin-top: var(--space-4);
  text-align: center;
}

.lightbox-caption .lbx-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--clr-white);
}

.lightbox-caption .lbx-meta {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin-top: var(--space-1);
}

.lightbox-close {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-white);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: background var(--transition-fast);
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.15); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-teal);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  z-index: 10001;
}

.lightbox-nav:hover { background: rgba(114, 210, 198, 0.15); color: var(--clr-teal-light); }
.lightbox-prev { left: var(--space-6); }
.lightbox-next { right: var(--space-6); }

/* ------------------------------------------------------------
   11. Currently Showing Banner
   ------------------------------------------------------------ */
.showing-banner {
  background: linear-gradient(135deg, rgba(12, 50, 50, 0.9), rgba(8, 35, 35, 0.9));
  border: 1px solid var(--clr-border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.showing-dot {
  width: 10px;
  height: 10px;
  background: #4caf72;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px #4caf72;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px #4caf72; }
  50%       { box-shadow: 0 0 16px #4caf72, 0 0 30px rgba(76, 175, 114, 0.4); }
}

.showing-content .showing-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-teal);
  font-weight: 600;
}

.showing-content .showing-venue {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--clr-white);
  line-height: 1.3;
}

.showing-content .showing-details {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin-top: var(--space-1);
}

/* ------------------------------------------------------------
   12. Video Player Cards
   ------------------------------------------------------------ */
.video-card {
  position: relative;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-card-label {
  padding: var(--space-4) var(--space-5);
  background: rgba(10, 30, 30, 0.8);
}

.video-card-label h4 {
  font-size: var(--text-base);
  color: var(--clr-text);
  margin-bottom: var(--space-1);
}

.video-card-label p {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin: 0;
}

/* ------------------------------------------------------------
   13. Studio Photo Grid
   ------------------------------------------------------------ */
.studio-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.studio-photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-slow);
}

.studio-photo-grid img:hover { transform: scale(1.02); }

/* ------------------------------------------------------------
   14. Entrance Animations
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ------------------------------------------------------------
   15. Utility Classes
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.text-muted   { color: var(--clr-text-muted); }
.text-teal    { color: var(--clr-teal); }
.text-gold    { color: var(--clr-gold); }

.mt-auto { margin-top: auto; }
.mb-4    { margin-bottom: var(--space-4); }
.mb-6    { margin-bottom: var(--space-6); }
.mb-8    { margin-bottom: var(--space-8); }
.mb-12   { margin-bottom: var(--space-12); }

.flex            { display: flex; }
.flex-wrap       { flex-wrap: wrap; }
.gap-4           { gap: var(--space-4); }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Separator line */
.rule {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--space-12) 0;
}

/* ------------------------------------------------------------
   16. Contact Form
   ------------------------------------------------------------ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

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

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

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--clr-teal-dark);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(114, 210, 198, 0.1);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* ------------------------------------------------------------
   17. Particle Canvas (Hero)
   ------------------------------------------------------------ */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ------------------------------------------------------------
   18. CV / Timeline
   ------------------------------------------------------------ */
.cv-section {
  margin-bottom: var(--space-12);
}

.cv-section-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--clr-border);
}

.cv-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cv-entry {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--clr-border);
}

.cv-entry:last-child { border-bottom: none; }

.cv-year {
  font-size: var(--text-sm);
  color: var(--clr-teal);
  font-weight: 600;
  padding-top: 2px;
  flex-shrink: 0;
}

.cv-detail {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.cv-detail strong {
  color: var(--clr-text);
  font-weight: 500;
}

.cv-detail em {
  color: var(--clr-teal-dark);
  font-style: normal;
  font-size: var(--text-xs);
}

/* Education items */
.edu-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--clr-border);
}

.edu-item:last-child { border-bottom: none; }

.edu-school {
  font-size: var(--text-base);
  color: var(--clr-text);
  font-weight: 500;
}

.edu-years {
  font-size: var(--text-sm);
  color: var(--clr-teal);
  margin-bottom: var(--space-1);
}

.edu-program {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

/* Installations */
.install-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--clr-border);
}

.install-item:last-child { border-bottom: none; }

/* ------------------------------------------------------------
   19. Responsive Adjustments
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  section    { padding: var(--space-16) 0; }

  .cv-entry {
    grid-template-columns: 55px 1fr;
    gap: var(--space-4);
  }

  .showing-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* ------------------------------------------------------------
   20. Scrollbar Styling (WebKit)
   ------------------------------------------------------------ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: var(--clr-bg-card);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-teal-dark); }

/* Selection */
::selection {
  background: rgba(114, 210, 198, 0.25);
  color: var(--clr-white);
}
