/*
  Modern, accessible, responsive portfolio styles
  Typeface: Inter
  Color system: HSL with CSS variables, dark theme default
*/

:root {
  --bg: 204 12% 8%;
  --text: 0 0% 100%;
  --muted: 0 0% 100%;
  --card: 204 12% 8%; /* onyx black 121517 */
  --border: 264 81% 84%;
  --brand1: 264 81% 84%; /* mauve D0B5F7 */
  --brand2: 172 86% 88%;  /* icy aqua C6FBF4 */
  --accent: 169 89% 96%; /* azure mist ECFEFB */
  --shadow: 169 89% 96%;
}

/* peach fuzz FFCAB1 */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: hsl(var(--text));
  background: hsl(var(--bg));
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.brand .brand-text,
.card h3,
.timeline-card h3,
.edu-list strong {
  font-family: 'Geist Mono', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #C8FBF4;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, hsl(var(--bg)) 85%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  text-decoration: none;
}
.brand .brand-text { font-weight: 600; letter-spacing: 0.1px; }

.nav { display: flex; align-items: center; gap: 1rem; }
.nav a {
  color: #FFFFFF;
  text-decoration: none;
  opacity: 1;
  font-family: 'Geist Mono', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}
.nav a:hover { opacity: 1; color: #EEFEFB; }

.theme-toggle {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: .35rem .55rem;
  border-radius: 8px;
  cursor: pointer;
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  font-size: 1.25rem;
  color: hsl(var(--text));
}

/* Hero */
.hero { padding: 3.5rem 0 2rem; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.2vw + 1rem, 3rem); line-height: 1.15; margin: 0 0 .5rem; }
.subtitle { color: hsl(var(--muted)); margin: 0 0 1rem; }
.subtitle b { color: #C8FBF4; }

.hero-cta { display: flex; gap: .75rem; margin: 1rem 0 1.25rem; }
.btn {
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  text-decoration: none;
  color: hsl(var(--text));
  background: hsl(var(--card));
  font-family: 'Geist Mono', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 20px hsl(var(--shadow) / .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px hsl(var(--shadow) / .18);
}
.btn.primary {
  background: hsl(var(--brand2));
  border-color: hsl(var(--brand2));
  color: #000;
}

.social { display: flex; gap: .85rem; margin-bottom: 1rem; }
.social a { color: #EEFEFB; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.social a:hover { color: #EEFEFB; }
.social i { font-size: 1rem; }

.hero-visual .avatar {
  width: 200px;
  max-width: 100%;
  margin-inline: auto;
  filter: none;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.hero-visual .avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-visual-mobile { display: none; }
.hero-visual .avatar svg {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.1);
}

/* Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Sections */
.section-title { font-size: 1.65rem; margin: 0 0 .2rem; }
.section-subtitle { color: hsl(var(--muted)); margin: 0 0 1.2rem; }
.projects .section-title { margin-bottom: 1rem; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card { position: relative; border: 0.4px solid hsl(var(--border)); border-radius: 4px; overflow: clip; background: hsl(var(--bg)); box-shadow: 0 4px 20px hsl(var(--shadow) / .12); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px hsl(var(--shadow) / .18); }
.card-media { aspect-ratio: 16/9; background: linear-gradient(135deg, hsl(var(--brand1)), hsl(var(--brand2))); }
.gradient-1 { background: linear-gradient(135deg, hsl(var(--brand1)), hsl(var(--brand2))); }
.gradient-2 { background: linear-gradient(135deg, hsl(var(--brand2)), hsl(var(--accent))); }
.gradient-3 { background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--brand1))); }
.card-body { padding: .9rem 1rem 1.1rem; }
.card h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.card p { margin: 0 0 .6rem; color: hsl(var(--muted)); }
.projects .card-body b { color: #C8FBF4; }
.card .meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.card .meta li { font-size: .8rem; border: 1px solid #EEFEFB; border-radius: 999px; padding: .2rem .45rem; color: #EEFEFB; }
.card-actions { margin-top: .65rem; position: relative; z-index: 1; }
.btn.sm { padding: .45rem .7rem; font-size: .9rem; }
.card-link { position: absolute; inset: 0; text-indent: -9999px; }

/* Tech Stack */
.tech { padding: 2.5rem 0; }
.tech .section-title { font-size: 1.45rem; }
.about .section-title { font-size: 1.45rem; }
.production .section-title { font-size: 1.45rem; }
.tech-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tech-card { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 1rem; background: hsl(var(--card)); display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 4px 20px hsl(var(--shadow) / .12); transition: transform .2s ease, box-shadow .2s ease; }
.tech-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px hsl(var(--shadow) / .18); }
.tech-card h3 { margin: 0; font-size: 1rem; }
.tech-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tech-tags li { border: 1px solid #C8FBF4; border-radius: 999px; padding: .2rem .55rem; font-size: .8rem; color: #EEFEFB; }

/* Production / Press */
.production { padding: 2.5rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.press-date { color: hsl(var(--brand1)); text-transform: uppercase; letter-spacing: .6px; font-size: .85rem; margin: .2rem 0 .4rem; font-family: 'Geist Mono', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif; }
.production .card-media { aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card p a { color: #EEFEFB; text-decoration: none; }
.card p a:hover { color: #EEFEFB; }
/* Match underlined link styling from project page within production cards */
.production .card p a { color: hsl(var(--accent)); text-decoration: underline; text-underline-offset: 2px; }
.production .card p a:hover { color: hsl(var(--brand2)); }
.production .card p a:visited { color: hsl(var(--accent)); }
.production .card p a:focus-visible { outline: 2px solid hsl(var(--border)); outline-offset: 2px; border-radius: 4px; }
.production .card p a:active { color: hsl(var(--text)); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.timeline li { position: static; }
.timeline-marker { display: none; }
.timeline-card { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: .8rem 1rem; background: hsl(var(--card)); display: flex; flex-direction: column; gap: .35rem; box-shadow: 0 4px 20px hsl(var(--shadow) / .12); transition: transform .2s ease, box-shadow .2s ease; }
.timeline-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px hsl(var(--shadow) / .18); }
.muted { color: hsl(var(--muted)); }
.tag-list { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-list li { border: 1px solid #C8FBF4; border-radius: 999px; padding: .2rem .55rem; font-size: .8rem; color: #EEFEFB; }

/* Education */
.edu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.edu-list li { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: .7rem 1rem; background: hsl(var(--card)); display: flex; flex-direction: column; gap: .35rem; box-shadow: 0 4px 20px hsl(var(--shadow) / .12); transition: transform .2s ease, box-shadow .2s ease; }
.edu-list li:hover { transform: translateY(-2px); box-shadow: 0 10px 28px hsl(var(--shadow) / .18); }

/* Contact */
.contact { padding: 2rem 0 3rem; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .25rem; }
.contact-card { border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 1rem; background: hsl(var(--card)); }

/* Footer */
.site-footer { border-top: 1px solid #C8FBF4; padding: 1rem 0; font-family: 'Geist Mono', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: #EEFEFB; text-decoration: none; }
.footer-links a:hover { color: #EEFEFB; }

.contact-list a { color: #EEFEFB; text-decoration: none; }
.contact-list a:hover { color: #EEFEFB; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tech-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { text-align: left; }
  .hero-visual-desktop { display: none; }
  .hero-visual-mobile { display: block; margin: 0 0 1rem; }
  .hero-visual-mobile .avatar { width: 160px; }
  .hero-cta { justify-content: flex-start; }
  .nav { display: none; position: absolute; top: 56px; right: 1rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: .5rem; flex-direction: column; box-shadow: 0 10px 30px hsl(var(--shadow) / .18); }
  .nav.open { display: flex; }
  .hamburger { display: inline-block; }
  .grid { grid-template-columns: 1fr; }
  .tech-groups { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* Utilities */
.projects, .experience, .education { padding: 2.5rem 0; }
.hero, .projects, .experience, .education, .contact, .production { scroll-margin-top: 70px; }

/* About */
.about { padding: 2.5rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.about-group { border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); padding: 1rem; box-shadow: 0 4px 20px hsl(var(--shadow) / .12); }
.about-header { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 .6rem; }
.about-header h3 { margin: 0; font-size: 1rem; }
.about .timeline { gap: .8rem; }
.about .timeline-card { box-shadow: none; border-radius: 10px; }
.about .timeline-card h3 { font-size: 0.98rem; }
.about .timeline-card .muted { font-size: .9rem; }

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

.about { scroll-margin-top: 70px; }
