/* styles.css — SYNA design language
   black / deep purple / red — with gradient and glassmorphic touches
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0A0A0C;
  --black-soft: #131316;
  --black-elevated: #1C1C22;
  --deep-purple: #3B1C7A;
  --purple-light: #5F2A9C;
  --red: #E11D48;
  --red-muted: #B71540;
  --gray-subtle: #A1A1AA;
  --gray-light: #E4E4E7;
  --text-main: #F8F9FA;
  --text-dim: #B0B3C0;
  --border-dim: rgba(95, 42, 156, 0.25);
  --font-stack: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --transition: 0.2s ease;
  
  /* Glassmorphism variables */
  --glass-bg: rgba(20, 20, 28, 0.4);
  --glass-border: rgba(225, 29, 72, 0.2);
  --glass-blur: 12px;
}

body {
  background-color: var(--black);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- header (glassmorphic) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 12, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(225, 29, 72, 0.25);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.brand-mark {
  font-size: 2rem;
  background: linear-gradient(145deg, var(--red) 20%, var(--purple-light) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary-nav .nav-list {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-list a {
  font-weight: 480;
  color: var(--text-dim);
  font-size: 1rem;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: white;
  border-bottom-color: var(--red);
}

.nav-emph {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15), rgba(95, 42, 156, 0.15));
  padding: 8px 18px !important;
  border-radius: 40px;
  border: 1px solid var(--red);
  color: white !important;
  backdrop-filter: blur(4px);
}
.nav-emph:hover {
  background: linear-gradient(135deg, var(--red), var(--deep-purple));
  border-bottom-color: transparent !important;
}

.menu-trigger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.9rem;
  cursor: pointer;
}

/* ---------- intro ---------- */
.intro-block {
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(95, 42, 156, 0.2);
}

.split-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-subtle);
  margin-bottom: 20px;
  border-left: 3px solid var(--red);
  padding-left: 16px;
}

.intro-headline {
  font-size: 4rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.red-accent {
  background: linear-gradient(135deg, #ff4d6d, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.intro-desc {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 36px;
}

.button-primary {
  display: inline-block;
  background: linear-gradient(145deg, var(--red), var(--deep-purple));
  color: white;
  font-weight: 550;
  padding: 14px 32px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.25);
}

.button-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.4);
}

.intro-figure {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--purple-light);
  box-shadow: 0 18px 30px -8px #000;
  backdrop-filter: blur(4px);
}

.intro-img {
  width: 100%;
  height: auto;
  display: block;
}

.img-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--gray-subtle);
  text-align: right;
}

/* ---------- section base ---------- */
.section-container {
  padding: 90px 0;
}

.alt-bg {
  background: linear-gradient(180deg, var(--black-soft) 0%, rgba(19, 19, 22, 0.8) 100%);
  border-top: 1px solid rgba(59, 28, 122, 0.3);
  border-bottom: 1px solid rgba(59, 28, 122, 0.2);
}

.section-head {
  margin-bottom: 56px;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 18px;
}

.rule {
  display: inline-block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--deep-purple));
  border-radius: 4px;
}

.section-lead {
  color: var(--gray-subtle);
  font-size: 1.2rem;
  margin-top: 12px;
}

/* ---------- project showcase (glass + gradient) ---------- */
.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: center;
}

.project-reverse {
  grid-template-columns: 1.1fr 1fr;
}

.project-reverse .project-media {
  order: 2;
}
.project-reverse .project-body {
  order: 1;
}

.project-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  background: var(--glass-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-media:hover {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.15);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.4s;
}

.project-media:hover img {
  transform: scale(1.02);
}

.project-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--red), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  margin-bottom: 12px;
  display: inline-block;
}

.project-body h3 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

.project-body p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--deep-purple));
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.5);
}

.archive-link {
  margin-top: 56px;
  text-align: right;
}

.archive-link a {
  font-weight: 500;
  background: linear-gradient(90deg, var(--red), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid transparent;
}
.archive-link a:hover {
  color: white;
  -webkit-background-clip: unset;
  background-clip: unset;
  background: none;
  border-bottom-color: var(--red);
}
.archive-link i {
  transition: transform 0.2s;
}
.archive-link a:hover i {
  transform: translateX(6px);
}

/* ---------- timeline (glass accents) ---------- */
.timeline-stack {
  max-width: 800px;
  margin-bottom: 40px;
}

.timeline-row {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--red), var(--deep-purple)) 1;
  padding-left: 28px;
  transition: border-color 0.2s;
}
.timeline-row:hover {
  border-left: 2px solid var(--red);
  border-image: none;
}

.timeline-year {
  font-size: 1.8rem;
  font-weight: 680;
  background: linear-gradient(145deg, var(--red), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 90px;
  letter-spacing: -0.02em;
}

.timeline-content h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-dim);
}

.timeline-media {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.timeline-media img {
  width: 220px;
  border-radius: 12px;
  border: 1px solid var(--purple-light);
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.5);
}

.media-label {
  color: var(--gray-subtle);
  font-size: 0.9rem;
}

/* ---------- footer (glass footer) ---------- */
.site-footer {
  background: rgba(28, 28, 34, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 56px 0 24px;
  border-top: 1px solid rgba(225, 29, 72, 0.3);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-identity .brand {
  font-size: 2rem;
}

.footer-note {
  color: var(--gray-subtle);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  gap: 70px;
}

.nav-block h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray-subtle);
  margin-bottom: 18px;
}

.nav-block ul li {
  margin-bottom: 12px;
}

.nav-block a {
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-block a i {
  color: var(--red);
  width: 18px;
}

.nav-block a:hover {
  color: white;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--gray-subtle);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: 16px;
}
.legal-links a:hover {
  color: var(--red);
}

/* ---------- mobile adjustments ---------- */
@media (max-width: 900px) {
  .split-panel {
    grid-template-columns: 1fr;
  }
  .intro-headline {
    font-size: 3rem;
  }
  .project-item, .project-reverse {
    grid-template-columns: 1fr;
  }
  .project-reverse .project-media {
    order: 0;
  }
  .section-heading {
    font-size: 2.1rem;
  }
  .footer-nav {
    gap: 40px;
  }
}

@media (max-width: 680px) {
  .primary-nav .nav-list {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(14, 14, 18, 0.9);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 28px 0;
    gap: 18px;
    border-bottom: 1px solid var(--deep-purple);
  }
  .nav-list.nav-visible {
    display: flex;
  }
  .menu-trigger {
    display: block;
  }
  .timeline-row {
    flex-direction: column;
    gap: 8px;
    padding-left: 20px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 30px;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}