/* ============================================
   GONZALO VEGA — Personal Site
   Design System: "Electric Dusk"
   Fresh, bold, bridging science & spirit
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,600;1,6..72,300;1,6..72,400&display=swap');

/* ---- Design Tokens ---- */
:root {
  --bg-primary: #FAFAF7;
  --bg-dark: #0D0D0D;
  --bg-dark-card: #1A1A1A;
  --bg-dark-hover: #252525;
  --bg-accent-subtle: #FFF0ED;
  --bg-teal-subtle: #E8FBF5;
  --bg-blue-subtle: #EEF2FF;

  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-light: #F5F5F0;
  --text-light-muted: #AAAAAA;

  --accent-coral: #FF4D4D;
  --accent-teal: #2DD4A8;
  --accent-blue: #4361EE;
  --accent-gradient: linear-gradient(135deg, #FF4D4D 0%, #4361EE 100%);

  --border-light: #E8E8E4;
  --border-dark: #2A2A2A;

  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-editorial: 'Newsreader', Georgia, serif;

  --max-width: 1200px;
  --max-width-narrow: 720px;
  --nav-height: 72px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); }

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.font-editorial { font-family: var(--font-editorial); }

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: var(--max-width-narrow); }
.section { padding: 8rem 0; }
.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section--dark p { color: var(--text-light-muted); }

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); z-index: 1000;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-base);
}
.nav--scrolled { border-bottom-color: var(--border-light); }
.nav__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.02em; position: relative; transition: var(--transition-fast);
}
.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent-coral); transition: var(--transition-base);
}
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__cta {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
  padding: 0.6rem 1.4rem; background: var(--accent-gradient); color: white;
  border-radius: var(--radius-xl); transition: var(--transition-base);
  border: none; cursor: pointer;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3); }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--text-primary);
  margin: 6px 0; transition: var(--transition-base); border-radius: 2px;
}
.nav__toggle--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav__toggle--open span:nth-child(2) { opacity: 0; }
.nav__toggle--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---- Language Switcher ---- */
.lang-switcher {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; margin-left: 1.5rem;
}
.lang-switcher__link {
  color: var(--text-secondary); transition: var(--transition-fast);
  padding: 0.3rem 0.6rem; border-radius: var(--radius-sm);
}
.lang-switcher__link:hover { color: var(--accent-coral); background: var(--bg-accent-subtle); }
.lang-switcher__divider { color: var(--border-light); margin: 0 0.2rem; }
.lang-switcher__current { color: var(--accent-coral); font-weight: 700; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-height); position: relative; overflow: hidden;
}
.hero--dark { background: var(--bg-dark); color: var(--text-light); }
.hero__content { position: relative; z-index: 2; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-coral);
  margin-bottom: 2rem;
}
.hero__tag::before { content: ''; width: 32px; height: 2px; background: var(--accent-coral); }
.hero__title { margin-bottom: 1.5rem; max-width: 800px; }
.hero__subtitle {
  font-family: var(--font-editorial); font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 300; font-style: italic; max-width: 600px; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero--dark .hero__subtitle { color: var(--text-light-muted); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__bg-element {
  position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 77, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__bg-element--secondary {
  right: auto; left: -15%; top: 20%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.06) 0%, transparent 70%);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.8rem; border-radius: var(--radius-xl); border: none;
  cursor: pointer; transition: var(--transition-base); letter-spacing: 0.01em;
}
.btn--primary { background: var(--accent-gradient); color: white; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 77, 77, 0.3); }
.btn--outline { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.3); color: var(--text-light); }
.btn--outline:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.05); }
.btn--outline-dark { color: var(--text-primary); border: 1.5px solid var(--border-light); background: transparent; }
.btn--outline-dark:hover { border-color: var(--text-primary); }
.btn__arrow { transition: transform var(--transition-fast); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- Section Headers ---- */
.section-header { margin-bottom: 3rem; }
.section-header__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-coral);
  margin-bottom: 1rem;
}
.section-header__tag::before { content: ''; width: 24px; height: 2px; background: var(--accent-coral); }
.section-header__title { margin-bottom: 1rem; }
.section-header__desc { max-width: 560px; }

/* ---- Post Cards ---- */
.posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem;
}
.post-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-light); transition: var(--transition-base);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); }
.post-card__image {
  width: 100%; height: 200px; object-fit: cover; background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.post-card__image img {
  width: 100%; height: 100%; object-fit: cover;
}
.post-card__image-placeholder {
  font-size: 3rem; opacity: 0.3;
}
.post-card__body { padding: 1.5rem; }
.post-card__category {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-coral);
  margin-bottom: 0.5rem;
}
.post-card__title { font-size: 1.2rem; margin-bottom: 0.5rem; line-height: 1.3; }
.post-card__excerpt {
  font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); }

