/* =============================================
   ROOT & RESET
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #04061a;
  --bg2: #06091e;
  --bg3: #0b1028;
  --surface: rgba(15, 24, 58, 0.55);
  --surface2: rgba(20, 32, 72, 0.6);
  --border: rgba(139, 92, 246, 0.18);
  --purple: #8b5cf6;
  --purple2: #a78bfa;
  --cyan: #06b6d4;
  --cyan2: #22d3ee;
  --pink: #ec4899;
  --text: #f0f4ff;
  --text2: #94a3b8;
  --text3: #64748b;
  --green: #10b981;
  --glow: rgba(139, 92, 246, 0.4);
  --glass: rgba(10, 18, 50, 0.45);
  --glass-border: rgba(139, 92, 246, 0.22);
  --neon-purple: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.15);
  --neon-cyan: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 60px rgba(6, 182, 212, 0.1);
  --font-sans: 'Inter', sans-serif;
  --font-head: 'Poppins', sans-serif;
  --r: 14px;
  --r-lg: 22px;
  --trans: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 85% 5%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(109, 40, 217, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 0% 60%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, #02040f 0%, #04061a 30%, #070820 60%, #050413 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* =============================================
   GLOBAL BACKGROUND LAYER
   ============================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(6, 182, 212, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.02) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 20px 20px, 20px 20px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 8% 12%, rgba(139, 92, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 38% at 92% 18%, rgba(6, 182, 212, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 50% 95%, rgba(109, 40, 217, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 30% 25% at 85% 75%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
  animation: globalGlow 22s ease-in-out infinite alternate;
}

@keyframes globalGlow {
  0% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
  }
}

main,
section,
nav,
footer {
  position: relative;
  z-index: 1;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--purple2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 999px;
}

.section-desc {
  color: var(--text2);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(4, 6, 26, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  transition: box-shadow var(--trans), border-color var(--trans);
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(139, 92, 246, 0.2);
  border-bottom-color: rgba(139, 92, 246, 0.25);
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.dot {
  color: var(--purple2);
}

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

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--trans), background var(--trans);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 40px 60px;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Floating data-dot particles inside hero */
.hero-bg-orbs::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 2px at 15% 25%, rgba(147, 112, 255, 0.5) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 35% 60%, rgba(34, 211, 238, 0.4) 0%, transparent 100%),
    radial-gradient(circle 2px at 55% 20%, rgba(124, 58, 237, 0.45) 0%, transparent 100%),
    radial-gradient(circle 1px at 70% 75%, rgba(147, 112, 255, 0.35) 0%, transparent 100%),
    radial-gradient(circle 2px at 85% 40%, rgba(34, 211, 238, 0.3) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 25% 80%, rgba(124, 58, 237, 0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 90% 10%, rgba(34, 211, 238, 0.25) 0%, transparent 100%),
    radial-gradient(circle 2px at 50% 50%, rgba(147, 112, 255, 0.3) 0%, transparent 100%);
  animation: particleDrift 18s ease-in-out infinite alternate;
}

@keyframes particleDrift {
  0% {
    transform: translate(0px, 0px);
  }

  33% {
    transform: translate(15px, -10px);
  }

  66% {
    transform: translate(-10px, 12px);
  }

  100% {
    transform: translate(8px, -6px);
  }
}

/* Subtle chart-line SVG feel */
.hero-bg-orbs::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(124, 58, 237, 0.04) 50%, transparent 60%),
    linear-gradient(60deg, transparent 35%, rgba(34, 211, 238, 0.03) 50%, transparent 65%);
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.orb1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #7c3aed 0%, #4f1d96 70%, transparent 100%);
  top: -200px;
  left: -150px;
  animation: drift1 14s ease-in-out infinite alternate;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #22d3ee 0%, #0e7490 70%, transparent 100%);
  bottom: -120px;
  right: -100px;
  opacity: 0.18;
  animation: drift2 18s ease-in-out infinite alternate;
}

.orb3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #6d28d9 0%, #1e3a8a 70%, transparent 100%);
  top: 45%;
  left: 55%;
  opacity: 0.2;
  animation: drift3 11s ease-in-out infinite alternate;
}

