/* ====== CONTACT SECTION ====== */
.contact-section {
  position: relative;
  background: linear-gradient(135deg, var(--darker) 0%, var(--mid-dark) 50%, var(--dark) 100%);
  padding-top: 100px;
  padding-bottom: 100px;
  overflow: hidden;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(800px 600px at 30% 20%, rgba(139, 92, 246, 0.2), transparent),
    radial-gradient(600px 400px at 70% 80%, rgba(6, 214, 160, 0.15), transparent),
    radial-gradient(400px 300px at 20% 80%, rgba(247, 37, 133, 0.1), transparent);
}

.contact-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(99,102,241,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(16,185,129,0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(99,102,241,0.2), transparent);
  background-repeat: repeat;
  background-size: 150px 150px;
  animation: contactFloat 20s linear infinite;
}

@keyframes contactFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.contact-subtitle {
  color: #aab0c0;
  margin-top: -8px;
  font-size: 1.1rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
  align-items: start;
}

.contact-cta h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #6366f1, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-cta p {
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-reasons {
  display: grid;
  gap: 12px;
}

.reason-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: #e2e8f0;
}

.reason-item i {
  width: 20px;
  color: #6366f1;
}

.contact-links {
  display: grid;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.1), transparent);
  transition: left 0.5s;
}

.contact-link:hover::before {
  left: 100%;
}

.contact-link:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(139, 92, 246, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border-color: rgba(139, 92, 246, 0.5);
}

.contact-link.primary {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.contact-link.primary .contact-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.2);
  color: #c7d2fe;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info {
  flex-grow: 1;
}

.contact-info h4 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #f1f5f9;
}

.contact-info span {
  color: #94a3b8;
  font-size: 0.95rem;
}

.contact-arrow {
  color: #6366f1;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-10px);
}

.contact-link:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ====== FOOTER ====== */
.footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-top: 1px solid rgba(99,102,241,0.1);
  padding-top: 60px;
  padding-bottom: 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  font-size: 1.8rem;
  margin: 0 0 8px;
  color: #f1f5f9;
}

.footer-logo span {
  background: linear-gradient(135deg, #6366f1, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo p {
  color: #94a3b8;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  color: #f1f5f9;
  margin: 0 0 16px;
  font-size: 1rem;
}

.footer-column a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #6366f1;
}

.footer-tech {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  color: #c7d2fe;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin: 2px 4px 2px 0;
  border: 1px solid rgba(99,102,241,0.2);
}

.footer-bottom {
  margin-top: 40px;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent);
  margin-bottom: 24px;
}