/* Dark variant */
.post-card--dark { background: var(--bg-dark-card); border-color: var(--border-dark); }
.post-card--dark:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); border-color: #333; }
.post-card--dark .post-card__title { color: var(--text-light); }
.post-card--dark .post-card__excerpt, .post-card--dark .post-card__meta { color: var(--text-light-muted); }

/* ---- Featured Post ---- */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  padding: 3rem; background: var(--bg-dark-card); border-radius: var(--radius-xl);
  margin-bottom: 3rem;
}
.featured-post__image {
  width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.featured-post__image img {
  width: 100%; height: 100%; object-fit: cover;
}
.featured-post__placeholder { font-size: 4rem; opacity: 0.3; }
.featured-post__category {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-teal);
  margin-bottom: 1rem;
}
.featured-post__title { color: var(--text-light); font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.featured-post__excerpt { color: var(--text-light-muted); margin-bottom: 2rem; line-height: 1.7; }
.featured-post__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent-coral); font-family: var(--font-heading); font-weight: 600;
  font-size: 0.95rem; transition: var(--transition-base);
}
.featured-post__link:hover { gap: 0.8rem; }

/* ---- Project Cards ---- */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 2rem;
}
.project-card {
  position: relative; padding: 2.5rem; border-radius: var(--radius-xl);
  border: 1px solid var(--border-light); background: white;
  transition: var(--transition-base); overflow: hidden;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08); }
.project-card__accent {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.project-card__accent--coral { background: var(--accent-coral); }
.project-card__accent--teal { background: var(--accent-teal); }
.project-card__accent--blue { background: var(--accent-blue); }
.project-card__icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.5rem;
}
.project-card__icon--coral { background: none; }
.project-card__icon--teal { background: none; }
.project-card__icon--blue { background: none; }
.project-card__role {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.project-card__title { margin-bottom: 0.75rem; }
.project-card__desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.project-card__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent-coral); font-family: var(--font-heading); font-weight: 600;
  font-size: 0.9rem; transition: var(--transition-base);
}
.project-card__link:hover { gap: 0.8rem; }

/* ---- About Preview ---- */
.about-preview { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.about-preview__image {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-xl); object-fit: cover;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex; align-items: center; justify-content: center;
}
.about-preview__placeholder {
  font-family: var(--font-heading); font-size: 6rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
}
.about-preview__content h2 { margin-bottom: 1.5rem; }
.about-preview__text { margin-bottom: 2rem; }
.about-preview__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-bottom: 2rem; padding: 1.5rem 0;
  border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.stat__number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent-coral); }
.stat__label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ---- Newsletter / CTA ---- */
.cta-section { text-align: center; padding: 8rem 0; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { max-width: 500px; margin: 0 auto 2rem; }
.newsletter-form { display: flex; gap: 0.5rem; max-width: 460px; margin: 0 auto; }
.newsletter-form__input {
  flex: 1; padding: 0.85rem 1.2rem; border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-xl); font-family: var(--font-body); font-size: 0.95rem;
  background: transparent; color: var(--text-light); outline: none; transition: var(--transition-base);
}
.newsletter-form__input::placeholder { color: var(--text-light-muted); }
.newsletter-form__input:focus { border-color: var(--accent-coral); }

/* ---- Topic Pills ---- */
.topic-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.topic-pill {
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 500;
  padding: 0.4rem 1rem; border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08); color: var(--text-light-muted);
  border: 1px solid rgba(255, 255, 255, 0.1); transition: var(--transition-base);
}
.topic-pill:hover { background: rgba(255, 255, 255, 0.15); color: var(--text-light); }

/* ---- Footer ---- */
.footer { background: var(--bg-dark); color: var(--text-light); padding: 4rem 0 2rem; }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-dark);
}
.footer__brand p { color: var(--text-light-muted); font-size: 0.95rem; margin-top: 1rem; max-width: 300px; }
.footer__heading {
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light-muted);
  margin-bottom: 1.5rem;
}
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { font-size: 0.95rem; color: var(--text-light-muted); transition: var(--transition-fast); }
.footer__links a:hover { color: var(--text-light); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; font-size: 0.85rem; color: var(--text-light-muted);
}
.footer__social { display: flex; gap: 1rem; }
.footer__social a { color: var(--text-light-muted); transition: var(--transition-fast); }
.footer__social a:hover { color: var(--accent-coral); }

