/* ============================================
   Celeste Amador — Personal Website
   Palette: Vanilla, Brown, Pink (Summer)
   ============================================ */

:root {
  --vanilla:       #FFF8F0;
  --vanilla-deep:  #FFF0E3;
  --cream:         #FFFAF5;
  --pink:          #D4918E;
  --pink-light:    #F2D4D0;
  --pink-soft:     #FAEAE8;
  --blush:         #E8B4B0;
  --brown:         #5C3D2E;
  --brown-light:   #7A5B4D;
  --brown-dark:    #3E2723;
  --peach:         #F0C9B0;
  --terracotta:    #B6705A;
  --sand:          #E8D5C0;
  --white:         #FFFFFF;
  --shadow:        rgba(92, 61, 46, 0.08);
  --shadow-md:     rgba(92, 61, 46, 0.12);

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --nav-height:    72px;
  --container:     1120px;
  --radius:        12px;
  --radius-sm:     8px;
}

/* ---- Reset & Base ---- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown);
  background: var(--vanilla);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--pink);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(92, 61, 46, 0.06);
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 24px var(--shadow);
}

/* Dark nav — when hero is in view */
.nav.nav-dark {
  background: rgba(13, 12, 11, 0.88);
  border-bottom-color: rgba(255, 248, 240, 0.06);
}

.nav.nav-dark .nav-logo {
  color: var(--vanilla);
}

.nav.nav-dark .nav-logo:hover {
  color: var(--pink-light);
}

.nav.nav-dark .nav-links a {
  color: rgba(255, 248, 240, 0.55);
}

.nav.nav-dark .nav-links a:hover,
.nav.nav-dark .nav-links a.active {
  color: var(--vanilla);
}

.nav.nav-dark .nav-links a::after {
  background: var(--pink-light);
}

.nav.nav-dark .nav-toggle span {
  background: rgba(255, 248, 240, 0.8);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown-light);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

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

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
  background: #0d0c0b;
}

/* Matrix canvas */
.matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  /* Visible only over the photo column — transparent on text side, opaque on right */
  -webkit-mask-image: linear-gradient(to right, transparent 50%, black 66%);
  mask-image: linear-gradient(to right, transparent 50%, black 66%);
}

/* Hero text colours on dark */
.hero-greeting {
  color: rgba(212, 145, 142, 0.75);
}

.hero-name {
  color: #fff8f0;
}

.hero-tagline {
  color: var(--pink);
}

.hero-subtagline {
  color: rgba(255, 248, 240, 0.5);
}

.hero-summary {
  color: rgba(255, 248, 240, 0.65);
}

/* Typed cursor */
.type-cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--pink);
  margin-left: 2px;
  animation: blink-cursor 0.85s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Buttons on dark bg */
.hero .btn-primary {
  background: var(--pink);
  color: #0d0c0b;
}

.hero .btn-primary:hover {
  background: var(--blush);
  color: #0d0c0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 145, 142, 0.35);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--vanilla);
  border-color: rgba(255, 248, 240, 0.2);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--pink-light);
  color: var(--vanilla);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Social icons on dark */
.hero-socials a {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 248, 240, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-socials a:hover {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 145, 142, 0.4);
}

/* Image frame on dark */
.hero-image-frame {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.hero-image-accent {
  border-color: rgba(212, 145, 142, 0.25);
}

/* ---- Stats strip ---- */
.hero-stats {
  display: flex;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 248, 240, 0.1);
  opacity: 0;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 0.7rem;
  color: rgba(255, 248, 240, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 248, 240, 0.1);
  flex-shrink: 0;
  margin: 0 4px;
}

/* ---- Hero gradient fade ---- */
.hero-fade {
  height: 72px;
  background: linear-gradient(180deg, #0d0c0b 0%, var(--vanilla) 100%);
  position: relative;
  z-index: 1;
  margin-top: -1px;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.hero-subtagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brown-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.tagline-sep {
  color: var(--peach);
  font-weight: 400;
  opacity: 0.85;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--brown-light);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  justify-content: center;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brown-light);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.25s ease;
}

.hero-socials a:hover {
  color: var(--white);
  background: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 145, 142, 0.3);
}

.hero-image-wrap {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  box-shadow: 0 16px 48px var(--shadow-md);
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
}

