/* ---------- VARIABLES ---------- */
:root {
  --primary: #1f3b57;
  --primary-soft: #274865;
  --accent:  #4aa3ff;
  --accent-soft: #7ab6ff;
  --bg-dark: #0b1724;
  --bg: #f3f4f6;
  --bg-card: #ffffff;
  --text-main: #2c3e50;
  --text-soft: #7f8c8d;
  --border-soft: rgba(255,255,255,0.08);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.18);
  --radius-lg: 18px;
  --transition-fast: 0.25s ease;
  --transition-med: 0.45s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* ajusta según tu header */
}


body {
  font-family: 'Open Sans', sans-serif;
  background: radial-gradient(circle at top, #202b3a 0, #070b10 35%, #020308 100%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.04em;
}

/* ---------- LENGUAJES (FINAL) ---------- */
.lang { display: inline-block; }
.lang-es { display: inline-block; }
.lang-en { display: none !important; }

html[data-lang="en"] .lang-es { display: none !important; }
html[data-lang="en"] .lang-en { display: inline-block !important; }

/* Botón ES/EN - estados consistentes */
.lang-toggle .label-es { opacity: 1; }
.lang-toggle .label-en { opacity: 0.55; }

.lang-toggle[data-lang="en"] .label-es { opacity: 0.55; }
.lang-toggle[data-lang="en"] .label-en { opacity: 1; }


/* ---------- LAYOUT GENERAL ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  color: #e8edf5;
}

.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-soft);
  margin-bottom: 2.8rem;
}

.section-divider {
  width: 70px;
  height: 2px;
  margin: 0 auto 3.5rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.glass-card {
  background: linear-gradient(135deg, rgba(20,32,48,0.92), rgba(9,15,24,0.96));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  color: #e3ecf7;
}

.muted-text {
  color: var(--text-soft);
}

/* ---------- HEADER + NAV ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: radial-gradient(circle at top left, rgba(74,163,255,0.16), transparent 55%),
              rgba(4,10,20,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f5f7fa;
  white-space: nowrap;
}

.logo-role {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-link {
  position: relative;
  color: #d1d9e6;
  cursor: pointer;
  padding-bottom: 0.2rem;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #9be7ff);
  transition: width var(--transition-fast);
}

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

/* Botón único de idioma */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: radial-gradient(circle at top left, rgba(74,163,255,0.25), rgba(5,12,25,0.95));
  color: #e2e8f0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.lang-toggle i {
  font-size: 1rem;
}

.lang-toggle .label-en {
  opacity: 0.55;
}

.lang-toggle[data-lang="en"] .label-es {
  opacity: 0.55;
}

.lang-toggle[data-lang="en"] .label-en {
  opacity: 1;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: #9be7ff;
  box-shadow: 0 10px 22px rgba(74,163,255,0.4);
}

/* Mobile menu */
.burger {
  display: none;
  font-size: 1.3rem;
  color: #e2e8f0;
  cursor: pointer;
}

@media (max-width: 840px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 1.5rem;
    flex-direction: column;
    background: rgba(4,10,20,0.98);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .burger {
    display: block;
  }
}

/* ---------- HERO ---------- */
#hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  color: #f7fafc;
  margin-bottom: 0.85rem;
}

.hero-copy h1 span {
  background: linear-gradient(120deg, #9be7ff, #4aa3ff, #c2f3ff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--accent-soft);
  margin-bottom: 1.4rem;
}

.hero-text {
  font-size: 0.97rem;
  max-width: 34rem;
  color: #cad3e6;
  margin-bottom: 1.8rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-strategic-note {
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.1em;
  color: #a0aec0;
  margin-bottom: 2rem;
  max-width: 34rem;
}

.pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e2e8f0;
  background: radial-gradient(circle at top left, rgba(74,163,255,0.2), transparent 60%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: radial-gradient(circle at top left, #9be7ff, #4aa3ff);
  color: #050812;
  box-shadow: 0 16px 30px rgba(74,163,255,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(74,163,255,0.55);
}

.btn-ghost {
  border-color: rgba(148,163,184,0.7);
  color: #e2e8f0;
  background: rgba(15,23,42,0.7);
}

.btn-ghost:hover {
  border-color: #9be7ff;
  background: rgba(15,23,42,0.9);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,23,42,0.6);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.hero-badge i {
  color: var(--accent-soft);
}

.hero-visual {
  position: relative;
}

.hero-visual-inner {
  position: relative;
  padding: 2rem 1.6rem;
  border-radius: 22px;
  overflow: hidden;

  background:
    linear-gradient(to bottom right, rgba(7,12,20,0.88), rgba(7,12,20,0.92)),
    url("assets/img/Banner.png") center center / contain no-repeat;

  box-shadow: 0 25px 80px rgba(0,0,0,0.55);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}


.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(74,163,255,0.25), transparent 60%),
    linear-gradient(to bottom, rgba(7,12,20,0.2), rgba(7,12,20,0.75));
  pointer-events: none;
}


.hero-stat-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #e2e8f0;
  z-index: 1;
  order: 2;
}

.hero-stat {
  padding: 0.9rem 0.85rem;
  border-radius: 1rem;
  background: rgba(15,23,42,0.78);
  border: 1px solid rgba(148,163,184,0.3);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
}

.hero-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.hero-stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #f9fafb;
}

