:root {
  --bg: #0b0f19;
  --bg-alt: #0f1524;
  --surface: #131a2b;
  --border: #232b3e;
  --text: #e7ebf3;
  --text-muted: #9aa4b7;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #22d3ee;
  --radius: 14px;
  --max-width: 1120px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.45);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 90px;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(99, 102, 241, 0.18),
      transparent 45%
    ),
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.14), transparent 40%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
  animation: float 10s ease-in-out infinite;
}
.hero-blob-1 {
  width: 340px;
  height: 340px;
  background: var(--primary);
  top: -80px;
  right: -60px;
}
.hero-blob-2 {
  width: 260px;
  height: 260px;
  background: var(--accent);
  bottom: -60px;
  left: -40px;
  animation-delay: -4s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-24px) translateX(16px);
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.15),
    0 10px 30px rgba(99, 102, 241, 0.35);
  margin-bottom: 20px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.availability-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 22px;
}
.highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.hero-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.hero-links a:hover {
  color: var(--accent);
}

/* SECTIONS */
.section {
  padding: 90px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  position: relative;
  display: inline-block;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.section-lead {
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 40px;
  font-size: 1.02rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.15);
}
.about-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}
.about-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.skill-card h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 46px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.08);
  }
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.timeline-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
.timeline-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}
.timeline-company {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}
.timeline-content ul {
  padding-left: 18px;
}
.timeline-content li {
  position: relative;
  padding-left: 6px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.timeline-content li::marker {
  color: var(--primary-light);
}
.timeline-content ul {
  list-style: disc;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.project-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.impact-stat {
  font-size: 0.9rem;
  font-weight: 700;
  color: #34d399;
}
.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
}
.project-card > a {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.88rem;
}
.view-more {
  text-align: center;
  margin-top: 40px;
}

/* CERTIFICATIONS */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.education {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.education h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.education p {
  color: var(--text-muted);
}

/* CONTACT */
.contact-inner {
  text-align: center;
}
.contact-inner .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.contact-card h3 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  word-break: break-word;
}

/* FOOTER */
.footer {
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-blob,
  .timeline-dot {
    animation: none;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid,
  .cert-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .about-grid,
  .cert-grid,
  .contact-grid,
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
