/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #020617; /* Deep Navy */
  --bg-secondary: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --accent: #3b82f6; /* Vibrant Blue */
  --accent-secondary: #60a5fa; /* Lighter Blue */
  --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 960px;
}

/* ===== TRANSLATION TOGGLE ===== */
html[lang="en"] .lang-es { display: none !important; }
html[lang="es"] .lang-en { display: none !important; }

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.galaxy-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--bg-main);
  overflow: hidden;
}

.galaxy-bg::before,
.galaxy-bg::after {
  content: "";
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 70% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
  filter: blur(60px);
  animation: galaxyRotate 25s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.galaxy-bg::after {
  background: radial-gradient(circle at 40% 70%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(76, 29, 149, 0.3) 0%, transparent 50%);
  animation: galaxyRotate 20s linear infinite reverse;
}

@keyframes galaxyRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-2col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  z-index: 1;
}

.hero-text-side {
  flex: 1;
  max-width: 600px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-name {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-name .gradient {
  background: linear-gradient(135deg, #e0e7ff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  min-height: 1.5em;
}

.hero-role .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}



.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}

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

.hero-link svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
  display: block;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 100px; /* Pill shape */
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.primary-btn:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.secondary-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.secondary-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Floating Tech Sphere (Right Column Placeholder) */
.hero-visual-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 400px;
}

.floating-tech-sphere {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float-sphere 6s ease-in-out infinite;
}

.sphere-core {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--accent);
}

.orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 150px;
  height: 150px;
  animation: spin 8s linear infinite;
  border-top-color: var(--accent-secondary);
}

.orbit-2 {
  width: 220px;
  height: 220px;
  animation: spin-reverse 12s linear infinite;
  border-bottom-color: var(--text-primary);
}

@keyframes float-sphere {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Noise overlay for premium texture */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

/* Canvas Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}

#particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== ABOUT BENTO BOX ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(255, 255, 255, 0.05), transparent 40%);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  opacity: 0;
}

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

.bento-card > * {
  z-index: 1;
  position: relative;
}

.bento-main {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-location {
  grid-column: span 1;
  grid-row: span 1;
  align-items: center;
  text-align: center;
}

.bento-role {
  grid-column: span 1;
  grid-row: span 1;
  align-items: center;
  text-align: center;
}

.bento-edu {
  grid-column: span 2;
  grid-row: span 1;
  justify-content: center;
  align-items: flex-start;
}

.bento-icon {
  margin-bottom: 1rem;
}

.bento-icon-svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.bento-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bento-card .accent-text {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
}

.location-pulse {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 12px;
  height: 12px;
  background: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 212, 170, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-text strong {
  color: var(--text-primary);
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-edu { grid-column: span 2; }
}

@media (max-width: 768px) {
  .bento-card {
    padding: 1.5rem;
  }
  .bento-icon {
    font-size: 2rem;
  }
  .about-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bento-card {
    padding: 1.25rem;
  }
  .bento-main, .bento-location, .bento-role, .bento-edu {
    grid-column: span 1;
  }
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
}

.skill-group:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(108, 99, 255, 0.15);
  transition: all var(--transition);
}

.skill-tag:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.3);
}

/* ===== EXPERIENCE / EDUCATION ===== */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-3.5px);
}

.timeline-header {
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-company {
  color: var(--accent-secondary);
}

.timeline-body {
  list-style: none;
}

.timeline-body li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-body li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
  background: var(--bg-card);
}

.project-top {
  width: 100%;
  height: 160px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.project-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-top img {
  transform: scale(1.05);
}

.project-top-icon {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.project-icon-svg {
  width: 64px;
  height: 64px;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-icon-svg {
  opacity: 1;
  transform: scale(1.1);
}

.project-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(0, 212, 170, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 212, 170, 0.15);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}

.project-links a:hover {
  color: var(--text-primary);
}

.project-links a svg {
  width: 14px;
  height: 14px;
}

/* ===== CERTIFICATIONS ===== */
.certs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.cert-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.cert-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== LANGUAGES ===== */
.languages-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lang-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  min-width: 180px;
  transition: all var(--transition);
}

.lang-card:hover {
  border-color: var(--border-hover);
}

.lang-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.lang-level {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CONTACT / FOOTER ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.05);
}

.contact-item svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  display: block;
}

.contact-item > div {
  min-width: 0;
}

.contact-item .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item .value {
  font-size: 0.8rem;
  color: var(--text-secondary);
  word-break: break-word; /* Prevents overflow */
  overflow-wrap: anywhere;
}

.footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .resume-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-2col {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }
  .hero-text-side {
    max-width: 100%;
  }
  .hero-stats {
    justify-content: center;
    border-left: none;
    padding-left: 0;
  }
  .hero-links {
    justify-content: center;
  }
  .floating-tech-sphere {
    width: 150px;
    height: 150px;
  }
  .orbit-1 { width: 120px; height: 120px; }
  .orbit-2 { width: 180px; height: 180px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

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

  .nav-toggle {
    display: block;
  }

  section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

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

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

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

  .languages-grid {
    flex-direction: column;
  }

  .lang-card {
    min-width: unset;
  }
}
