:root {
  --md-sys-color-primary: #a8c7fa;
  --md-sys-color-on-primary: #062e6f;
  --md-sys-color-primary-container: #0842a0;
  --md-sys-color-on-primary-container: #d3e3fd;
  
  --md-sys-color-secondary: #7fcfff;
  --md-sys-color-on-secondary: #003355;
  
  --md-sys-color-tertiary: #e2bbed;
  --md-sys-color-on-tertiary: #41234f;
  
  --md-sys-color-background: #040814;
  --md-sys-color-on-background: #e1e2e8;
  --md-sys-color-surface: #0a0e1c;
  --md-sys-color-on-surface: #e1e2e8;
  
  --glass-bg: rgba(10, 14, 28, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(24px) saturate(180%);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
  --transition-normal: 0.4s cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 0.8s cubic-bezier(0.2, 0, 0, 1);
  
  --glow-cyan: rgba(127, 207, 255, 0.4);
  --glow-purple: rgba(226, 187, 237, 0.4);

  /* Fluid Typography Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1rem + 1.25vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-display: clamp(3.5rem, 8vw, 6rem);

  /* Fluid Spacing Scale */
  --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-display);
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Backgrounds */
#video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  z-index: -3;
  opacity: 0.4;
  mix-blend-mode: screen;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  filter: blur(100px);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out alternate;
  opacity: 0.5;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: var(--md-sys-color-primary-container);
  top: -200px;
  left: -200px;
}

.aurora-2 {
  width: 500px;
  height: 500px;
  background: var(--md-sys-color-tertiary);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
  opacity: 0.3;
}

.aurora-3 {
  width: 400px;
  height: 400px;
  background: #007766;
  top: 40%;
  left: 50%;
  animation-delay: -10s;
  opacity: 0.2;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 100px) scale(1.1); }
  100% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Liquid Glass Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

ul {
  list-style: none;
}

/* Layout */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(168, 199, 250, 0.1);
  color: var(--md-sys-color-primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  border: 1px solid rgba(168, 199, 250, 0.2);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--md-sys-color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.125rem;
  color: #a0a3b1;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-normal);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 0 20px rgba(168, 199, 250, 0.4);
}