.footer-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-final p {
  color: #64748b;
  margin: 0;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-size: 0.9rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-final {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .contact-links {
    gap: 12px;
  }
  
  .contact-link {
    padding: 16px;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ====== NOW SECTION ====== */
.now-section {
  position: relative;
  background: radial-gradient(1200px 400px at 10% -10%, rgba(99,102,241,.15), transparent),
              radial-gradient(1000px 500px at 110% 10%, rgba(16,185,129,.12), transparent);
  padding-top: 80px;
  padding-bottom: 80px;
}

.now-subtitle {
  color: #aab0c0;
  margin-top: -8px;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.now-card {
  position: relative;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.now-card.elevated {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  border-color: rgba(99,102,241,0.35);
}

.now-card.pressed {
  transform: translateY(0) scale(0.99);
}

.now-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(16,185,129,0.25));
  color: #c7d2fe;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.12);
}

.now-card h3 {
  margin: 6px 0 10px;
}

.now-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.now-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.now-list li:last-child {
  border-bottom: 0;
}

.now-mini-log {
  margin-top: 28px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
}

.mini-log-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #cbd5e1;
}

.mini-log-items { display: grid; gap: 10px; }
.mini-log-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: baseline;
}
.log-date { color: #93c5fd; font-variant-numeric: tabular-nums; }
.log-text { color: #e5e7eb; }

@media (max-width: 900px) {
  .now-grid { grid-template-columns: 1fr; }
}
:root {
  --primary: #FF4A3A;
  --primary-dark: #E63946;
  --secondary: #FF6B3D;
  --accent: #F72119;
  --tertiary: #FFA500;
  --dark: #0D1B2A;
  --darker: #040A0F;
  --mid-dark: #162B3A;
  --surface-dark: #1B3B4F;
  --light: #FFFFFF;
  --gray: #6C757D;
  --gray-light: #ADB5BD;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --surface: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.15);
  --shadow-color: 0, 0, 0;
  --glow-primary: rgba(255, 74, 58, 0.5);
  --glow-secondary: rgba(255, 107, 61, 0.4);
  --glow-accent: rgba(247, 33, 25, 0.4);
  
  /* RGB Values for transparency effects */
  --primary-rgb: 255, 74, 58;
  --secondary-rgb: 255, 107, 61;
  --accent-rgb: 247, 33, 25;
  --tertiary-rgb: 255, 165, 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--light);
  background: var(--darker);
  background-image: 
    conic-gradient(from 180deg at 30% 20%, rgba(255, 74, 58, 0.25) 0deg, transparent 60deg),
    radial-gradient(ellipse 800px 600px at 10% 90%, rgba(255, 107, 61, 0.15) 0%, transparent 70%),
    radial-gradient(circle 600px at 90% 10%, rgba(247, 33, 25, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 800px at 50% 50%, rgba(255, 165, 0, 0.08) 0%, transparent 70%),
    linear-gradient(135deg, var(--darker) 0%, var(--dark) 30%, var(--mid-dark) 60%, var(--surface-dark) 100%);
  background-attachment: fixed;
  background-size: 100% 100%, 150% 150%, 120% 120%, 180% 180%, 100% 100%;
  line-height: 1.65;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  position: relative;
  display: inline-block;
  font-weight: 800;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 30%, var(--accent) 70%, var(--tertiary) 100%);
  border-radius: 12px;
  box-shadow: 
    0 4px 20px var(--glow-primary),
    0 8px 40px var(--glow-secondary);
  animation: underlineGlow 3s ease-in-out infinite alternate;
}

@keyframes underlineGlow {
  0% {
    box-shadow: 
      0 4px 20px var(--glow-primary),
      0 8px 40px rgba(255, 107, 53, 0.2);
  }
  50% {
    box-shadow: 
      0 4px 20px var(--glow-secondary),
      0 8px 40px rgba(0, 212, 255, 0.3);
  }
  100% {
    box-shadow: 
      0 4px 20px var(--glow-accent),
      0 8px 40px rgba(184, 77, 255, 0.3);
  }
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: rgba(240, 246, 252, 0.85);
  line-height: 1.7;
  font-weight: 400;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
  color: white;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 12px 35px var(--glow-primary),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 4px 20px rgba(var(--shadow-color), 0.3);
  border: none;
  cursor: pointer;
  margin: 0 1rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(25px);
  transform-style: preserve-3d;
}

.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: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-6px) scale(1.05) rotateX(5deg);
  box-shadow: 
    0 25px 50px var(--glow-primary),
    0 15px 30px var(--glow-secondary),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 8px 30px rgba(var(--shadow-color), 0.4);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
  color: white;
  filter: brightness(1.1) saturate(1.2);
}

.btn-outline {
  background: var(--glass-strong);
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  color: var(--light);
  backdrop-filter: blur(25px);
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: -3px;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--tertiary));
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  transform: translateY(-6px) scale(1.05) rotateX(5deg);
  box-shadow: 
    0 25px 50px var(--glow-secondary),
    0 15px 30px var(--glow-accent),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
  perspective: 1000px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    conic-gradient(from 0deg at 30% 30%, var(--glow-primary) 0deg, transparent 120deg),
    conic-gradient(from 90deg at 70% 70%, var(--glow-secondary) 0deg, transparent 120deg),
    conic-gradient(from 180deg at 50% 20%, var(--glow-accent) 0deg, transparent 120deg),
    radial-gradient(ellipse 1000px 600px at 20% 80%, rgba(255, 235, 59, 0.1) 0%, transparent 80%);
  z-index: -2;
  animation: heroMegaGradient 30s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  z-index: -1;
  opacity: 0.5;
}

@keyframes heroMegaGradient {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: hue-rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(3deg);
    filter: hue-rotate(90deg);
  }
  50% {
    transform: scale(0.95) rotate(-2deg);
    filter: hue-rotate(180deg);
  }
  75% {
    transform: scale(1.05) rotate(1deg);
    filter: hue-rotate(270deg);
  }
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 80vh;
}

.hero-text-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 2;
}

.hero-visual-column {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--light);
  backdrop-filter: blur(20px);
  width: fit-content;
  box-shadow: 0 8px 25px rgba(var(--shadow-color), 0.2);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { 
    box-shadow: 0 8px 25px rgba(var(--shadow-color), 0.2);
    transform: translateY(0px);
  }
  50% { 
    box-shadow: 0 12px 35px var(--glow-primary);
    transform: translateY(-2px);
  }
}

.hero-image-container {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.hero-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 800px;
}