.hero-image-accent {
  position: absolute;
  top: 24px;
  left: 24px;
  right: -16px;
  bottom: -16px;
  border-radius: 200px 200px 24px 24px;
  border: 2px solid var(--pink-light);
  z-index: 1;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--brown);
  color: var(--vanilla);
}

.btn-primary:hover {
  background: var(--brown-dark);
  color: var(--vanilla);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(62, 39, 35, 0.2);
}

.btn-secondary {
  background: var(--white);
  color: var(--brown);
  border: 1.5px solid var(--sand);
}

.btn-secondary:hover {
  border-color: var(--pink);
  color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.btn-tertiary {
  background: var(--pink-soft);
  color: var(--terracotta);
  border: 1.5px solid var(--pink-light);
}

.btn-tertiary:hover {
  background: var(--pink-light);
  color: var(--brown);
  transform: translateY(-2px);
}

/* ---- Sections ---- */

.section {
  padding: 100px 0;
}

.section:nth-child(even) {
  background: var(--cream);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
}

/* ---- About ---- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--brown-light);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-hook {
  font-family: var(--font-display);
  font-size: 1.45rem !important;
  font-style: italic;
  color: var(--brown-dark) !important;
  font-weight: 600;
  margin-bottom: 20px !important;
  line-height: 1.3 !important;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-card {
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 3px solid var(--pink-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px var(--shadow-md);
}

.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.detail-card p {
  font-size: 0.92rem;
  color: var(--brown-light);
  line-height: 1.6;
}

.detail-list {
  padding-left: 0;
}

.detail-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--brown-light);
  line-height: 1.6;
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---- Experience Timeline ---- */

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--pink-light), var(--sand));
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vanilla);
  border: 3px solid var(--pink);
  z-index: 1;
}

.timeline-marker-current {
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-soft);
  animation: pulse-current 2.4s ease-in-out infinite;
}

@keyframes pulse-current {
  0%, 100% { box-shadow: 0 0 0 4px var(--pink-soft); }
  50% { box-shadow: 0 0 0 8px rgba(212, 145, 142, 0.25); }
}

.timeline-item:hover .timeline-marker {
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-soft);
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta);
  background: var(--pink-soft);
  border: 1px solid var(--pink-light);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.timeline-card {
  background: var(--white);
  padding: 28px 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--shadow-md);
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.role-detail {
  font-weight: 400;
  color: var(--brown-light);
  font-size: 1.1rem;
}

.company {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.timeline-card ul {
  padding-left: 0;
}

.timeline-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.7;
}

.timeline-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---- Projects ---- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md);
}

.project-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--pink-soft);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-card p {
  font-size: 0.92rem;
  color: var(--brown-light);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--vanilla-deep);
  color: var(--terracotta);
  border-radius: 100px;
  border: 1px solid var(--peach);
}

.project-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta);
  transition: color 0.25s ease, gap 0.25s ease;
}

.project-link:hover {
  color: var(--pink);
}

/* ---- Certifications ---- */

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--white);
  padding: 32px 22px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.cert-in-progress {
  background: linear-gradient(180deg, var(--white) 0%, var(--pink-soft) 100%);
  border: 1px dashed var(--blush);
}

.cert-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--terracotta);
  background: var(--vanilla-deep);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md);
}

.cert-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-soft), var(--vanilla-deep));
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.cert-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.cert-date {
  font-size: 0.88rem;
  color: var(--terracotta);
  font-weight: 500;
}

/* ---- Skills ---- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-category {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--shadow-md);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--pink-soft);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-category-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.2;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--vanilla-deep);
  color: var(--terracotta);
  border-radius: 100px;
  border: 1px solid var(--peach);
}

/* ---- Inter-section quote ---- */

.section-quote {
  background: var(--brown-dark);
  padding: 56px 24px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.section-quote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.section-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 600;
  color: var(--pink-light);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ---- Education ---- */

.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 3px solid var(--pink-light);
  align-items: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.edu-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px var(--shadow-md);
}

.edu-dates {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding-top: 2px;
}

.edu-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 2px;
}

.edu-sub {
  font-size: 0.9rem;
  color: var(--pink);
  font-weight: 500;
  margin-bottom: 4px !important;
}

.edu-school {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 8px !important;
}

.edu-detail {
  font-size: 0.85rem;
  color: var(--brown-light);
  line-height: 1.6;
}

