*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== TEMAS (CLARO / OSCURO) - MISMO ESTILO QUE SYSTEMSCR ===== */
:root {
  --ink: #05050a;
  --ink2: #0d0d18;
  --ink3: #141425;
  --paper: #f0ede8;
  --paper2: #e8e4dd;
  --lime: #c8f53a;
  --lime2: #a8d820;
  --cyan: #00e5ff;
  --warm: #ff6b35;
  --muted: #6b6b8a;
  --muted2: #9090aa;
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(200, 245, 58, 0.2);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-height: 70px;
}

[data-theme="light"] {
  --ink: #f5f5f7;
  --ink2: #ffffff;
  --ink3: #f0f0f2;
  --paper: #1a1a2e;
  --paper2: #16213e;
  --lime: #7cb518;
  --lime2: #5c8a10;
  --cyan: #0891b2;
  --warm: #ea580c;
  --muted: #6b7280;
  --muted2: #4b5563;
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(124, 181, 24, 0.25);
}

/* Scrollbar - estilo Systemscr */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--lime);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lime2);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--lime) var(--ink3);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.2s ease;
  cursor: none;
}

/* CUSTOM CURSOR - igual que Systemscr */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(200, 245, 58, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s, opacity 0.2s;
}

body:hover #cursor-ring {
  opacity: 1;
}

/* ===== NAV RESPONSIVE ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 10, 0.7);
  min-height: var(--header-height);
}

[data-theme="light"] nav {
  background: rgba(245, 245, 247, 0.85);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-decoration: none;
}

.nav-logo span {
  color: var(--lime);
}

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--lime);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--paper);
  font-size: 1.3rem;
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* Right controls group */
.nav-controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.theme-toggle,
.lang-toggle {
  background: var(--ink3);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.theme-toggle:hover,
.lang-toggle:hover {
  transform: scale(1.05);
  border-color: var(--lime);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: var(--lime);
  color: var(--ink);
  border: none;
  padding: 0.5rem 1.2rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--lime2);
  transform: translateY(-1px);
}

/* ===== HERO RESPONSIVE ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 5% 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--lime) 1px, transparent 1px),
    linear-gradient(90deg, var(--lime) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.04;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-orb {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  opacity: 0.08;
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero-orb2 {
  position: absolute;
  width: 30vw;
  height: 30vw;
  max-width: 400px;
  max-height: 400px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  opacity: 0.06;
  bottom: 0;
  left: 5%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 3vw, 0.75rem);
  color: var(--lime);
  border: 1px solid var(--border2);
  background: rgba(200, 245, 58, 0.08);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease forwards;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 10vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s ease forwards;
}

.hero-name .line2 {
  display: block;
  color: var(--lime);
}

.hero-desc {
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  color: var(--muted2);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.75;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s ease forwards;
}

.hero-desc strong {
  color: var(--paper);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s ease forwards;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 3vw, 0.78rem);
  letter-spacing: 0.06em;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: var(--lime2);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--muted2);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--paper);
  border-color: var(--lime);
}

.hero-stats {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeRight 0.8s 0.8s ease forwards;
}

.stat-item {
  text-align: right;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
  color: var(--lime);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 2.5vw, 0.68rem);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeUp 0.6s 1.2s ease forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  animation: scrollAnim 1.5s ease-in-out infinite;
}

@keyframes scrollAnim {

  0%,
  100% {
    transform: scaleY(0.3);
  }

  50% {
    transform: scaleY(1);
  }
}

/* ===== GENERAL SECTIONS RESPONSIVE ===== */
section {
  padding: 5rem 5%;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 3vw, 0.7rem);
  color: var(--lime);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--lime);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 3rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.section-sub {
  color: var(--muted2);
  font-size: clamp(0.9rem, 3.5vw, 0.95rem);
  max-width: 480px;
  font-weight: 300;
  line-height: 1.6;
}

/* ===== ABOUT RESPONSIVE ===== */
#about {
  background: var(--ink2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 2rem;
}

.about-visual {
  position: relative;
}

.about-card-main {
  background: var(--ink3);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
}

.about-avatar {
  width: 70px;
  height: 70px;
  background: var(--lime);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.about-card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.about-card-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.about-card-loc {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.about-floating {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--ink3);
  border: 1px solid var(--border2);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  animation: float 4s ease-in-out infinite;
}

.about-floating span {
  color: var(--lime);
  font-size: 1rem;
  display: block;
  font-weight: 500;
}

.about-floating2 {
  position: absolute;
  bottom: -40px;
  left: -10px;
  background: var(--ink3);
  border: 1px solid var(--border2);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  animation: float 3s 1s ease-in-out infinite;
}

.about-floating2 span {
  color: var(--lime);
  font-size: 1rem;
  display: block;
  font-weight: 500;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.about-text p {
  color: var(--muted2);
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  transition: all 0.2s;
}

.skill-tag:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* ===== PROJECTS RESPONSIVE ===== */
.projects-header {
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--ink2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  cursor: none;
  position: relative;
}

.project-card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
}

.project-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.project-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.4s;
}