.hero-stat-note {
  font-size: 0.75rem;
  color: #cbd5f5;
  margin-top: 0.2rem;
}

.hero-profile {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 1;
  position: relative;
  order: 1;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(148, 208, 255, 0.8);
  overflow: hidden;
  filter: grayscale(25%);
  flex-shrink: 0;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-profile-text {
  display: none;
}

.hero-profile-text span {
  display: block;
  color: #9ca3af;
  font-size: 0.75rem;
}

@media (max-width: 840px) {
  #hero {
    padding-top: 2.5rem;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual-inner {
    grid-template-columns: 1fr;
  }
  .hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-direction: row;
    order: auto;
  }
  .hero-profile {
    order: auto;
  }
  .header-inner {
    padding-inline: 1rem;
  }
  .page {
    padding-inline: 1rem;
  }
}

/* ---------- ABOUT ---------- */
#about .about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
}

#about .glass-card {
  padding: 2.1rem 2.1rem 2.3rem;
}

.about-paragraph {
  font-size: 0.95rem;
  color: #d1d9e6;
  margin-bottom: 0.9rem;
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.about-meta-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.about-photo-card {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
}

.profile-pic {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(148, 208, 255, 0.9);
  box-shadow: 0 18px 40px rgba(15,23,42,0.8);
  filter: grayscale(20%);
  transition: filter var(--transition-med), transform var(--transition-med);
}

.profile-pic:hover {
  filter: grayscale(0);
  transform: translateY(-4px);
}

.photo-badge {
  position: absolute;
  bottom: 1.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.95);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.75rem;
  border: 1px solid rgba(148,163,184,0.4);
  color: #cbd5f5;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.photo-badge i {
  color: var(--accent-soft);
}

@media (max-width: 840px) {
  #about .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-photo-card {
    text-align: center;
  }
  .photo-badge {
    position: static;
    transform: none;
    display: inline-flex;
    margin-top: 1rem;
  }
}

/* ---------- EXPERIENCE (TIMELINE) ---------- */
#experience .glass-card {
  padding: 2rem 2.1rem 2.4rem;
}

.timeline {
  position: relative;
  margin-top: 1rem;
  padding-left: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 1.8rem;
  cursor: default;
}

.timeline-dot {
  position: absolute;
  left: -0.15rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0, var(--accent) 45%, var(--primary) 100%);
  box-shadow: 0 0 0 4px rgba(74,163,255,0.18);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(74,163,255,0.32);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.timeline-role {
  font-size: 0.97rem;
  font-weight: 600;
  color: #e5edf9;
}

.timeline-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca9c2;
}

.timeline-date {
  font-size: 0.8rem;
  color: #cbd5f5;
  margin-bottom: 0.5rem;
}

.timeline-bullets {
  font-size: 0.86rem;
  color: #cbd5f5;
  padding-left: 1.1rem;
}

.timeline-bullets li {
  margin-bottom: 0.3rem;
  position: relative;
}

.timeline-bullets li::before {
  content: "•";
  position: absolute;
  left: -0.9rem;
  opacity: 0.6;
}

/* ---------- EDUCATION ---------- */
#education .glass-card {
  padding: 2rem 2.1rem 2.4rem;
  margin-bottom: 1.8rem;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}

.edu-item {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.3);
  background: radial-gradient(circle at top left, rgba(148,163,184,0.16), rgba(15,23,42,0.95));
  font-size: 0.86rem;
  color: #d3ddf4;
}

.edu-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #e5edf9;
}

.edu-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5b4cf;
  margin-bottom: 0.35rem;
}

/* ---------- SKILLS ---------- */
#skills .glass-card {
  padding: 2rem 2.1rem 2.4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.skill-column-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca9c2;
  margin-bottom: 0.7rem;
}