.hero-img {
  width: 380px;
  height: 380px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  object-fit: cover;
  border: 8px solid transparent;
  background: linear-gradient(var(--surface-dark), var(--surface-dark)) padding-box,
              linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--tertiary)) border-box;
  box-shadow: 
    0 40px 80px rgba(var(--shadow-color), 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.1) inset,
    0 0 150px var(--glow-primary),
    0 20px 40px var(--glow-secondary);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  filter: contrast(1.1) saturate(1.2);
  animation: morphingBorder 12s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes morphingBorder {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
  50% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  }
  75% {
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
  }
}

.hero-img::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.2) 90deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.1) 270deg,
    transparent 360deg
  );
  animation: rotatingGlow 8s linear infinite;
}

@keyframes rotatingGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-img:hover {
  transform: scale(1.12) rotateX(10deg) rotateY(5deg);
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  box-shadow: 
    0 50px 100px rgba(var(--shadow-color), 0.6),
    0 0 0 3px rgba(255, 255, 255, 0.2) inset,
    0 0 200px var(--glow-secondary),
    0 30px 60px var(--glow-accent),
    0 0 300px var(--glow-primary);
  filter: contrast(1.2) saturate(1.4) brightness(1.1);
}

/* Landscape layout for larger screens */
@media (min-width: 992px) and (orientation: landscape) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1300px;
    justify-content: center;
  }
  
  .hero-image-container {
    order: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  
  .hero-text {
    order: 2;
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
    max-width: 700px;
    justify-content: center;
  }
  
  .hero-img {
    width: 250px;
    height: 250px;
  }
  
  .hero h1 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 3.2rem;
  }
  
  .hero p {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
  }
  
  .tech-stack {
    margin: 1.5rem 0 0;
    width: 100%;
  }
  
  .tech-icons {
    justify-content: flex-start;
    max-width: 100%;
  }
}

/* Extra large screens */
@media (min-width: 1400px) and (orientation: landscape) {
  .hero-content {
    gap: 4rem;
  }
  
  .hero-img {
    width: 280px;
    height: 280px;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .hero p {
    font-size: 1.4rem;
  }
}

/* Medium landscape tablets */
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
    align-items: center;
  }
  
  .hero-text {
    align-items: flex-start;
    text-align: left;
  }
  
  .hero-img {
    width: 160px;
    height: 160px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    text-align: left;
  }
  
  .hero p {
    font-size: 1.2rem;
    text-align: left;
  }
}

/* Hero Typography */
.hero h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  margin: 0;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    var(--primary) 25%, 
    var(--secondary) 50%, 
    var(--accent) 75%, 
    var(--tertiary) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 400%;
  animation: megaGradientShift 8s ease-in-out infinite;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
  position: relative;
  transform-style: preserve-3d;
  text-align: left;
}

.hero-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.role-tag {
  padding: 0.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--light);
  backdrop-filter: blur(15px);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.8);
  max-width: 500px;
  margin: 0;
}

.hero h1::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: -1;
  transform: translateZ(-10px) scale(1.05);
  opacity: 0.3;
  filter: blur(2px);
}

@keyframes megaGradientShift {
  0%, 100% { 
    background-position: 0% 0%;
    transform: translateY(0px) rotateX(0deg);
  }
  25% { 
    background-position: 100% 100%;
    transform: translateY(-2px) rotateX(2deg);
  }
  50% { 
    background-position: 0% 100%;
    transform: translateY(0px) rotateX(0deg);
  }
  75% { 
    background-position: 100% 0%;
    transform: translateY(-2px) rotateX(-2deg);
  }
}

.hero p {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  margin-bottom: 2.5rem;
  color: rgba(203, 213, 225, 0.9);
  font-weight: 500;
}

/* Hero Actions & Stats */
.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Visual Elements */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  padding: 0.75rem 1rem;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light);
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(var(--shadow-color), 0.3);
}

