@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@300;400;600;700;900&display=swap');

:root {
  --aws-orange: #FF9900;
  --aws-blue: #232F3E;
  --neon-cyan: #00F5FF;
  --neon-purple: #B026FF;
  --dark-bg: #0A0E27;
  --darker-bg: #050710;
  --code-green: #00FF41;
  --glow-color: rgba(0, 245, 255, 0.5);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--darker-bg);
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(176, 38, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 153, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

section, header, footer {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
  opacity: 0.1;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.2); opacity: 0.15; }
}

.glitch-container {
  position: relative;
  margin-bottom: 2rem;
}

.glitch-img {
  max-width: 150px;
  border-radius: 50%;
  border: 3px solid var(--neon-cyan);
  box-shadow:
    0 0 20px var(--glow-color),
    0 0 40px var(--glow-color),
    inset 0 0 20px rgba(0, 245, 255, 0.1);
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 10;
  background: var(--dark-bg);
  padding: 5px;
}

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

.glitch-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitch 3s infinite;
  text-shadow:
    0 0 10px var(--glow-color),
    0 0 20px var(--glow-color),
    0 0 30px var(--glow-color);
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

.typing-effect {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--neon-cyan);
  margin: 1rem 0;
  min-height: 2rem;
}

.typing-effect::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--code-green);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.code-snippet {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--code-green);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.code-snippet::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
  animation: scan 3s infinite;
}

@keyframes scan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  z-index: 10;
  position: relative;
}

.btn-neon {
  padding: 1rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--neon-cyan);
  background: transparent;
  color: var(--neon-cyan);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--neon-cyan);
  transition: left 0.3s;
  z-index: -1;
}

.btn-neon:hover {
  color: var(--dark-bg);
  box-shadow:
    0 0 20px var(--glow-color),
    0 0 40px var(--glow-color),
    inset 0 0 20px var(--glow-color);
}

.btn-neon:hover::before {
  left: 0;
}

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

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: float-particle 20s infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::before,
.section-title::after {
  content: '<';
  color: var(--neon-cyan);
  margin-right: 1rem;
}

.section-title::after {
  content: '/>';
  margin-left: 1rem;
  margin-right: 0;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-cyan);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px var(--glow-color);
}

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

.tech-badge-modern {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  margin: 0.5rem;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 25px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--neon-cyan);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tech-badge-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--neon-cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.tech-badge-modern:hover {
  color: var(--dark-bg);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--glow-color);
}

.tech-badge-modern:hover::before {
  width: 300px;
  height: 300px;
}

.tech-badge-modern span {
  position: relative;
  z-index: 1;
}

.timeline-modern {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-modern::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  transform: translateX(-50%);
}

.timeline-item-modern {
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
}

.timeline-item-modern:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
}

.timeline-item-modern:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--neon-cyan);
  border: 4px solid var(--dark-bg);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--glow-color);
  z-index: 10;
}

.timeline-item-modern:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item-modern:nth-child(even) .timeline-dot {
  left: -10px;
}

.experience-company {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.cert-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 153, 0, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s;
  height: 100%;
}

.cert-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--aws-orange);
  box-shadow: 0 10px 30px rgba(255, 153, 0, 0.3);
}

.social-float {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-float a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.social-float a:hover {
  transform: scale(1.2) rotate(360deg);
  background: var(--neon-cyan);
  color: var(--dark-bg);
  box-shadow: 0 0 30px var(--glow-color);
}

#back-to-top {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

#back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px var(--glow-color);
  background: var(--neon-cyan);
  color: var(--dark-bg);
}

#version-switcher {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: rgba(10, 14, 39, 0.8);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  color: rgba(0, 245, 255, 0.9);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.7;
}

#version-switcher:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--glow-color), 0 4px 15px rgba(0, 0, 0, 0.2);
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

#version-switcher i {
  font-size: 0.85rem;
}

.terminal-section-modern {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--neon-cyan);
  border-radius: 15px;
  overflow: hidden;
  box-shadow:
    0 0 50px var(--glow-color),
    inset 0 0 50px rgba(0, 245, 255, 0.1);
  position: relative;
}

.terminal-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 245, 255, 0.03) 2px,
      rgba(0, 245, 255, 0.03) 4px
    );
  pointer-events: none;
}

.section-spacer {
  height: 100px;
  position: relative;
}

.section-spacer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--neon-cyan), transparent);
}

.aws-logo-glow {
  filter: drop-shadow(0 0 10px var(--aws-orange));
}

.code-line {
  font-family: 'JetBrains Mono', monospace;
  color: var(--code-green);
  margin: 0.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--neon-cyan);
}

.highlight {
  color: var(--neon-cyan);
  font-weight: 600;
}

.aws-gradient {
  background: linear-gradient(135deg, var(--aws-orange) 0%, var(--aws-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
}

.aws-text {
  color: var(--aws-orange) !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

.aws-service {
  color: var(--aws-orange) !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(255, 153, 0, 0.4);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  #back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 0.9rem;
  }

  #version-switcher {
    top: 10px;
    left: 10px;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    opacity: 0.6;
  }

  #version-switcher span {
    display: none;
  }

  #version-switcher:hover {
    opacity: 1;
  }

  .timeline-modern::before {
    left: 20px;
  }

  .timeline-item-modern {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 1rem !important;
  }

  .timeline-item-modern:nth-child(even) .timeline-dot,
  .timeline-item-modern:nth-child(odd) .timeline-dot {
    left: 10px;
  }

  .social-float {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-neon {
    width: 100%;
  }
}