.project-card:hover .project-img-inner {
  transform: scale(1.08);
}

.proj-blue {
  background: linear-gradient(135deg, #0a0a1a, #1a0a3a);
}

.proj-teal {
  background: linear-gradient(135deg, #0a1a0a, #0a2a1a);
}

.proj-orange {
  background: linear-gradient(135deg, #1a0a0a, #2a1a0a);
}

.proj-pink {
  background: linear-gradient(135deg, #2d0036, #4a0040);
}

.proj-sky {
  background: linear-gradient(135deg, #0a1f3c, #0c3060);
}

.proj-green {
  background: linear-gradient(135deg, #0a2010, #133820);
}

[data-theme="light"] .proj-blue {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

[data-theme="light"] .proj-teal {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}

[data-theme="light"] .proj-orange {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

[data-theme="light"] .proj-pink {
  background: linear-gradient(135deg, #db2777, #ec4899);
}

[data-theme="light"] .proj-sky {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
}

[data-theme="light"] .proj-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink2) 0%, transparent 60%);
  z-index: 1;
}

.project-body {
  padding: 1.2rem;
  position: relative;
  z-index: 2;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--lime);
  background: rgba(200, 245, 58, 0.1);
  border: 1px solid var(--border2);
  padding: 0.2rem 0.5rem;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--muted2);
  line-height: 1.6;
  font-weight: 300;
}

.project-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  background: rgba(200, 245, 58, 0.1);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.2s;
  z-index: 3;
  color: var(--lime);
  font-size: 0.9rem;
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== EXPERIENCE RESPONSIVE ===== */
#experience {
  background: var(--ink2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.experience-inner {
  max-width: 900px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--lime), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -1.85rem;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--lime);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 3vw, 0.72rem);
  color: var(--lime);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.timeline-company::before {
  content: '◆';
  font-size: 0.5rem;
  color: var(--lime);
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-bullets li {
  font-size: clamp(0.85rem, 3.5vw, 0.9rem);
  color: var(--muted2);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
  font-weight: 300;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-size: 0.8rem;
}

/* ===== STACK RESPONSIVE ===== */
.stack-header {
  margin-bottom: 3rem;
}

.stack-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}

.stack-cat {
  background: var(--ink2);
  border: 1px solid var(--border);
  padding: 1.2rem;
  transition: border-color 0.2s;
}

.stack-cat:hover {
  border-color: var(--lime);
}

.stack-cat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lime);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.7rem;
  transition: all 0.2s;
}

[data-theme="light"] .stack-item {
  background: rgba(0, 0, 0, 0.04);
}

.stack-item:hover {
  background: rgba(200, 245, 58, 0.15);
  color: var(--lime);
}

/* ===== CONTACT RESPONSIVE ===== */
#contact {
  text-align: center;
  background: var(--ink2);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 4vw, 1.5rem);
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.03em;
  margin: 1.5rem 0;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
  word-break: break-all;
}

.contact-email:hover {
  border-color: var(--lime);
  box-shadow: 0 0 40px rgba(200, 245, 58, 0.15);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--lime);
}

/* ===== FOOTER RESPONSIVE ===== */
footer {
  padding: 1.5rem 5%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 2.5vw, 0.68rem);
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translate(20px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--ink);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
    border-top: 1px solid var(--border);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-controls {
    gap: 0.5rem;
  }

  .theme-toggle span:not(.toggle-icon),
  .lang-toggle span:not(.toggle-icon) {
    display: none;
  }

  .theme-toggle,
  .lang-toggle {
    padding: 0.4rem;
  }

  .nav-cta {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .hero-stats {
    display: none;
  }

  .about-floating,
  .about-floating2 {
    display: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stack-categories {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  section {
    padding: 3rem 5%;
  }

  .timeline {
    padding-left: 1.2rem;
  }

  .timeline-dot {
    left: -1.55rem;
  }
}

.lang-toggle {
  color: #ffffff;
  font-weight: 600;
}

[data-theme="light"] .lang-toggle {
  color: #1a1a2e;
}

.theme-toggle {
  color: #ffffff;
}

[data-theme="light"] .theme-toggle {
  color: #1a1a2e;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-stats {
    right: 3%;
  }

  .stat-num {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1400px) {
  section {
    padding: 6rem 10%;
  }

  nav {
    padding: 1rem 10%;
  }

  .hero-content {
    max-width: 900px;
  }
}