/* ============================================================
   LYDIA D. CABASCO — INSTRUCTIONAL DESIGN PORTFOLIO
   Design System: Minimalist Portfolio × eLearning Professional
   Fonts:  Archivo (headings) · Space Grotesk (body)
   Palette: Slate Navy · Learning Teal · Achievement Orange
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  /* Color palette */
  --navy:          #0F172A;   /* Primary — authority, depth */
  --navy-mid:      #1E293B;   /* Elevated surfaces, nav */
  --navy-soft:     #334155;   /* Secondary text on dark */
  --teal:          #0D9488;   /* Learning — growth, clarity */
  --teal-dark:     #0F766E;   /* Teal pressed / hover */
  --teal-light:    #CCFBF1;   /* Teal tint backgrounds */
  --teal-xlight:   #F0FDFA;   /* Section tints */
  --orange:        #F97316;   /* Achievement — CTA, featured */
  --orange-dark:   #EA6C0A;   /* Orange hover */
  --orange-light:  #FFF7ED;   /* Orange tint */

  /* Neutrals */
  --bg:            #F8FAFC;   /* Page background */
  --surface:       #FFFFFF;   /* Card / section surface */
  --surface-2:     #F1F5F9;   /* Subtle raised surface */
  --border:        #E2E8F0;   /* Default border */
  --border-strong: #CBD5E1;   /* Emphasized border */
  --text:          #0F172A;   /* Primary text */
  --text-2:        #334155;   /* Secondary text */
  --text-muted:    #64748B;   /* Muted — passes 4.5:1 on white */
  --text-xmuted:   #94A3B8;   /* Labels, hints only */

  /* Typography */
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  /* Type scale (1.25 Major Third) */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px — body minimum */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* Spacing (4px grid) */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 6px rgba(15,23,42,0.04), 0 2px 4px rgba(15,23,42,0.06);
  --shadow-lg:  0 10px 24px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.05);
  --shadow-xl:  0 20px 48px rgba(15,23,42,0.12), 0 8px 16px rgba(15,23,42,0.06);

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-base:   200ms;
  --duration-slow:   300ms;

  /* Z-index scale */
  --z-base:    10;
  --z-overlay: 20;
  --z-modal:   30;
  --z-nav:     50;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

a { color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-logo:hover { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a:hover { color: var(--text); }

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--navy) !important;
  color: #fff !important;
  font-size: var(--text-xs) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4) !important;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease-out) !important;
  cursor: pointer;
}

.nav-admin-btn:hover {
  background: var(--teal) !important;
  color: #fff !important;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(64px + var(--space-24)) var(--space-8) var(--space-24);
  overflow: hidden;
  background: var(--navy);
}

/* Gradient layers */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(13,148,136,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(249,115,22,0.12) 0%, transparent 60%),
    linear-gradient(165deg, #0F172A 0%, #1E293B 50%, #0F2A26 100%);
  pointer-events: none;
}

/* Dot grid texture */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.3);
  color: #5EEAD4;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow-dot { animation: none; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
}

.hero-title-name {
  display: block;
  color: #fff;
}

.hero-title-role {
  display: block;
  background: linear-gradient(135deg, #2DD4BF 0%, #5EEAD4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 2.2vw, var(--text-xl));
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
  font-weight: 300;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-full);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
}

/* ── SECTION SHELL ── */
section { padding: var(--space-24) var(--space-8); }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header { margin-bottom: var(--space-12); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--teal);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── FILTER TABS ── */
.filter-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.filter-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.filter-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}

/* ── SAMPLES SECTION ── */
#samples { background: var(--bg); }

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

/* ── SAMPLE CARD ── */
.sample-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.sample-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.sample-card.hidden { display: none; }

/* Card top accent bar — teal by default, orange for featured */
.sample-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), #2DD4BF);
  flex-shrink: 0;
}

.sample-card[data-featured="true"]::before {
  background: linear-gradient(90deg, var(--orange), #FBA043);
}

/* ── CARD MEDIA ── */
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--navy) 0%, #1A3A52 100%);
  overflow: hidden;
  flex-shrink: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.sample-card:hover .card-media img {
  transform: scale(1.04);
}

.card-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.35);
}

.card-media-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.card-media-placeholder-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* Hover overlay */
.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.sample-card:hover .card-play-overlay { opacity: 1; }

.play-btn {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transform: scale(0.85);
  transition: transform var(--duration-base) var(--ease-out);
}