.btn-primary:hover {
  background: #c3d8fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 199, 250, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Super Buttons for Hero */
.btn-super {
  font-size: 1.15rem;
  padding: 1.2rem 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.btn-super::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), transparent, rgba(255,255,255,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-super-simulador {
  background: linear-gradient(135deg, rgba(8, 66, 160, 0.5), rgba(127, 207, 255, 0.3));
  color: #fff;
  box-shadow: 0 10px 30px rgba(127, 207, 255, 0.2), inset 0 2px 10px rgba(255,255,255,0.1);
  animation: pulse-glow-sim 3s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-super-simulador:hover {
  transform: scale(1.05) translateY(-5px);
  background: linear-gradient(135deg, rgba(8, 66, 160, 0.8), rgba(127, 207, 255, 0.5));
  box-shadow: 0 15px 40px rgba(127, 207, 255, 0.5), inset 0 2px 15px rgba(255,255,255,0.4);
  animation: none;
}

.btn-super-asistencia {
  background: linear-gradient(135deg, rgba(65, 35, 79, 0.5), rgba(226, 187, 237, 0.3));
  color: #fff;
  box-shadow: 0 10px 30px rgba(226, 187, 237, 0.2), inset 0 2px 10px rgba(255,255,255,0.1);
  animation: pulse-glow-asis 3s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: 1.5s;
}

.btn-super-asistencia:hover {
  transform: scale(1.05) translateY(-5px);
  background: linear-gradient(135deg, rgba(65, 35, 79, 0.8), rgba(226, 187, 237, 0.5));
  box-shadow: 0 15px 40px rgba(226, 187, 237, 0.5), inset 0 2px 15px rgba(255,255,255,0.4);
  animation: none;
}

@keyframes pulse-glow-sim {
  0% { box-shadow: 0 10px 20px rgba(127, 207, 255, 0.1), inset 0 2px 5px rgba(255,255,255,0.1); }
  100% { box-shadow: 0 10px 40px rgba(127, 207, 255, 0.4), inset 0 2px 15px rgba(255,255,255,0.2); }
}

@keyframes pulse-glow-asis {
  0% { box-shadow: 0 10px 20px rgba(226, 187, 237, 0.1), inset 0 2px 5px rgba(255,255,255,0.1); }
  100% { box-shadow: 0 10px 40px rgba(226, 187, 237, 0.4), inset 0 2px 15px rgba(255,255,255,0.2); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition-normal);
  border-radius: var(--radius-full);
  background: rgba(10, 14, 28, 0.3);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 0.8rem 2rem;
  background: rgba(10, 14, 28, 0.75);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  width: 85%;
  top: 1rem;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.logo-icon {
  color: var(--md-sys-color-primary);
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #d1d5db;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--md-sys-color-primary);
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: #fff;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(168, 199, 250, 0.1);
  border: 1px solid rgba(168, 199, 250, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-title {
  font-size: var(--text-display);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.typed-text {
  font-weight: 600;
  color: #fff;
  border-right: 2px solid var(--md-sys-color-primary);
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-desc {
  font-size: 1.125rem;
  color: #9ca3af;
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-tech-stack {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: #a0a3b1;
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(8,66,160,0.4), rgba(226,187,237,0.1));
  padding: 2px;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  padding: 2px;
  background: linear-gradient(135deg, var(--md-sys-color-primary), transparent, var(--md-sys-color-tertiary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  z-index: 2;
  position: relative;
}

.hero-img-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(168,199,250,0.2) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}



.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--md-sys-color-primary);
  animation: scrollDrop 1.5s infinite;
}

@keyframes scrollDrop {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* Projects Section */
.projects {
  padding: var(--space-xl) 0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: 3rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(20, 25, 40, 0.7), rgba(10, 14, 28, 0.9));
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-bg-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.card-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.card-bg-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 60%;
  background: linear-gradient(to top, var(--md-sys-color-surface), transparent);
}

.card-glow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
  mix-blend-mode: screen;
}

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

.glow-cyan { background: radial-gradient(circle at 50% 0%, var(--glow-cyan), transparent 60%); }
.glow-purple { background: radial-gradient(circle at 50% 0%, var(--glow-purple), transparent 60%); }

.card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.card-icon-wrap {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-top: -45px;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.card-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.badge-purple {
  background: rgba(192, 132, 252, 0.1);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.2);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

.card-desc {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-features {
  margin-bottom: 2rem;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.feat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}

.feat-dot.cyan { background: var(--md-sys-color-secondary); box-shadow: 0 0 5px var(--md-sys-color-secondary); }
.feat-dot.purple { background: var(--md-sys-color-tertiary); box-shadow: 0 0 5px var(--md-sys-color-tertiary); }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
}

.card-stack {
  display: flex;
  gap: 0.5rem;
}

.card-stack span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  color: #a0a3b1;
}

.card-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
  color: #fff;
}

.project-card:hover .card-arrow {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  transform: translateX(5px);
}



/* Contact Section */
.contact-section {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.contact-info {
  padding: 3rem;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-avatar {
  position: relative;
  width: 120px; height: 120px;
  margin-bottom: 1.5rem;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(var(--md-sys-color-primary), var(--md-sys-color-tertiary), var(--md-sys-color-primary));
  animation: spin 4s linear infinite;
}

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

.avatar-inner {
  position: absolute;
  inset: 0;
  background: var(--md-sys-color-surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  border: 4px solid var(--md-sys-color-background);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-role {
  color: var(--md-sys-color-primary);
  font-weight: 500;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  color: #d1d5db;
}

.contact-link svg {
  width: 24px; height: 24px;
}

.contact-link:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(5px);
  color: #fff;
}

.contact-link.whatsapp:hover { border-color: #25D366; color: #25D366; }

.contact-form {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #d1d5db;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 4px rgba(168, 199, 250, 0.1);
}

.full-width { width: 100%; }

/* Footer */
.footer {
  padding: 4rem 2rem 2rem;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: #9ca3af;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #d1d5db;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--md-sys-color-primary);
}

.footer-copy {
  font-size: 0.875rem;
  color: #6b7280;
}

.footer-glow {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 50%; height: 200px;
  background: radial-gradient(ellipse at bottom, rgba(168, 199, 250, 0.15) 0%, transparent 70%);
  pointer-events: none;
}



/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 45px; height: 45px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 992px) {
  .hero { flex-direction: column; text-align: center; padding-top: 6rem; gap: 2rem; }
  .hero-title { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem auto; }
  .hero-cta { justify-content: center; }
  .hero-tech-stack { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 250px; height: 100vh;
    background: var(--md-sys-color-surface);
    flex-direction: column;
    padding: 6rem 2rem;
    transition: var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  .nav-links.active { right: 0; }
  
  .section-container { padding: 0 1rem; }
  .hero { padding: 5rem 1rem 3rem; min-height: auto; }
  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: 2rem; }
  .projects { padding: 3rem 0; }
  .projects-grid { margin-top: 1.5rem; gap: 1rem; }
  .contact-section { padding: 3rem 0; }
  .contact-info { padding: 1.5rem; }
  .contact-form { padding: 1.5rem; gap: 1rem; }
  .footer { padding: 3rem 1rem 1rem; }
}

/* Web Interface Guidelines: Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}