.floating-card:nth-child(1) {
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  bottom: 20%;
  left: -10%;
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  top: 60%;
  right: -15%;
  animation-delay: -4s;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow-primary), transparent 70%);
  z-index: -1;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { 
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@media (min-width: 992px) and (orientation: landscape) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.highlight {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Tech Stack */
.tech-stack {
  margin: 2rem 0 1rem;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop - distribución en filas centradas */
@media (min-width: 992px) {
  .tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
  }
}

@media (min-width: 1200px) {
  .tech-icons {
    max-width: 850px;
    gap: 1.3rem;
  }
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: var(--glass-strong);
  border-radius: 24px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(25px);
  border: 2px solid transparent;
  background-clip: padding-box;
  min-width: 140px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) rotateX(20deg);
  animation: techIconEntrance 1s ease-out forwards;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

@keyframes techIconEntrance {
  0% {
    opacity: 0;
    transform: translateY(40px) rotateX(20deg) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

.tech-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.tech-icon:hover::before {
  opacity: 1;
}

.tech-icon:hover {
  transform: translateY(-12px) scale(1.08) rotateX(10deg);
  background: var(--glass-strong);
  box-shadow: 
    0 25px 50px rgba(var(--shadow-color), 0.4),
    0 0 80px var(--glow-primary),
    0 15px 30px var(--glow-secondary),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: blur(30px);
}

.tech-icon:hover img {
  transform: scale(1.15) rotateY(10deg);
  filter: drop-shadow(0 8px 16px rgba(var(--shadow-color), 0.4)) brightness(1.2) saturate(1.3);
}

.tech-icon img {
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(var(--shadow-color), 0.3));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.tech-icon span {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.3s ease;
}

.tech-icon:hover span {
  color: #ffffff;
}

/* Animación de aparición secuencial */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-icon:nth-child(1) { animation-delay: 0s; }
.tech-icon:nth-child(2) { animation-delay: 0.1s; }
.tech-icon:nth-child(3) { animation-delay: 0.2s; }
.tech-icon:nth-child(4) { animation-delay: 0.3s; }
.tech-icon:nth-child(5) { animation-delay: 0.4s; }
.tech-icon:nth-child(6) { animation-delay: 0.5s; }
.tech-icon:nth-child(7) { animation-delay: 0.6s; }
.tech-icon:nth-child(8) { animation-delay: 0.7s; }
.tech-icon:nth-child(9) { animation-delay: 0.8s; }
.tech-icon:nth-child(10) { animation-delay: 0.9s; }
.tech-icon:nth-child(11) { animation-delay: 1.0s; }
.tech-icon:nth-child(12) { animation-delay: 1.1s; }
.tech-icon:nth-child(13) { animation-delay: 1.2s; }
.tech-icon:nth-child(14) { animation-delay: 1.3s; }
.tech-icon:nth-child(15) { animation-delay: 1.4s; }
.tech-icon:nth-child(16) { animation-delay: 1.5s; }
.tech-icon:nth-child(17) { animation-delay: 1.6s; }
.tech-icon:nth-child(18) { animation-delay: 1.7s; }

/* Click animation for tech icons */
.tech-icon.clicked {
  transform: scale(0.95);
  background: rgba(99, 102, 241, 0.2);
}

/* Floating effect */
.tech-icon {
  animation: fadeInUp 0.8s ease-out forwards, float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.tech-icon:hover {
  animation-play-state: paused;
}

/* Staggered float animation */
.tech-icon:nth-child(odd) {
  animation-delay: 0s, var(--float-delay, 0s);
}

.tech-icon:nth-child(even) {
  animation-delay: 0s, calc(var(--float-delay, 0s) + 3s);
}

/* Section Styles */
.section {
  padding: 10rem 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.5;
}

/* Section Header Layout */
.section-header-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  margin-bottom: 5rem;
}

.section-header-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light);
  backdrop-filter: blur(15px);
  width: fit-content;
}

.section-header-layout h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray-light);
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

.section-cta {
  display: flex;
  align-items: center;
}

.section-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tech Stack Section - Nuevo Diseño */
.tech-stack-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, 
    var(--darker) 0%, 
    var(--dark) 50%, 
    var(--mid-dark) 100%);
  position: relative;
  overflow: hidden;
}

.tech-stack-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    var(--glow-primary) 0%,
    transparent 70%
  );
  opacity: 0.2;
  pointer-events: none;
}

.section-title-modern {
  text-align: center;
  margin-bottom: 4rem;
}

.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(20px);
}

.section-title-modern h2 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-light);
  max-width: 600px;
  margin: 0 auto;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.stack-layer {
  background: var(--glass);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stack-layer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stack-layer:hover::before {
  opacity: 1;
}

.stack-layer:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 
    0 20px 40px rgba(var(--shadow-color), 0.3),
    0 0 40px var(--glow-primary);
}

.layer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.layer-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.layer-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  margin: 0;
}

.layer-desc {
  color: var(--gray-light);
  font-size: 0.9rem;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-chip:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tech-chip img {
  width: 20px;
  height: 20px;
}

.tech-chip span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--light);
}