/* 4th orb — violet accent near bottom-left */
.orb4 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #a78bfa 0%, #5b21b6 70%, transparent 100%);
  bottom: 10%;
  left: 5%;
  opacity: 0.15;
  animation: drift2 16s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  50% {
    transform: translate(30px, 20px) scale(1.05);
  }

  100% {
    transform: translate(50px, 40px) scale(0.97);
  }
}

@keyframes drift2 {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  50% {
    transform: translate(-25px, 30px) scale(1.03);
  }

  100% {
    transform: translate(-40px, 50px) scale(0.98);
  }
}

@keyframes drift3 {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(calc(-50% + 20px), calc(-50% - 15px)) scale(1.06);
  }

  100% {
    transform: translate(calc(-50% - 10px), calc(-50% + 25px)) scale(0.96);
  }
}

.hero-content {
  flex: 1;
  min-width: 280px;
  max-width: 560px;
  z-index: 1;
}

.hero-greeting {
  font-size: 0.95rem;
  color: var(--text2);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-typewriter {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--purple2);
  margin-bottom: 20px;
  min-height: 2em;
}

.cursor {
  display: inline-block;
  animation: blink 0.8s step-end infinite;
  color: var(--cyan);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-desc {
  color: var(--text2);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-desc strong {
  color: var(--purple2);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--purple2);
  color: var(--purple2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border: 1.5px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text2);
  border-radius: var(--r);
  font-size: 1.1rem;
  transition: border-color var(--trans), color var(--trans), box-shadow var(--trans), transform var(--trans);
}

.btn-icon:hover {
  border-color: var(--purple2);
  color: var(--purple2);
  box-shadow: var(--neon-purple);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  min-width: 260px;
  max-width: 360px;
  position: relative;
  height: 360px;
  z-index: 1;
}

.data-card {
  position: absolute;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 18px 20px;
  width: 200px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.12);
}

.card-float {
  top: 0;
  left: 0;
  animation: float1 6s ease-in-out infinite;
}

.card-float2 {
  top: 130px;
  right: 0;
  animation: float2 7s ease-in-out infinite;
}

.card-float3 {
  bottom: 0;
  left: 30px;
  animation: float1 5.5s ease-in-out infinite reverse;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.dc-header {
  font-size: 0.75rem;
  color: var(--text3);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dc-header i {
  color: var(--purple2);
}

.dc-stat {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.dc-label {
  font-size: 0.72rem;
  color: var(--text3);
  margin-bottom: 10px;
}

.dc-bar {
  height: 4px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
}

.dc-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple2));
  border-radius: 999px;
}

.dc-fill.green {
  background: linear-gradient(90deg, var(--green), #34d399);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple2);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: start;
}

.about-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.avatar-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--purple2);
}

.about-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--purple2);
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text p {
  color: var(--text2);
  margin-bottom: 16px;
}

.about-text strong {
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--purple2);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--trans), box-shadow var(--trans);
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.skill-cat-header {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-cat-header i {
  color: var(--purple2);
  font-size: 1.1rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--trans);
}

.skill-pill:hover {
  border-color: var(--purple2);
  color: var(--purple2);
  transform: translateY(-2px);
}

.skill-pill i {
  color: var(--purple2);
  font-size: 0.9rem;
}

/* =============================================
   PROJECTS
   ============================================= */
.projects {
  background: var(--bg2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(6, 182, 212, 0.03) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--trans);
  pointer-events: none;
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.35);
  border-color: rgba(139, 92, 246, 0.5);
}

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

.project-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 29, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--trans);
}

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

.overlay-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--trans);
}

.overlay-btn:hover {
  background: var(--purple2);
}

.project-body {
  padding: 22px;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tool-tag {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--purple2);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.project-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.project-body p {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--purple2);
  font-size: 0.88rem;
  font-weight: 600;
  transition: gap var(--trans);
}

.project-link:hover {
  gap: 12px;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(5, 12, 26, 0.92));
  color: var(--text);
  padding: 24px 16px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform var(--trans);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--r);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 1.5rem;
  color: var(--text2);
  cursor: pointer;
  transition: color var(--trans);
}