/* ---- Now / Currently ---- */

.now-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.now-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: 0 2px 12px var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.now-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--shadow-md);
}

.now-open {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
  color: var(--vanilla);
  border: none;
}

.now-open h3 {
  color: var(--vanilla) !important;
}

.now-open p {
  color: rgba(255, 248, 240, 0.8) !important;
}

.now-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-open .now-icon {
  color: var(--pink-light);
}

.now-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0.08); }
}

.now-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.now-content p {
  font-size: 0.92rem;
  color: var(--brown-light);
  line-height: 1.65;
}

.now-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.now-list li {
  font-size: 0.92rem;
  color: var(--brown-light);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.6;
}

.now-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---- Blog / Writing ---- */

.blog-intro {
  font-size: 1.05rem;
  color: var(--brown-light);
  margin-bottom: 32px;
}

.blog-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  min-height: 80px;
}

.blog-loading {
  grid-column: span 3;
  text-align: center;
  color: var(--brown-light);
  font-size: 0.9rem;
  padding: 24px 0;
}

.blog-post-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--shadow-md);
  color: inherit;
}

.blog-post-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-post-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.35;
}

.blog-post-excerpt {
  font-size: 0.88rem;
  color: var(--brown-light);
  line-height: 1.65;
  flex: 1;
}

.blog-post-read {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-top: 4px;
}

.blog-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- About open-to-work signal ---- */

.about-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 20px !important;
  letter-spacing: 0.02em;
}

.about-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* ---- Music experience list ---- */

.music-timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

.music-role {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(92, 61, 46, 0.08);
}

.music-role:last-child {
  border-bottom: none;
}

.music-role-dates {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
  min-width: 90px;
  letter-spacing: 0.02em;
}

.music-role-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 2px;
}

.music-role-body p {
  font-size: 0.85rem;
  color: var(--brown-light);
  font-style: italic;
}

/* ---- FONDARTE award callout ---- */

.fondarte-award {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 28px;
  border: 1px solid var(--pink-light);
  box-shadow: 0 2px 12px var(--shadow);
  max-width: 640px;
}

.fondarte-icon {
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}

.fondarte-text {
  font-size: 0.92rem;
  color: var(--brown-light);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fondarte-text strong {
  color: var(--brown-dark);
  font-size: 1rem;
}

/* ---- Music Section ---- */

.music {
  background: linear-gradient(170deg, var(--vanilla-deep) 0%, var(--pink-soft) 100%) !important;
  position: relative;
  overflow: hidden;
}

.music::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.music-content {
  max-width: 780px;
}

.music-text {
  margin-bottom: 36px;
}

.music-text p {
  font-size: 1.02rem;
  color: var(--brown-light);
  line-height: 1.85;
  margin-bottom: 14px;
}

.music-text strong {
  color: var(--brown-dark);
}

.music-highlights {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.music-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px var(--shadow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--terracotta);
  text-align: center;
}

/* ---- Contact ---- */

.contact {
  text-align: center;
}

.contact .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--brown-light);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
  color: var(--brown);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-card svg {
  color: var(--pink);
  flex-shrink: 0;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--shadow-md);
  color: var(--brown-dark);
}

/* ---- Footer ---- */

.footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--brown-light);
  background: var(--vanilla-deep);
  border-top: 1px solid rgba(92, 61, 46, 0.06);
}

/* ---- Scroll Animations ---- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-summary {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-subtagline {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image-wrap {
    max-width: 320px;
    margin: 0 auto;
    order: -1;
  }

  .hero-image {
    height: 400px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .now-open {
    grid-column: span 1;
  }

  .blog-feed {
    grid-template-columns: 1fr 1fr;
  }

  .blog-loading {
    grid-column: span 2;
  }

  .edu-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 248, 240, 0.97);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(92, 61, 46, 0.08);
    box-shadow: 0 8px 32px var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 48px;
    min-height: auto;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 0;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .stat-desc {
    font-size: 0.62rem;
  }

  .hero-fade {
    height: 48px;
  }

  .projects-grid,
  .certs-grid,
  .blog-feed {
    grid-template-columns: 1fr;
  }

  .blog-loading {
    grid-column: span 1;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline-card {
    padding: 20px 24px;
  }

  .music-highlights {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-image-accent {
    display: none;
  }
}