/* ---- Blog Page ---- */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  background: var(--bg-dark); color: var(--text-light);
}
.blog-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 3rem; padding-top: 2rem;
}
.blog-filter {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 1.2rem; border-radius: var(--radius-xl); border: 1px solid var(--border-light);
  background: transparent; color: var(--text-secondary); cursor: pointer; transition: var(--transition-base);
}
.blog-filter:hover, .blog-filter--active {
  background: var(--text-primary); color: white; border-color: var(--text-primary);
}

/* ---- Single Post ---- */
.post-hero { padding: calc(var(--nav-height) + 4rem) 0 3rem; text-align: center; }
.post-hero__category {
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-coral);
  margin-bottom: 1.5rem;
}
.post-hero__title { max-width: 800px; margin: 0 auto 1.5rem; }
.post-hero__meta {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--text-muted); font-size: 0.95rem;
}
.post-hero__meta span + span::before { content: '\00b7'; margin-right: 1rem; }
.post-content {
  max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 2rem 4rem;
}
.post-content p { margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.8; }
.post-content h2 { margin-top: 3rem; margin-bottom: 1.5rem; font-size: 1.75rem; }
.post-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.35rem; }
.post-content blockquote {
  font-family: var(--font-editorial); font-size: 1.3rem; font-style: italic;
  color: var(--text-primary); border-left: 3px solid var(--accent-coral);
  padding-left: 2rem; margin: 2.5rem 0;
}
.post-content ul, .post-content ol { padding-left: 2rem; margin-bottom: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; font-size: 1.1rem; line-height: 1.7; color: var(--text-secondary); }
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content a { color: var(--accent-coral); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { width: 100%; border-radius: var(--radius-lg); margin: 2.5rem 0; }
.post-content .lead {
  font-family: var(--font-editorial); font-size: 1.3rem; color: var(--text-primary);
  line-height: 1.7; margin-bottom: 2rem;
}

/* ---- About Page ---- */
.about-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-story { padding: 4rem 0; }
.about-story p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; }

/* Timeline */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--border-light);
}
.timeline__item { position: relative; padding-bottom: 2.5rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ''; position: absolute; left: calc(-3rem - 1px); top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-coral); border: 3px solid var(--bg-primary);
}
.timeline__year {
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  color: var(--accent-coral); letter-spacing: 0.05em; margin-bottom: 0.25rem;
}
.timeline__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.timeline__desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ---- Project Detail Sections ---- */
.project-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  padding: 4rem 0; border-bottom: 1px solid var(--border-light);
}
.project-detail:last-child { border-bottom: none; }
.project-detail:nth-child(even) { direction: rtl; }
.project-detail:nth-child(even) > * { direction: ltr; }
.project-detail__image {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-xl); object-fit: cover;
  display: flex; align-items: center; justify-content: center;
}
.project-detail__image--happinetics {
  background: none;
}
.project-detail__image--cardiosmile {
  background: none;
}
.project-detail__image--energy {
  background: none;
}
.project-detail__image-text {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
}
.project-detail__tag {
  display: inline-block; font-family: var(--font-heading); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: var(--radius-xl); margin-bottom: 1rem;
}
.project-detail__tag--coral { background: var(--bg-accent-subtle); color: var(--accent-coral); }
.project-detail__tag--teal { background: var(--bg-teal-subtle); color: #1a8a6e; }
.project-detail__tag--blue { background: var(--bg-blue-subtle); color: var(--accent-blue); }
.project-detail__title { margin-bottom: 1rem; }
.project-detail__desc { margin-bottom: 1.5rem; }
.project-detail__highlights { padding-left: 1.5rem; margin-bottom: 2rem; }
.project-detail__highlights li {
  list-style: disc; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text-muted);
}

/* ---- Values Grid ---- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; }
.value-card { padding: 2rem; border-radius: var(--radius-lg); background: var(--bg-dark-card); }
.value-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card__title {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600;
  color: var(--text-light); margin-bottom: 0.5rem;
}
.value-card__desc { font-size: 0.9rem; color: var(--text-light-muted); line-height: 1.6; }

/* ---- Animations ---- */
.animate-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-preview { grid-template-columns: 1fr; gap: 2rem; }
  .about-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .featured-post { grid-template-columns: 1fr; gap: 2rem; }
  .project-detail { grid-template-columns: 1fr; gap: 2rem; }
  .project-detail:nth-child(even) { direction: ltr; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .nav__links {
    display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--bg-primary); flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem;
  }
  .nav__links--open { display: flex; }
  .nav__toggle { display: block; }
  .nav__link { font-size: 1.25rem; }
  .hero { min-height: auto; padding: calc(var(--nav-height) + 3rem) 0 3rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .about-preview__stats { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .values-grid { grid-template-columns: 1fr; }
}

