/* ============================================================
   Kaitlyn Williams — GLD ePortfolio Stylesheet
   USC Colors: Garnet #73000A | Gold #C9A84C | Black #1A1A1A
   ============================================================ */

/* --- Variables & Reset --- */
:root {
  --garnet:       #73000A;
  --garnet-dark:  #4d0007;
  --garnet-light: #8f1a23;
  --gold:         #C9A84C;
  --gold-light:   #e2c47a;
  --black:        #1A1A1A;
  --gray-dark:    #444444;
  --gray-mid:     #777777;
  --gray-light:   #E8E8E8;
  --bg-light:     #F7F5F3;
  --white:        #FFFFFF;
  --border:       #D8D0C8;
  --shadow:       rgba(0,0,0,0.10);
  --shadow-lg:    rgba(0,0,0,0.18);

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Courier New', monospace;

  --nav-h:        64px;
  --max-w:        860px;
  --section-pad:  80px 24px;
  --radius:       8px;
  --transition:   0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--garnet); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--black);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1.15em; }
p:last-child { margin-bottom: 0; }

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--garnet);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: background var(--transition);
}

#navbar.scrolled {
  background: var(--garnet-dark);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 400;
  display: block;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
#hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--garnet-dark) 0%, var(--garnet) 50%, #9a1a24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 6px rgba(201,168,76,0.2);
}

.hero-photo-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 6px rgba(201,168,76,0.2);
}

.hero-photo-placeholder svg {
  width: 56px;
  height: 56px;
  fill: rgba(255,255,255,0.35);
}

#hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--gold-light);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 24px auto;
  border-radius: 2px;
}

.hero-intro-text {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
}

.hero-nav-pills a {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.hero-nav-pills a:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--gold);
  color: var(--gold-light);
  text-decoration: none;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg { opacity: 0.6; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- Section Base --- */
.section {
  padding: var(--section-pad);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section--light { background: var(--white); }
.section--gray  { background: var(--bg-light); }

/* Section Header */
.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--garnet);
  margin-bottom: 10px;
}

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

.section-header h2 {
  color: var(--garnet-dark);
  margin-bottom: 12px;
}

.section-header .lead {
  font-size: 1.05rem;
  color: var(--gray-dark);
  max-width: 680px;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  font-style: italic;
  line-height: 1.7;
}

/* Divider */
.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--garnet), var(--gold));
  border-radius: 2px;
  margin: 16px 0 0;
}

/* --- Body Text --- */
.body-text p {
  color: var(--gray-dark);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.2em;
}

.body-text p:last-child { margin-bottom: 0; }

/* --- Key Insight Callout --- */
.insight-callout {
  background: linear-gradient(135deg, var(--garnet-dark), var(--garnet));
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.insight-callout::before {
  content: '\201C';
  position: absolute;
  top: -12px;
  left: 20px;
  font-size: 100px;
  font-family: var(--font-heading);
  color: rgba(201,168,76,0.25);
  line-height: 1;
  pointer-events: none;
}

.insight-callout p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--white);
  position: relative;
  z-index: 1;
  margin: 0;
  font-style: italic;
}

.insight-callout .callout-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-style: normal;
}

/* --- Artifact Grid --- */
.artifacts-section {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.artifacts-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.artifacts-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* Artifact Card — Placeholder */
.artifact-card {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), background var(--transition);
  cursor: default;
}

.artifact-card:hover {
  border-color: var(--garnet-light);
  background: rgba(115,0,10,0.03);
}

.artifact-card.artifact--active {
  border: 2px solid var(--border);
  border-style: solid;
  padding: 0;
  overflow: hidden;
}

.artifact-card.artifact--active iframe {
  width: 100%;
  min-height: 320px;
  border: none;
  display: block;
}

.artifact-card.artifact--active img {
  width: 100%;
  height: auto;
  display: block;
}

.artifact-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--garnet);
  background: rgba(115,0,10,0.08);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.artifact-card .artifact-icon {
  color: var(--gray-light);
}

.artifact-card .artifact-icon svg {
  width: 36px;
  height: 36px;
}

.artifact-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.4;
}