.lb-close:hover {
  color: var(--text);
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline-section {
  background: var(--bg2);
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.tl-item.left {
  flex-direction: row-reverse;
}

.tl-item.right {
  flex-direction: row;
}

.tl-dot {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 0 4px var(--bg2), 0 0 20px var(--glow);
  position: relative;
  z-index: 1;
}

.tl-card {
  flex: 1;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.tl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.45);
}

.tl-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.tl-tag.experience {
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple2);
}

.tl-tag.education {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

.tl-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tl-card h4 {
  font-size: 0.88rem;
  color: var(--purple2);
  margin-bottom: 10px;
}

.tl-card p {
  color: var(--text2);
  font-size: 0.9rem;
}

.tl-yr {
  display: block;
  font-size: 0.82rem;
  color: var(--text2);
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.8;
}

/* =============================================
   CERTIFICATIONS
   ============================================= */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  position: relative;
  overflow: hidden;
}

.cert-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(139, 92, 246, 0.06) 30%, transparent 60%);
  animation: cardSpin 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.cert-card:hover::after {
  opacity: 1;
}

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

  to {
    transform: rotate(360deg);
  }
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.4);
  border-color: rgba(167, 139, 250, 0.55);
}

.cert-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.cert-card h3 {
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.cert-card p {
  color: var(--text2);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
}

.cert-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--purple2);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* View Certificate button */
.cert-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  transition: gap var(--trans), opacity var(--trans);
}

.cert-view-btn:hover {
  gap: 10px;
  opacity: 0.8;
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Certificate Gallery */
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.cert-gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}

.cert-gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.18);
}

.cert-gallery-img {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--bg3);
}

.cert-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cert-gallery-card:hover .cert-gallery-img img {
  transform: scale(1.06);
}

/* PDF placeholder thumbnail */
.cert-gallery-img.pdf-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg3), var(--surface2));
}

.cert-gallery-img.pdf-thumb>i {
  font-size: 3.5rem;
  color: var(--purple2);
  opacity: 0.6;
}

.cert-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 29, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--trans);
}

.cert-gallery-card:hover .cert-gallery-overlay {
  opacity: 1;
}

.cert-gallery-body {
  padding: 14px 16px;
}

.cert-gallery-body h4 {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cert-gallery-body p {
  color: var(--text3);
  font-size: 0.78rem;
  margin-bottom: 10px;
}


/* =============================================
   FAQ
   ============================================= */
.faq {
  background: var(--bg3);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all var(--trans);
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(15, 24, 58, 0.6);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  gap: 16px;
}

.faq-question span {
  flex: 1;
}

.faq-question i {
  font-size: 0.85rem;
  color: var(--purple2);
  transition: transform var(--trans);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(4, 6, 26, 0.2);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--bg2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 24px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4),
    0 0 25px rgba(139, 92, 246, 0.2);
  border-color: var(--purple2);
  background: rgba(15, 24, 58, 0.7);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.contact-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.contact-card p {
  color: var(--text2);
  font-size: 0.88rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text3);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 1rem;
  transition: all var(--trans);
}

.footer-socials a:hover {
  border-color: var(--purple2);
  color: var(--purple2);
  transform: translateY(-3px);
}

.footer-copy {
  color: var(--text3);
  font-size: 0.82rem;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 20px var(--glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans), transform var(--trans);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 14px;
  }

  .hero {
    flex-direction: column;
    padding: 100px 24px 60px;
    text-align: center;
    gap: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    width: 300px;
    height: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar {
    align-items: center;
  }

  .about-tags {
    justify-content: center;
  }

  .timeline::before {
    left: 22px;
  }

  .tl-item.left,
  .tl-item.right {
    flex-direction: row;
  }

  .tl-dot {
    margin-left: 0;
  }
}

@media (max-width: 500px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-visual {
    height: 260px;
  }

  .data-card {
    width: 160px;
    padding: 14px;
  }

  .dc-stat {
    font-size: 1.3rem;
  }
}