/* ===== Base ===== */
:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1729;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.16);
  --text: #eef6ff;
  --muted: #a9b8cc;
  --primary: #4f8cff;
  --primary-2: #21d4fd;
  --accent: #9b5cff;
  --success: #3ddc97;
  --danger: #ff6b8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --header-height: 76px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-soft: #eef3fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(15, 23, 42, 0.12);
  --text: #102033;
  --muted: #53657a;
  --primary: #2563eb;
  --primary-2: #0891b2;
  --accent: #7c3aed;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.22), transparent 32rem),
    radial-gradient(circle at top right, rgba(155, 92, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

/* Fondo sutil tecnológico */
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(79, 140, 255, 0.35);
}

/* ===== Utilities ===== */
.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 30px rgba(79, 140, 255, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.nav-menu a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--text);
  background: var(--surface-strong);
}

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

.theme-toggle,
.nav-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
}

.theme-icon {
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100vh - var(--header-height));
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-2), var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 650px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-links {
  margin-top: 1.2rem;
}

.hero-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.hero-links a:hover {
  color: var(--primary-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 36px rgba(79, 140, 255, 0.28);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.code-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
}

.code-card::before {
  position: absolute;
  inset: -1px;
  content: "";
  background: radial-gradient(circle at top right, rgba(33, 212, 253, 0.25), transparent 45%);
  pointer-events: none;
}

.code-dots {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ff5f57;
}

.code-dots span:nth-child(2) {
  background: #ffbd2e;
}

.code-dots span:nth-child(3) {
  background: #28c840;
}

pre {
  position: relative;
  z-index: 1;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
  color: #dbeafe;
  font-size: 0.95rem;
  line-height: 1.65;
}

:root[data-theme="light"] pre {
  background: rgba(15, 23, 42, 0.9);
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -2rem;
  margin-bottom: 4rem;
}

.stats article {
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stats strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

/* ===== Sections ===== */
.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}

/* ===== Cards ===== */
.glass-card,
.skill-card,
.project-card,
.contact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.about-grid,
.skills-grid,
.projects-grid {
  display: grid;
  gap: 1rem;
}

.about-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.glass-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
}

.glass-card h3,
.skill-card h3,
.project-card h3,
.contact-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.glass-card p,
.skill-card p,
.project-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  content: "";
}

.skills-grid {
  grid-template-columns: repeat(3, 1fr);
}

.skill-card,
.project-card {
  padding: 1.35rem;
  border-radius: var(--radius);
}

.skill-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(155, 92, 255, 0.18));
  font-size: 1.35rem;
}

.project-card.featured {
  border: 1px solid rgba(155, 92, 255, 0.6);
  background: linear-gradient(160deg, rgba(155, 92, 255, 0.18), rgba(79, 140, 255, 0.08), var(--surface));
  box-shadow:
    0 0 0 1px rgba(155, 92, 255, 0.25),
    0 0 30px rgba(155, 92, 255, 0.18),
    0 24px 80px rgba(0, 0, 0, 0.45);
  transform: scale(1.02);
  z-index: 2;
  grid-column: span 2;
}

.project-card.featured .project-badge {
  background: rgba(155, 92, 255, 0.22);
  border-color: rgba(155, 92, 255, 0.6);
  color: #e9d5ff;
  font-weight: 900;
}

.project-card.featured .project-link {
  color: #c084fc;
  font-weight: 900;
}

.project-card.featured .project-link:hover {
  color: #f3e8ff;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
}

/* ===== Featured Project (Eros) ===== */
.featured-project-section {
  padding-top: 2rem;
}

.featured-project-section .section-heading.center {
  text-align: center;
  margin-inline: auto;
}

.featured-project-card {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(155, 92, 255, 0.55);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(circle at top right, rgba(155, 92, 255, 0.22), transparent 45%),
    linear-gradient(160deg, rgba(79, 140, 255, 0.12), rgba(155, 92, 255, 0.08), var(--surface));
  box-shadow:
    0 0 0 1px rgba(155, 92, 255, 0.25),
    0 0 40px rgba(155, 92, 255, 0.18),
    0 24px 80px rgba(0, 0, 0, 0.45);
}

.featured-project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.featured-project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badge {
  background: rgba(155, 92, 255, 0.22);
  border-color: rgba(155, 92, 255, 0.55);
  color: #e9d5ff;
  font-weight: 900;
}

.featured-project-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.featured-project-description {
  max-width: 960px;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.featured-project-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.featured-project-col h4 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.featured-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.featured-project-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-project-note {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .featured-project-body {
    grid-template-columns: 1fr;
  }
}

/* ===== Projects ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.filter-btn {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.projects-grid {
  grid-template-columns: repeat(4, 1fr);
}

.project-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.45);
  background: var(--surface-strong);
}

.project-card.is-hidden {
  display: none;
}

.project-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-badge {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.project-link {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--primary-2);
  font-weight: 900;
  text-decoration: none;
}

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

/* ===== Timeline ===== */
.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 2px;
  background: linear-gradient(var(--primary-2), var(--accent));
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border: 4px solid var(--bg);
  border-radius: 999px;
  background: var(--primary-2);
  box-shadow: 0 0 0 2px var(--primary-2);
}

.timeline-item h3 {
  margin: 0 0 0.3rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

/* ===== Contact ===== */
.contact-section {
  padding-bottom: 6rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 8px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-links a {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  color: var(--muted);
}

.footer-content a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

/* ===== Reveal animation ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-visual {
    min-height: 420px;
  }

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

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

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    border-radius: 14px;
  }

  .hero h1 {
    letter-spacing: -0.05em;
  }

  .stats,
  .about-grid,
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: block;
  }

  .filters {
    justify-content: flex-start;
    margin-top: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* ===== Expanded portfolio sections ===== */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
}

.profile-grid,
.cert-grid,
.cloud-grid {
  display: grid;
  gap: 1rem;
}

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

.cert-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cloud-grid {
  grid-template-columns: repeat(4, 1fr);
}

.profile-card h3,
.cert-card h3,
.open-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.profile-card p,
.cert-card p,
.open-card p {
  margin: 0;
  color: var(--muted);
}

.availability-card {
  border-color: rgba(61, 220, 151, 0.35);
  background: linear-gradient(145deg, rgba(61, 220, 151, 0.12), var(--surface));
}

.section-heading.center {
  text-align: center;
  margin-inline: auto;
}

.cert-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.1rem;
}

.metric {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.14);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 900;
}

.hackathon-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(79, 140, 255, 0.35);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at top right, rgba(79, 140, 255, 0.18), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow);
}

.hackathon-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.hackathon-card p {
  margin: 0;
  color: var(--muted);
}

.impact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.impact-list li::before {
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  content: "";
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stack-list span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.open-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.source-note {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(255, 190, 105, 0.35);
  border-radius: 18px;
  background: rgba(255, 190, 105, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 980px) {
  .profile-grid,
  .cert-grid,
  .cloud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .profile-grid,
  .cert-grid,
  .cloud-grid {
    grid-template-columns: 1fr;
  }

  .hackathon-card {
    border-radius: var(--radius);
  }
}