/* ═══════════════════════════════════════════════════════════════════════
   KRLOXZS PORTFOLIO - HOJA DE ESTILOS PRINCIPAL
   Inspirado en Ejemplo.jpg y con el color dorado favorito del logo
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta Oficial Dorada / Amarilla (Extraída de Logo.jpg) */
  --color-gold-light: #FFE566;
  --color-gold: #FFCC00;
  --color-gold-hover: #FFD833;
  --color-gold-dark: #D49A00;
  --color-gold-glow: rgba(255, 204, 0, 0.35);
  --color-gold-glow-subtle: rgba(255, 204, 0, 0.12);

  /* Fondos y Superficies Oscuras */
  --bg-app: #0B0C0E;
  --bg-sidebar: #121316;
  --bg-card: #16171C;
  --bg-card-hover: #1C1E24;
  --bg-input: #1A1B22;

  /* Bordes y Líneas */
  --border-subtle: #242630;
  --border-card: #2B2D38;
  --border-gold: rgba(255, 204, 0, 0.4);

  /* Tipografías y Textos */
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-code-tag: #404452;

  /* Layout y Dimensiones */
  --sidebar-width: 140px;
  --header-mobile-height: 70px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-squircle: 22.37%; /* Apple App Icon Squircle standard */

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-app);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  min-height: 100vh;
}

::selection {
  background-color: var(--color-gold);
  color: #000000;
}

/* ═══════════════════════════════════════════════════════════════════════
   SIDEBAR LATERAL (DESKTOP)
   ═══════════════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  border-left: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0.75rem;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 100%;
}

.logo-squircle {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 15px var(--color-gold-glow-subtle);
  border: 1px solid rgba(255, 204, 0, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.logo-squircle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 25px var(--color-gold-glow);
}

.logo-squircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  margin-top: 0.75rem;
  text-align: center;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.brand-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navegación Vertical */
.sidebar-nav {
  width: 100%;
  margin: 1.5rem 0;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.sidebar-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--color-gold);
  background-color: rgba(255, 204, 0, 0.08);
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  right: auto;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background-color: var(--color-gold);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--color-gold);
}

/* Redes Sociales del Sidebar */
.sidebar-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
}

.sidebar-socials a {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.sidebar-socials a:hover {
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════
   CABECERA MÓVIL Y BOTÓN HAMBURGUESA
   ═══════════════════════════════════════════════════════════════════════ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-mobile-height);
  background-color: rgba(18, 19, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.25rem;
  align-items: center;
  justify-content: space-between;
  z-index: 150;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.mobile-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 0, 0.4);
}

.mobile-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.menu-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.menu-toggle-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 90;
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-width);
  margin-right: 0;
  flex: 1;
  min-height: 100vh;
  padding: 2.5rem 4rem 3rem 4rem;
  position: relative;
  width: calc(100% - var(--sidebar-width));
  max-width: 100%;
}

/* Sintaxis de etiquetas de código estilo Ejemplo.jpg */
.code-tag {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-code-tag);
  user-select: none;
  display: block;
}

.code-tag.indent-1 { padding-left: 1.5rem; }
.code-tag.indent-2 { padding-left: 3rem; }

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3.5rem;
  padding: 1.5rem 0 3.5rem 0;
  position: relative;
  width: 100%;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 204, 0, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(255, 204, 0, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  width: fit-content;
}

.badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--color-gold); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.hero-title .highlight-gold {
  color: var(--color-gold);
  text-shadow: 0 0 30px var(--color-gold-glow);
  display: inline-block;
  position: relative;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 100%;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 100%;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, #E6B800 100%);
  color: #0A0A0C;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--color-gold-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-gold-glow);
  background: linear-gradient(135deg, #FFE066 0%, var(--color-gold) 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border-card);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(255, 204, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════
   TAGCLOUD 3D CANVAS (INSPIRADO EN EJEMPLO.JPG)
   ═══════════════════════════════════════════════════════════════════════ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 580px;
  width: 100%;
}

.canvas-sphere-container {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 580px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.sphere-overlay-hint {
  position: absolute;
  bottom: 0px;
  font-size: 0.75rem;
  color: var(--text-code-tag);
  font-family: monospace;
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════
   MÉTRICAS / STATS BAR
   ═══════════════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 3.5rem 0 5rem 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.25rem 3rem;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

/* ═══════════════════════════════════════════════════════════════════════
   SECCIÓN DE SKILLS & TECNOLOGÍAS
   ═══════════════════════════════════════════════════════════════════════ */
.section {
  padding: 4rem 0;
  position: relative;
  width: 100%;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-top: 0.3rem;
}

.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

.skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--color-gold-glow-subtle);
}

.skill-card-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.5rem;
}

.skill-card-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.skill-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.skill-chip {
  background-color: var(--bg-input);
  color: var(--color-gold-light);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: monospace;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECCIÓN DE PROYECTOS DESTACADOS (FEATURED WORK)
   ═══════════════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  width: 100%;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-gold-glow-subtle);
}

.project-preview-header {
  height: 160px;
  background: linear-gradient(135deg, #1f2029 0%, #111216 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.project-preview-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-gold-glow-subtle) 0%, transparent 60%);
  pointer-events: none;
}

.project-badge-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 204, 0, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(255, 204, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.project-icon-large {
  font-size: 3.5rem;
  color: var(--color-gold);
  filter: drop-shadow(0 0 15px var(--color-gold-glow));
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.tech-tag {
  background-color: var(--bg-app);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

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

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.link-btn:hover {
  gap: 0.7rem;
  color: var(--color-gold-hover);
}

/* ═══════════════════════════════════════════════════════════════════════
   SECCIÓN ABOUT ME
   ═══════════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
  width: 100%;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-highlight-box {
  background-color: var(--bg-card);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.about-highlight-box h4 {
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-card-info {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.info-value {
  color: var(--text-primary);
  font-weight: 600;
}

.info-value.gold {
  color: var(--color-gold);
}

/* ═══════════════════════════════════════════════════════════════════════
   SECCIÓN DE CONTACTO
   ═══════════════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.contact-method-card:hover {
  border-color: var(--border-gold);
  transform: translateX(4px);
  background-color: var(--bg-card-hover);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 204, 0, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.25rem;
}

.contact-method-text h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-method-text p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Tarjeta de Contacto Directo */
.contact-direct-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--color-gold);
}

.contact-direct-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-gold-glow-subtle) 0%, transparent 65%);
  pointer-events: none;
}

.contact-direct-header h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 0.85rem;
  letter-spacing: -0.5px;
}

.contact-direct-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-direct-actions {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
  margin-top: 5rem;
  padding: 2.5rem 0 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  color: var(--color-gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVIDAD Y MEDIA QUERIES
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual {
    min-height: 380px;
  }

  .canvas-sphere-container {
    max-width: 380px;
    height: 380px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-100%);
    left: 0;
    right: auto;
    width: 240px;
    padding-top: calc(var(--header-mobile-height) + 1.5rem);
    border-right: 1px solid var(--border-subtle);
    border-left: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  }

  .mobile-header {
    display: flex;
  }

  .mobile-overlay.active {
    display: block;
  }

  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding: calc(var(--header-mobile-height) + 1.5rem) 1.5rem 2rem 1.5rem;
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 2.3rem;
  }

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

  .contact-form {
    padding: 1.5rem;
  }

  .canvas-sphere-container {
    max-width: 300px;
    height: 300px;
  }
}