.sample-card:hover .play-btn { transform: scale(1); }

.play-btn svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
  margin-left: 3px; /* optical center for play triangle */
}

/* Media badges */
.card-type-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.card-type-badge svg { width: 10px; height: 10px; }

.card-featured-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}

.card-featured-badge svg { width: 9px; height: 9px; }

/* ── CARD BODY ── */
.card-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card-category {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.card-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card-description {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  background: var(--teal-xlight);
  color: var(--teal-dark);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(13,148,136,0.15);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition:
    gap var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  margin-top: auto;
  padding-top: var(--space-2);
}

.card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.card-cta:hover { color: var(--teal-dark); }
.card-cta:hover svg { transform: translateX(3px); }

/* ── ABOUT SECTION ── */
#about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-photo-wrap { position: relative; }

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-xl);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--navy) 0%, #1A3A52 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-xl);
}

.about-photo-placeholder svg {
  width: 72px;
  height: 72px;
  color: rgba(255,255,255,0.25);
}

.about-photo-placeholder-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

/* Floating teal accent on photo */
.about-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--teal) 0%, #2DD4BF 100%);
  opacity: 0.15;
  z-index: -1;
}

.about-content { padding-top: var(--space-2); }

.about-body {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: 1.8;
  white-space: pre-line;
  margin-bottom: var(--space-8);
  font-weight: 300;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.about-stat-value {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.04em;
  line-height: 1;
}

.about-stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: var(--space-1);
  line-height: 1.4;
}

.skills-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.skill-pill:hover {
  border-color: var(--teal);
  background: var(--teal-xlight);
  color: var(--teal-dark);
}

/* ── CONTACT SECTION ── */
#contact {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(13,148,136,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 60%, rgba(249,115,22,0.08) 0%, transparent 60%);
  pointer-events: none;
}

#contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

#contact .section-label {
  color: rgba(94,234,212,0.8);
  justify-content: center;
}

#contact .section-label::before { background: rgba(94,234,212,0.5); }

#contact .section-title { color: #fff; }

.contact-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0 auto var(--space-10);
  font-weight: 300;
}

.contact-links {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition:
    background var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.contact-link:active { transform: translateY(1px); }

.contact-link-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}

.contact-link-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.45);
}

.contact-link-secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.contact-link-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  background: #060D18;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-6) var(--space-8);
  text-align: center;
}

.footer-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(9,9,11,0.85);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  position: relative;
  animation: modal-in var(--duration-slow) var(--ease-out);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modal { animation: none; }
}

.modal-close-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.6);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.modal-close-btn:hover { background: rgba(15,23,42,0.9); }
.modal-close-btn svg { width: 16px; height: 16px; }

.modal-media {
  aspect-ratio: 16/9;
  background: var(--navy);
}

.modal-media iframe,
.modal-media video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.modal-media-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: rgba(255,255,255,0.35);
  font-family: var(--font-body);
}

.modal-media-empty svg { width: 48px; height: 48px; }

.modal-info {
  padding: var(--space-6) var(--space-8) var(--space-8);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
}

.modal-info-text { flex: 1; }

.modal-title {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.modal-description {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-open-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--teal);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    background var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.modal-open-link svg { width: 14px; height: 14px; }

.modal-open-link:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.fade-up:nth-child(2) { transition-delay: 80ms; }
.fade-up:nth-child(3) { transition-delay: 160ms; }
.fade-up:nth-child(4) { transition-delay: 240ms; }
.fade-up:nth-child(5) { transition-delay: 320ms; }
.fade-up:nth-child(6) { transition-delay: 400ms; }

/* ── EMPTY STATE ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-24) var(--space-8);
  color: var(--text-muted);
}

.empty-state svg {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  color: var(--border-strong);
}

.empty-state p { font-family: var(--font-body); font-size: var(--text-lg); }
.empty-state a { color: var(--teal); text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 240px 1fr; gap: var(--space-10); }
}

@media (max-width: 768px) {
  nav { padding: 0 var(--space-5); }
  .nav-links { gap: var(--space-5); }
  section { padding: var(--space-16) var(--space-5); }
  .samples-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-photo-wrap::after { display: none; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .modal-info { flex-direction: column; }
  .modal-info { padding: var(--space-5); }
}

@media (max-width: 480px) {
  .nav-links .hide-mobile { display: none; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .contact-links { flex-direction: column; align-items: center; }
}