.skill-row {
  margin-bottom: 0.9rem;
}

.skill-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #dbe4ff;
  margin-bottom: 0.25rem;
}

.skill-label span:nth-child(2) {
  font-size: 0.75rem;
  color: #9ca9c2;
}

.skill-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(15,23,42,0.8);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #c2f3ff);
  box-shadow: 0 0 12px rgba(74,163,255,0.6);
  transition: width 0.9s ease-out;
}

/* ---------- PROJECTS / HIGHLIGHTS ---------- */
#projects .glass-card {
  padding: 2rem 2.1rem 2.4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.project-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at top left, rgba(148,163,184,0.12), rgba(15,23,42,0.96));
  padding: 1.3rem 1.3rem 1.4rem;
  position: relative;
  overflow: hidden;
  font-size: 0.86rem;
  color: #cbd5f5;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(74,163,255,0.2), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15,23,42,0.85);
  border-color: var(--accent-soft);
}

.project-card:hover::before {
  opacity: 1;
}

.project-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca9c2;
  margin-bottom: 0.35rem;
}

.project-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #e5edf9;
  margin-bottom: 0.25rem;
}

.project-meta {
  font-size: 0.76rem;
  color: #a5b4cf;
  margin-bottom: 0.6rem;
}

/* ---------- CONTACT ---------- */
#contact .glass-card {
  padding: 2rem 2.1rem 2.4rem;
}

.contact-layout {
  display: block;
}

.contact-info-block {
  font-size: 0.9rem;
  color: #dbe4ff;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(74,163,255,0.6), rgba(15,23,42,0.95));
  color: #f9fafb;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca9c2;
}

.contact-value {
  font-size: 0.9rem;
  color: #e5edf9;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148,163,184,0.6);
  color: #e0f2fe;
  font-size: 1rem;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.social-links a:hover {
  background: radial-gradient(circle, #9be7ff, #4aa3ff);
  color: #020617;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(74,163,255,0.4);
}

.contact-form {
  font-size: 0.9rem;
}

.form-row {
  margin-bottom: 0.8rem;
}

label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca9c2;
  margin-bottom: 0.3rem;
}

input, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.85);
  color: #e5edf9;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus, textarea:focus {
  border-color: #9be7ff;
  box-shadow: 0 0 0 1px rgba(148, 208, 255, 0.7);
  background: rgba(15,23,42,0.95);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.contact-alternatives {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.contact-alternative-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.contact-alternative-item i {
  color: var(--accent-soft);
  font-size: 0.9rem;
}

.contact-alternative-item a {
  color: #cbd5f5;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-alternative-item a:hover {
  color: #9be7ff;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid rgba(148,163,184,0.25);
  padding: 1.5rem 1.5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

footer span {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- PRINT ---------- */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .header,
  .burger,
  .lang-toggle,
  .social-links a[href^="#"],
  .hero-visual,
  .photo-badge,
  .hero-badge,
  .section-divider {
    display: none !important;
  }

  .page {
    max-width: 100%;
    padding: 0;
  }

  section {
    padding: 1.5rem 2rem;
    page-break-inside: avoid;
  }

  .section-title {
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    color: #111827 !important;
  }

  .section-subtitle {
    text-align: left;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.8rem;
    color: #6b7280 !important;
  }

  .glass-card,
  .hero-visual-inner {
    background: #ffffff !important;
    color: #111827 !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  #about .about-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem;
  }

  .about-photo-card {
    padding: 0;
  }

  .profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    filter: none;
    box-shadow: none;
  }

  #experience .glass-card,
  #education .glass-card,
  #skills .glass-card,
  #projects .glass-card,
  #contact .glass-card {
    padding: 0;
  }

  .timeline {
    margin-top: 0.5rem;
    padding-left: 0.6rem;
  }

  .timeline-item {
    margin-bottom: 1rem;
  }

  .timeline-dot {
    box-shadow: none;
  }

  .timeline-role {
    font-size: 0.95rem;
  }

  .timeline-date {
    font-size: 0.75rem;
    color: #6b7280 !important;
  }

  .timeline-bullets {
    font-size: 0.8rem;
    color: #374151;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .skill-bar {
    background: #e5e7eb;
  }

  .skill-bar-fill {
    box-shadow: none;
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transform-origin: center top;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  footer {
    border-top: 1px solid #e5e7eb;
    padding: 0.8rem 2rem 0.8rem;
    font-size: 0.7rem;
    color: #6b7280;
  }

  #hero {
    page-break-after: avoid;
  }
}