.artifact-desc {
  font-size: 0.8rem;
  color: var(--gray-mid);
  line-height: 1.5;
  margin: 0;
}

.artifact-pending {
  font-size: 0.72rem;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.artifact-pending::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Active artifact card header bar */
.artifact-card-header {
  padding: 10px 14px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.artifact-card-header .artifact-title {
  font-size: 0.82rem;
  color: var(--gray-dark);
  margin: 0;
}

/* Iframe embeds */
.artifact-card.artifact--active iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

/* Image embeds */
.artifact-card.artifact--active img.artifact-img {
  width: 100%;
  height: auto;
  display: block;
}

/* PPTX / Office Online embeds */
.artifact-card.artifact--active.artifact--pptx iframe {
  height: 520px;
}

/* --- Experience / Timeline blocks --- */
.exp-block {
  margin-top: 36px;
  padding: 28px 28px 28px 0;
  border-left: 3px solid var(--garnet);
  padding-left: 28px;
  position: relative;
}

.exp-block::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 30px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--garnet);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--garnet);
}

.exp-block h3 {
  color: var(--garnet-dark);
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.exp-context {
  font-size: 0.82rem;
  color: var(--gray-mid);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

/* --- About Me — Tag chips --- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag {
  display: inline-block;
  background: rgba(115,0,10,0.07);
  border: 1px solid rgba(115,0,10,0.15);
  color: var(--garnet);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

/* --- Leadership pillars --- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--garnet);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pillar-card:hover {
  box-shadow: 0 6px 20px var(--shadow-lg);
  transform: translateY(-2px);
}

.pillar-number {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--garnet-light);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 8px;
}

.pillar-card h3 {
  font-size: 1rem;
  color: var(--garnet-dark);
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.875rem;
  color: var(--gray-dark);
  line-height: 1.65;
  margin: 0;
}

/* --- Footer --- */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px 36px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto 24px;
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --section-pad: 60px 20px; }

  #navbar { padding: 0 20px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--garnet-dark);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 6px; font-size: 1rem; }

  .nav-toggle { display: flex; }

  .hero-nav-pills a { font-size: 0.8rem; padding: 7px 14px; }

  .artifacts-grid { grid-template-columns: 1fr; }

  .pillar-grid { grid-template-columns: 1fr; }

  .insight-callout { padding: 24px 22px; }
  .insight-callout p { font-size: 1rem; }

  .exp-block { padding-left: 20px; }
}

@media (max-width: 480px) {
  .nav-brand span { display: none; }
  #hero h1 { font-size: 2rem; }
}

/* --- Photo Slideshow --- */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 4px 20px var(--shadow-lg);
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 360px;
}

.slideshow-track .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: block;
}

.slideshow-track .slide.active {
  opacity: 1;
}

.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slideshow-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.slideshow-dots .dot.active {
  background: var(--white);
  transform: scale(1.25);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition);
  border-radius: 4px;
}

.slide-btn:hover { background: rgba(0,0,0,0.65); }
.slide-btn--prev { left: 8px; }
.slide-btn--next { right: 8px; }

@media (max-width: 600px) {
  .slideshow-track { height: 260px; }
}

/* --- Restricted artifact notice --- */
.artifact-restricted {
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-mid);
}

.artifact-restricted svg {
  color: var(--border);
}

.artifact-restricted-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin: 0;
  letter-spacing: 0.2px;
}

.artifact-restricted-desc {
  font-size: 0.82rem;
  color: var(--gray-mid);
  max-width: 480px;
  line-height: 1.65;
  margin: 0;
}

/* --- Code block (Artifact 12) --- */
.code-block {
  background: #1e1e2e;
  color: #cdd6f4;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  padding: 24px;
  margin: 0;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 520px;
  white-space: pre;
  border-radius: 0;
}

.code-block code { background: none; padding: 0; font-size: inherit; color: inherit; }

/* --- Utility --- */
.text-garnet { color: var(--garnet); }
.text-gold   { color: var(--gold); }
.mt-sm  { margin-top: 16px; }
.mt-md  { margin-top: 32px; }
.mt-lg  { margin-top: 48px; }
.bold   { font-weight: 700; }
