:root {
  --bg: #0a0d14;
  --surface: #111622;
  --surface2: #161d2e;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --accent3: #7c3aed;
  --text: #e8edf5;
  --muted: #7a8499;
  --border: rgba(0,212,255,0.15);
  --glow: rgba(0,212,255,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: rgba(0,212,255,0.06); top: -100px; left: -100px; }
.blob-2 { width: 400px; height: 400px; background: rgba(124,58,237,0.07); bottom: -100px; right: -100px; animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; background: rgba(255,107,53,0.05); top: 50%; left: 50%; animation-delay: -2s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-20px) scale(1.05); }
  66% { transform: translate(-15px,15px) scale(0.95); }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10,13,20,0.8);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Sections */
section {
  position: relative;
  z-index: 1;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-name .line1 { display: block; color: var(--text); }
.hero-name .line2 {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
  font-weight: 400;
}

.hero-title span { color: var(--accent2); font-weight: 600; }

.hero-stats {
  display: flex;
  gap: 50px;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  display: block;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,212,255,0.3);
}

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--glow);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 60px; }
  50% { opacity: 0.4; height: 40px; }
}

/* Floating AWS badge */
.hero-badge {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.badge-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rotate 20s linear infinite;
}

.badge-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent3);
  animation: rotate 3s linear infinite;
}

.badge-inner {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: rotate 20s linear infinite reverse;
  box-shadow: 0 0 60px rgba(0,212,255,0.1);
}

.badge-aws {
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.badge-cert {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 20px;
  margin-top: 8px;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--accent);
}

.orbit-dot-2 {
  background: var(--accent3);
  top: auto;
  bottom: -4px;
  box-shadow: 0 0 10px var(--accent3);
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 60px;
}

/* ── Generic section styles ── */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.section-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 200px;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  cursor: default;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s;
}

.skill-card:nth-child(2)::before { background: var(--accent3); }
.skill-card:nth-child(3)::before { background: var(--accent2); }
.skill-card:nth-child(4)::before { background: var(--accent); }
.skill-card:nth-child(5)::before { background: var(--accent3); }
.skill-card:nth-child(6)::before { background: var(--accent2); }

.skill-card:hover {
  background: var(--surface2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,212,255,0.2);
}

.skill-card:hover::before { height: 100%; }

.skill-category {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.skill-card:nth-child(2) .skill-category { color: var(--accent3); }
.skill-card:nth-child(3) .skill-category { color: var(--accent2); }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 5px 12px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.12);
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: all 0.2s;
  font-family: 'Space Mono', monospace;
}

.skill-card:hover .skill-tag {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.25);
}

/* ── EXPERIENCE ── */
.experience-timeline {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 30%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scanline 3s ease-in-out infinite;
}

@keyframes scanline {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.exp-item {
  padding-left: 50px;
  margin-bottom: 60px;
  position: relative;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  border: 2px solid var(--bg);
}

.exp-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.exp-company {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.exp-period {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 4px 10px;
  letter-spacing: 0.1em;
}

.exp-type {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
}

.exp-role {
  font-size: 14px;
  color: var(--accent2);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.exp-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-highlights li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(232,237,245,0.8);
  line-height: 1.6;
}

.exp-highlights li::before {
  content: '▸';
  color: var(--accent);
  font-size: 12px;
  margin-top: 4px;
  flex-shrink: 0;
}

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

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  border-color: rgba(0,212,255,0.3);
}

.project-card:hover::after { transform: scaleX(1); }

.project-num {
  font-family: 'Space Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: rgba(0,212,255,0.06);
  position: absolute;
  top: 20px;
  right: 28px;
  line-height: 1;
  pointer-events: none;
}

.project-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.stack-chip {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 3px 8px;
  letter-spacing: 0.08em;
}

.project-desc {
  font-size: 14px;
  color: rgba(232,237,245,0.7);
  line-height: 1.7;
}

/* ── CERTIFICATES ── */
.certs-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.cert-card {
  flex: 1;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.cert-card:hover::before { opacity: 1; }
.cert-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-3px); }

.cert-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.cert-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.cert-issuer {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Space Mono', monospace;
}

/* ── ACHIEVEMENTS ── */
.achieve-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.achieve-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.achieve-item:hover {
  border-color: rgba(0,212,255,0.3);
  background: var(--surface2);
}

.achieve-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.achieve-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}

/* ── CONTACT / FOOTER ── */
#contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-heading {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-heading span {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  padding: 18px 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: all 0.3s;
  font-size: 15px;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--glow);
  padding-left: 32px;
}

.contact-link-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.contact-link-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  display: block;
  margin-bottom: 2px;
}

/* ── EDUCATION ── */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  transition: all 0.4s;
}

.edu-card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.edu-year {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--accent3);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 6px 12px;
  flex-shrink: 0;
  letter-spacing: 0.08em;
  height: fit-content;
  margin-top: 4px;
}

.edu-degree {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.edu-school {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  #hero { padding: 100px 24px 80px; }
  .hero-badge { display: none; }
  .section-wrap { padding: 60px 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-divider { margin: 0 24px; }
  .hero-stats { flex-wrap: wrap; gap: 30px; }
}