.tech-experience {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.experience-item {
  text-align: center;
}

.exp-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.exp-label {
  color: var(--gray-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

/* Responsive Design para Tech Stack */
@media (max-width: 768px) {
  .tech-stack-section {
    padding: 6rem 0;
  }
  
  .section-title-modern h2 {
    font-size: 2.5rem;
  }
  
  .tech-stack-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stack-layer {
    padding: 1.5rem;
  }
  
  .tech-experience {
    gap: 2rem;
  }
  
  .exp-number {
    font-size: 2.5rem;
  }
}











.tech-section h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.tech-grid-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.tech-grid .tech-icon {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  cursor: pointer;
  min-height: 140px;
  width: 100%;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 1;
  transform: translateY(0);
}

.tech-grid .tech-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.15), 
    rgba(168, 85, 247, 0.15)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.tech-grid .tech-icon:hover::before {
  opacity: 1;
}

.tech-grid .tech-icon:hover {
  transform: translateY(-12px) scale(1.05);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 25px 50px rgba(99, 102, 241, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.tech-grid .tech-icon img {
  width: 56px !important;
  height: 56px !important;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.tech-grid .tech-icon:hover img {
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.tech-grid .tech-icon span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.tech-grid .tech-icon:hover span {
  color: var(--primary);
}

@keyframes slideUpTech {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para la nueva sección */
@media (max-width: 768px) {
  .tech-section {
    padding: 4rem 0;
  }
  
  .tech-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
  }
  
  .tech-grid .tech-icon {
    min-height: 110px;
    padding: 1.5rem 1rem;
  }
  
  .tech-grid .tech-icon img {
    width: 42px !important;
    height: 42px !important;
  }
  
  .tech-grid .tech-icon span {
    font-size: 0.9rem;
  }
}

/* About Section */
.skills-list {
  list-style: none;
  margin-bottom: 2rem;
}

.skills-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.skills-list li i {
  margin-right: 1rem;
  color: var(--secondary);
  font-size: 1.3rem;
  width: 24px;
}

.quote {
  padding: 2rem;
  border-left: 4px solid var(--primary);
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-style: italic;
}

/* Timeline */
.timeline-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%236366f1" fill-opacity="0.05"><circle cx="30" cy="30" r="1"/></g></g></svg>');
  z-index: 0;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
  z-index: 1;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, 
    var(--primary), 
    var(--secondary), 
    var(--primary)
  );
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 45%;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 55%;
}

.timeline-content {
  position: relative;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
}

.timeline-icon {
  position: absolute;
  top: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -30px;
}

.timeline-icon:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
}

.timeline-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 700;
}

.timeline-content .year {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(99, 102, 241, 0.2);
  color: var(--secondary);
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.timeline-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(6, 182, 212, 0.2);
  color: var(--secondary);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(6, 182, 212, 0.3);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.timeline-item.current .timeline-content {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.timeline-item.current .timeline-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  animation: pulse 2s infinite;
}

.timeline-item.current .year {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

@keyframes slideInTimeline {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.6);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(-90deg);
  }
  70% {
    transform: scale(0.9) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Projects Masonry Grid */
.projects-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}

.status-dot.completed {
  background: #3b82f6;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Project Images Styles */
.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(var(--primary-rgb), 0.2) 0%,
    rgba(var(--secondary-rgb), 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .image-overlay {
  opacity: 1;
}

.image-overlay i {
  font-size: 2rem;
  color: var(--light);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Project Header and Footer */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-type {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tech-stack {
  display: flex;
  gap: 0.75rem;
}

.tech-stack i {
  font-size: 1.25rem;
  color: var(--light);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.tech-stack i:hover {
  opacity: 1;
  color: var(--primary);
  transform: translateY(-2px);
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Project Highlights */
.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.highlight-tag {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

/* Cards */
.exp-card, .project-card, .testimonial {
  background: var(--glass-strong);
  backdrop-filter: blur(30px);
  border-radius: 32px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 
    0 30px 60px rgba(var(--shadow-color), 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 10px 20px rgba(var(--shadow-color), 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.exp-card::before, .project-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, 
    var(--primary) 0%, 
    var(--secondary) 25%, 
    var(--accent) 50%, 
    var(--tertiary) 75%,
    var(--primary) 100%
  );
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderFlow 6s linear infinite;
  z-index: -1;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.exp-card:hover::before, .project-card:hover::before {
  opacity: 1;
}

.exp-card::after, .project-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--glow-primary) 30deg,
    transparent 60deg,
    var(--glow-secondary) 150deg,
    transparent 180deg,
    var(--glow-accent) 270deg,
    transparent 300deg
  );
  opacity: 0;
  animation: cardGlow 10s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes cardGlow {
  0% { transform: rotate(0deg); opacity: 0; }
  50% { opacity: 0.3; }
  100% { transform: rotate(360deg); opacity: 0; }
}

.exp-card:hover, .project-card:hover {
  transform: translateY(-16px) scale(1.03) rotateX(8deg);
  box-shadow: 
    0 40px 80px rgba(var(--shadow-color), 0.5),
    0 0 150px var(--glow-primary),
    0 20px 40px var(--glow-secondary),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.exp-card:hover::after, .project-card:hover::after {
  opacity: 0.6;
}

.img-placeholder {
  height: 500px; /* Puedes ajustar esto */
  background: linear-gradient(45deg, var(--dark), var(--darker));
  border-radius: 8px;
  margin: 1.5rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-style: italic;
  position: relative;
}

/* Si contiene una imagen */
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Si hay imagen, oculta el texto (en caso alguien lo dejara por error) */
.img-placeholder:has(img) {
  color: transparent;
  font-style: normal;
}


/* Projects Grid */
.projects-section {
  background: rgba(15, 23, 42, 0.5);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Responsive for projects */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Philosophy Section */
.philosophy-section {
  background: linear-gradient(135deg, 
    var(--darker) 0%, 
    var(--mid-dark) 50%, 
    var(--dark) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 10rem 0;
}

.philosophy-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.philosophy-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  animation: philosophyFloat 20s ease-in-out infinite;
}

@keyframes philosophyFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

.philosophy-section .container {
  position: relative;
  z-index: 2;
}

.philosophy-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--secondary);
  font-style: italic;
  margin-top: 4rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* Philosophy Hero Quote */
.philosophy-hero {
  margin-bottom: 6rem;
  display: flex;
  justify-content: center;
}

.philosophy-quote {
  max-width: 900px;
  text-align: center;
  position: relative;
  padding: 3rem 2rem;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.philosophy-quote blockquote {
  font-size: 1.4rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #e2e8f0;
  font-weight: 300;
  font-style: italic;
}

.highlight-text {
  color: var(--secondary);
  font-weight: 600;
  position: relative;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 1px;
  opacity: 0.7;
}

.quote-author {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Philosophy Pillars */
.philosophy-pillars {
  margin-bottom: 6rem;
}

.pillars-title {
  text-align: center;
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 3rem;
  position: relative;
}

.pillars-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.pillar-card {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  overflow: hidden;
}

.pillar-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.pillar-card[data-pillar="innovation"] .pillar-glow {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
}

.pillar-card[data-pillar="efficiency"] .pillar-glow {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.1));
}

.pillar-card[data-pillar="purpose"] .pillar-glow {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(251, 113, 133, 0.1));
}

.pillar-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.pillar-card:hover .pillar-glow {
  opacity: 1;
}

.pillar-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.pillar-icon i {
  font-size: 2rem;
  color: white;
}

.pillar-content {
  position: relative;
  z-index: 2;
}

.pillar-content h4 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 700;
}

.pillar-content p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pillar-feature {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.pillar-card:hover .pillar-feature {
  background: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

/* Philosophy Approach */
.philosophy-approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.approach-text h3 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
}

.approach-text h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.approach-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.approach-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.balance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.balance-icon {
  width: 70px;
  height: 70px;
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.balance-icon i {
  font-size: 1.8rem;
  color: var(--secondary);
}

.balance-item span {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1.1rem;
}

.balance-connector {
  margin: 0 2rem;
  position: relative;
  display: flex;
  align-items: center;
}

.connector-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 1px;
}

.connector-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.visual-item {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.visual-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.1), 
    rgba(6, 182, 212, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.visual-item:hover::before {
  opacity: 1;
}

.visual-item:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.visual-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.visual-item:hover .visual-icon {
  transform: scale(1.1) rotate(5deg);
}

.visual-icon i {
  font-size: 1.5rem;
  color: white;
}

.visual-item span {
  display: block;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.visual-description {
  font-size: 0.9rem;
  color: #94a3b8;
  position: relative;
  z-index: 2;
}

/* Responsive Design for Philosophy */
@media (max-width: 991px) {
  .philosophy-approach {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .approach-balance {
    flex-direction: column;
    gap: 1rem;
  }
  
  .balance-connector {
    margin: 1rem 0;
    flex-direction: column;
  }
  
  .connector-line {
    width: 2px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .philosophy-section {
    padding: 6rem 0;
  }
  
  .philosophy-quote {
    padding: 2rem 1.5rem;
  }
  
  .philosophy-quote blockquote {
    font-size: 1.2rem;
  }
  
  .pillars-title {
    font-size: 1.8rem;
  }
  
  .visual-grid {
    grid-template-columns: 1fr;
  }
  
  .pillar-card {
    padding: 2rem;
  }
}

/* Testimonials */
.testimonials-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.testimonial {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.testimonial.leaving {
  opacity: 0;
  transform: translateX(-50px);
  z-index: 1;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: rgba(99, 102, 241, 0.3);
  font-family: Georgia, serif;
  z-index: -1;
}

.testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text);
}

.testimonial span {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-btn {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.testimonial-btn:hover {
  background: rgba(99, 102, 241, 0.4);
  border-color: var(--primary);
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 0.8rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(99, 102, 241, 0.7);
}

/* Contact */
#contact ul {
  list-style: none;
}

#contact li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

#contact li i {
  margin-right: 1rem;
  color: var(--secondary);
  font-size: 1.3rem;
  width: 24px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  background: rgba(15, 23, 42, 0.8);
  margin-top: 4rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
  opacity: 1;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: rgba(5, 5, 10, 0.95);
  backdrop-filter: blur(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)) 1;
  box-shadow: 
    0 12px 35px rgba(var(--shadow-color), 0.2),
    0 0 50px var(--glow-primary);
}

.navbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  
  .nav-links {
    display: flex !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    flex-direction: row !important;
    background: transparent !important;
    clip-path: none !important;
  }
  
  .nav-links li {
    margin: 0 0 0 2rem !important;
  }
  
  .nav-links a {
    font-size: 1rem !important;
  }
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, 
    var(--primary) 0%, 
    var(--secondary) 30%, 
    var(--accent) 60%, 
    var(--tertiary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 400% 400%;
  animation: logoMegaShine 6s ease-in-out infinite;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px var(--glow-primary);
  position: relative;
  transform-style: preserve-3d;
}

.logo::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(45deg, var(--glow-primary), var(--glow-secondary), var(--glow-accent));
  border-radius: 8px;
  opacity: 0;
  z-index: -1;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

.logo:hover::before {
  opacity: 0.7;
}

@keyframes logoMegaShine {
  0%, 100% { 
    background-position: 0% 0%;
    transform: translateY(0px);
  }
  25% { 
    background-position: 100% 100%;
    transform: translateY(-1px);
  }
  50% { 
    background-position: 0% 100%;
    transform: translateY(0px);
  }
  75% { 
    background-position: 100% 0%;
    transform: translateY(-1px);
  }
}

.logo span {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--light);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Mobile Nav */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 2rem;
  height: 0.25rem;
  background: var(--light);
  border-radius: 10px;
  transition: all 0.3s linear;
}

/* Enhanced Animations and Effects */
@keyframes morphingGlow {
  0%, 100% {
    box-shadow: 
      0 0 30px var(--glow-primary),
      0 0 60px rgba(255, 107, 53, 0.3),
      0 0 90px rgba(255, 107, 53, 0.1);
  }
  33% {
    box-shadow: 
      0 0 30px var(--glow-secondary),
      0 0 60px rgba(0, 212, 255, 0.3),
      0 0 90px rgba(0, 212, 255, 0.1);
  }
  66% {
    box-shadow: 
      0 0 30px var(--glow-accent),
      0 0 60px rgba(184, 77, 255, 0.3),
      0 0 90px rgba(184, 77, 255, 0.1);
  }
}

.glow-effect {
  animation: morphingGlow 8s ease-in-out infinite;
}

/* Particle Effect */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    opacity: 0;
    transform: translateY(100vh) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) rotate(360deg);
  }
}

/* Text Gradient Effects */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: gradientShift 4s ease-in-out infinite;
}

/* Improved Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 6px;
  background: linear-gradient(90deg, 
    var(--primary) 0%, 
    var(--secondary) 25%, 
    var(--accent) 50%, 
    var(--tertiary) 75%,
    var(--primary) 100%
  );
  background-size: 200% 100%;
  animation: scrollGradient 3s ease-in-out infinite;
  z-index: 9999;
  transition: width 0.3s ease;
  box-shadow: 0 0 20px var(--glow-primary);
}

@keyframes scrollGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Responsive Design */
/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    padding: 2rem 0;
  }
  
  .hero-image-container {
    flex: 1;
    max-width: 650px;
    text-align: center;
  }
  
  .hero-text {
    flex: 1.3;
    max-width: 700px;
    text-align: left;
  }

  .hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }
  
  .hero p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 650px;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .btn {
    padding: 1.3rem 2.8rem;
    font-size: 1.15rem;
    border-radius: 50px;
  }

  .hero-img {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  .timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
  }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero-img {
    width: 400px;
    height: 400px;
  }
  
  .nav-container {
    max-width: 1100px;
  }
}

/* Laptop/Tablet Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
    padding: 0 1.5rem;
  }
  
  .hero-content {
    max-width: 750px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .timeline {
    max-width: 750px;
  }
  
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
  }
  
  .timeline-content {
    padding: 1.8rem;
  }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
    padding: 0 1rem;
  }
  
  .hero {
    min-height: 90vh;
    padding: 5rem 0 3rem;
  }
  
  .hero-content {
    max-width: 600px;
    gap: 1.5rem;
  }
  
  .hero-img {
    width: 160px;
    height: 160px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.3rem;
  }
  
  .tech-icons {
    gap: 1rem;
    max-width: 500px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tech-icon {
    min-width: 90px;
    padding: 0.9rem;
  }
  
  .tech-icon img {
    width: 36px !important;
    height: 36px !important;
  }
  
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
}

/* Mobile Landscape (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero {
    min-height: 80vh;
    padding: 5rem 0 2rem;
  }
  
  .hero-content {
    gap: 1rem;
  }
  
  .hero-img {
    width: 140px;
    height: 140px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .tech-icons {
    gap: 0.8rem;
  }
  
  .tech-icon {
    min-width: 80px;
    padding: 0.8rem;
  }
  
  .tech-icon img {
    width: 30px !important;
    height: 30px !important;
  }
  
  .tech-icon span {
    font-size: 0.7rem;
  }
  
  /* Timeline mobile landscape fixes */
  .timeline::before {
    left: 20px;
    transform: none;
    width: 2px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    margin-left: 0;
    margin-bottom: 2rem;
  }

  .timeline-content {
    margin-left: 45px;
    padding: 1.5rem;
  }

  .timeline-icon {
    left: -22px !important;
    right: auto !important;
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
    top: 15px;
    position: absolute;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--darker);
    clip-path: circle(0px at top right);
    transition: all 0.5s ease-out;
  }
  
  .nav-links.open {
    clip-path: circle(1500px at top right);
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .nav-links a {
    font-size: 1.3rem;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    min-height: 85vh;
    padding: 5rem 0 1.5rem;
  }
  
  .hero-content {
    gap: 1rem;
  }
  
  .hero-img {
    width: 120px;
    height: 120px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .tech-icons {
    gap: 0.8rem;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    max-width: 350px;
    margin: 1rem auto 0;
  }

  .tech-icon {
    min-width: 75px;
    padding: 0.8rem;
  }

  .tech-icon img {
    width: 28px !important;
    height: 28px !important;
  }

  .tech-icon span {
    font-size: 0.7rem;
  }

  /* Testimonials móvil */
  .testimonials-container {
    min-height: 180px;
  }
  
  .testimonial {
    padding: 1.5rem 1rem;
  }
  
  .testimonial p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .testimonial::before {
    font-size: 3rem;
    top: -5px;
  }
  
  .testimonial-btn {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-controls {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  /* Timeline mobile fixes */
  .timeline {
    padding-left: 1rem;
  }

  .timeline::before {
    left: 20px;
    width: 2px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    margin-left: 0;
    margin-bottom: 2.5rem;
  }

  .timeline-content {
    margin-left: 45px;
    padding: 1.2rem;
    position: relative;
  }

  .timeline-icon {
    left: -25px !important;
    right: auto !important;
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
    top: 15px;
    position: absolute;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .timeline-content .year {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .tech-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--darker);
    clip-path: circle(0px at top right);
    transition: all 0.5s ease-out;
  }
  
  .nav-links.open {
    clip-path: circle(1500px at top right);
  }
  
  .nav-links li {
    margin: 2rem 0;
  }
  
  .nav-links a {
    font-size: 1.5rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  
  .btn {
    margin: 0.5rem 0;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
  }
  
  
  .testimonials-container {
    padding: 0 1rem;
  }

  /* Tech Categories Responsive */
  .tech-categories {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .category-column {
    padding: 1.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .tech-icon {
    padding: 0.75rem;
  }

  .tech-icon img {
    width: 30px;
    height: 30px;
  }

  .tech-icon span {
    font-size: 0.75rem;
  }

  /* Projects Masonry Responsive */
  .projects-masonry {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Large Tablets and Small Desktops */
@media (min-width: 768px) and (max-width: 1024px) {
  .tech-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .projects-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-column {
    padding: 1.75rem;
  }
}

/* Ultra-wide Screens */
@media (min-width: 1400px) {
  .tech-categories {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }

  .projects-masonry {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    margin: 3rem auto 0;
  }
}
