/* ============================================
   THAMILSELVAN A — PORTFOLIO STYLESHEET
   Blue Tree Growth Theme
   ============================================ */

/* ---- IMPORTS & TOKENS ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Blues */
  --blue-950: #0a0f1e;
  --blue-900: #0d1b2e;
  --blue-800: #0f2744;
  --blue-700: #0c4a6e;
  --blue-600: #075985;
  --blue-500: #0369a1;
  --blue-400: #0284c7;
  --blue-300: #0ea5e9;
  --blue-200: #38bdf8;
  --blue-100: #7dd3fc;
  --blue-50: #bae6fd;
  --blue-10: #e0f2fe;

  /* Accent */
  --cyan: #22d3ee;
  --cyan-dim: #0891b2;
  --teal: #0d9488;
  --indigo: #6366f1;

  /* Neutrals */
  --white: #ffffff;
  --glass: rgba(14, 165, 233, 0.08);
  --glass-border: rgba(14, 165, 233, 0.18);
  --card-bg: rgba(10, 20, 40, 0.75);

  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-alt: 'Space Grotesk', sans-serif;

  /* Spacing */
  --section-pad: 100px 0;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--blue-950);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- PARTICLE CANVAS ---- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10, 15, 30, 0.92);
  box-shadow: 0 4px 30px rgba(0, 100, 200, 0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-seed {
  font-size: 1.4rem;
  animation: pulse-seed 3s ease-in-out infinite;
}

@keyframes pulse-seed {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px #38bdf8); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px #38bdf8); }
}

.logo-text {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--blue-10);
}

.logo-accent {
  color: var(--blue-300);
  font-size: 1.5rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--blue-100);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-300), var(--cyan));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(14, 165, 233, 0.1);
}

.nav-links a:hover::after {
  width: 70%;
}

.btn-resume {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid var(--blue-300);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.btn-resume svg {
  width: 16px;
  height: 16px;
}

.btn-resume:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
  background: linear-gradient(135deg, var(--blue-300), var(--blue-400));
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-200);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 15, 30, 0.98);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin: 16px 0;
}

.mobile-menu ul li a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-100);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu ul li a:hover {
  color: var(--blue-300);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('hero_tree_bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.12;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(3, 105, 161, 0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
              linear-gradient(180deg, var(--blue-950) 0%, rgba(10, 15, 30, 0.7) 50%, var(--blue-950) 100%);
  z-index: 1;
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(3, 105, 161, 0.35), transparent 70%);
  top: -150px;
  left: -100px;
  animation: orb-float 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
  bottom: -100px;
  right: 20%;
  animation: orb-float 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 70%);
  top: 40%;
  right: 5%;
  animation: orb-float 12s ease-in-out infinite 2s;
}

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

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue-200);
  margin-bottom: 24px;
  animation: fadeSlideDown 0.8s ease both;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px #22c55e;
}

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

.hero-title {
  animation: fadeSlideDown 0.8s ease 0.2s both;
  margin-bottom: 20px;
}

.hero-name {
  display: block;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-100) 50%, var(--blue-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.hero-role {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--blue-200);
  margin-top: 8px;
  font-family: var(--font-alt);
  letter-spacing: 1px;
}

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

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

.hero-subtitle {
  font-size: 1rem;
  color: var(--blue-100);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeSlideDown 0.8s ease 0.4s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  animation: fadeSlideDown 0.8s ease 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--blue-400), var(--cyan-dim));
  color: var(--white);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(14, 165, 233, 0.5);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--blue-200);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid rgba(14, 165, 233, 0.35);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--blue-300);
  color: var(--white);
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 0;
  align-items: center;
  animation: fadeSlideDown 0.8s ease 0.8s both;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-200), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--blue-100);
  opacity: 0.7;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--blue-400), transparent);
}

/* Tree Container */
.hero-tree-container {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 520px;
  z-index: 2;
  pointer-events: none;
}

.tree-scene {
  width: 100%;
  padding: 20px;
  filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.4));
}

#growingTree {
  width: 100%;
  height: auto;
}

/* Tree animation classes */
.tree-trunk {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-trunk 2s ease 0.5s forwards;
}

.tree-branch {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-branch 1.5s ease forwards;
}

#branch1 { animation-delay: 2s; }
#branch2 { animation-delay: 2.2s; }
#branch3 { animation-delay: 2.4s; }
#branch4 { animation-delay: 2.6s; }
#branch5 { animation-delay: 2.8s; }
#branch6 { animation-delay: 3s; }
.sub-branch:nth-child(1) { animation-delay: 3.2s; }
.sub-branch:nth-child(2) { animation-delay: 3.4s; }
.sub-branch:nth-child(3) { animation-delay: 3.6s; }
.sub-branch:nth-child(4) { animation-delay: 3.8s; }

#leavesGroup .leaf-cluster {
  opacity: 0;
  transform-origin: center;
  animation: bloom-leaf 0.8s ease forwards;
}

#leavesGroup .leaf-cluster:nth-child(1) { animation-delay: 4s; }
#leavesGroup .leaf-cluster:nth-child(2) { animation-delay: 4.1s; }
#leavesGroup .leaf-cluster:nth-child(3) { animation-delay: 4.2s; }
#leavesGroup .leaf-cluster:nth-child(4) { animation-delay: 4.3s; }
#leavesGroup .leaf-cluster:nth-child(5) { animation-delay: 4.4s; }
#leavesGroup .leaf-cluster:nth-child(6) { animation-delay: 4.5s; }
#leavesGroup .leaf-cluster:nth-child(7) { animation-delay: 4.6s; }
#leavesGroup .leaf-cluster:nth-child(8) { animation-delay: 4.7s; }
#leavesGroup .leaf-cluster:nth-child(9) { animation-delay: 4.8s; }
#leavesGroup .leaf-cluster:nth-child(10) { animation-delay: 4.9s; }
#leavesGroup .leaf-cluster:nth-child(11) { animation-delay: 5.0s; }
#leavesGroup .leaf-cluster:nth-child(12) { animation-delay: 5.1s; }
#leavesGroup .leaf-cluster:nth-child(13) { animation-delay: 5.2s; }
#leavesGroup .leaf-cluster:nth-child(14) { animation-delay: 5.3s; }

.tree-particle {
  animation: particle-float 3s ease-in-out infinite;
  opacity: 0;
}

.tree-particle:nth-child(1) { animation-delay: 5.5s; animation-duration: 3s; }
.tree-particle:nth-child(2) { animation-delay: 5.7s; animation-duration: 4s; }
.tree-particle:nth-child(3) { animation-delay: 5.9s; animation-duration: 3.5s; }
.tree-particle:nth-child(4) { animation-delay: 6.1s; animation-duration: 4.2s; }
.tree-particle:nth-child(5) { animation-delay: 6.3s; animation-duration: 3.8s; }
.tree-particle:nth-child(6) { animation-delay: 5.6s; animation-duration: 4.5s; }
.tree-particle:nth-child(7) { animation-delay: 5.8s; animation-duration: 3.2s; }
.tree-particle:nth-child(8) { animation-delay: 6.0s; animation-duration: 4.8s; }
.tree-particle:nth-child(9) { animation-delay: 6.2s; animation-duration: 3.6s; }
.tree-particle:nth-child(10) { animation-delay: 6.4s; animation-duration: 4.1s; }

@keyframes draw-trunk {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-branch {
  to { stroke-dashoffset: 0; }
}

@keyframes bloom-leaf {
  0% { opacity: 0; transform: scale(0); }
  60% { opacity: 0.9; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-25px); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: fadeSlideDown 1s ease 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--blue-300));
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--blue-200);
  opacity: 0.6;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   SECTION BASE STYLES
   ============================================ */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-pad);
  padding-left: 60px;
  padding-right: 60px;
  position: relative;
  z-index: 2;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-200);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.highlight {
  background: linear-gradient(135deg, var(--blue-300), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--blue-100);
  opacity: 0.65;
  margin-bottom: 60px;
  font-weight: 400;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  position: relative;
  background: linear-gradient(180deg, var(--blue-950) 0%, rgba(7, 89, 133, 0.1) 50%, var(--blue-950) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.ring-1 {
  width: 300px;
  height: 300px;
  border-color: rgba(14, 165, 233, 0.3);
  animation: ring-spin 12s linear infinite;
  border-top-color: var(--blue-300);
}

.ring-2 {
  width: 340px;
  height: 340px;
  border-color: rgba(34, 211, 238, 0.15);
  animation: ring-spin 18s linear infinite reverse;
  border-right-color: var(--cyan);
}

.ring-3 {
  width: 380px;
  height: 380px;
  border-color: rgba(14, 165, 233, 0.08);
  animation: ring-spin 25s linear infinite;
  border-bottom-color: var(--blue-200);
}

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

.about-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--blue-300);
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.4), inset 0 0 30px rgba(14, 165, 233, 0.1);
  position: relative;
  z-index: 2;
  transition: box-shadow 0.4s ease;
}

.about-img:hover {
  box-shadow: 0 0 80px rgba(14, 165, 233, 0.7), inset 0 0 30px rgba(14, 165, 233, 0.1);
}

.image-badge {
  position: absolute;
  bottom: -10px;
  right: 30px;
  background: linear-gradient(135deg, var(--blue-400), var(--cyan-dim));
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
  z-index: 3;
  letter-spacing: 0.5px;
}

.about-bio-card {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-bio-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 8px 40px rgba(14, 165, 233, 0.15);
}

.bio-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.about-bio-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-200);
  margin-bottom: 10px;
}

.about-bio-card p {
  font-size: 0.9rem;
  color: var(--blue-50);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 8px;
}

.about-bio-card p:last-child { margin-bottom: 0; }

.about-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.detail-card:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--blue-300);
  transform: translateY(-2px);
}

.detail-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-size: 0.68rem;
  color: var(--blue-200);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

.detail-value {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.3;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
  position: relative;
  background: linear-gradient(180deg, var(--blue-950) 0%, rgba(12, 74, 110, 0.12) 50%, var(--blue-950) 100%);
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 5%, rgba(14, 165, 233, 0.2) 20%, rgba(14, 165, 233, 0.4) 50%, rgba(14, 165, 233, 0.2) 80%, transparent 95%);
  transform: translateX(-50%);
}

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

.timeline-line {
  display: none;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
}

.timeline-item.left {
  flex-direction: row;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  transform: translateX(-40px);
}

.timeline-item.left.visible {
  transform: translateX(0);
}

.timeline-item.right {
  flex-direction: row-reverse;
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
  transform: translateX(40px);
}

.timeline-item.right.visible {
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border: 2px solid var(--blue-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
  z-index: 2;
  top: 10px;
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  max-width: 380px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), transparent);
  pointer-events: none;
}

.timeline-card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
  transform: translateY(-4px);
}

.tl-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-dim));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.tl-badge.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
  animation: glow-green 2s ease-in-out infinite;
}

@keyframes glow-green {
  0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 25px rgba(34, 197, 94, 0.7); }
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-100);
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 0.875rem;
  color: var(--blue-50);
  opacity: 0.75;
  line-height: 1.7;
}

.tl-latest {
  border-color: rgba(34, 197, 94, 0.3) !important;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-section {
  position: relative;
  background: linear-gradient(180deg, var(--blue-950) 0%, rgba(3, 105, 161, 0.08) 50%, var(--blue-950) 100%);
}

.skills-tree-visual {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 8px 40px rgba(14, 165, 233, 0.15);
  transform: translateY(-4px);
}

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

.cat-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-200);
  letter-spacing: 0.3px;
}

.skill-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: pill-appear 0.5s ease calc(var(--delay) + 0.3s) forwards;
}

@keyframes pill-appear {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.pill-icon {
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.skill-pill span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-100);
  min-width: 90px;
}

.pill-level {
  flex: 1;
  height: 6px;
  background: rgba(14, 165, 233, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.pill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan));
  border-radius: 10px;
  animation: fill-bar 1.2s ease 1s forwards;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

@keyframes fill-bar {
  to { width: var(--width); }
}

/* Floating Badges */
.floating-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.fbadge {
  padding: 10px 20px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-200);
  animation: badge-float calc(3s + var(--i) * 0.5s) ease-in-out infinite;
  transition: all 0.3s ease;
  cursor: default;
}

.fbadge:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--blue-300);
  color: var(--white);
  transform: translateY(-4px) scale(1.05);
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
  position: relative;
  background: linear-gradient(180deg, var(--blue-950) 0%, rgba(7, 89, 133, 0.1) 30%, var(--blue-950) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.project-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(15px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.project-card.featured {
  grid-column: 1 / -1;
}

.project-card:hover {
  border-color: rgba(14, 165, 233, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2);
}

.project-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-300), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.project-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(14, 165, 233, 0.08);
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--font-alt);
  line-height: 1;
  transition: color 0.4s ease;
}

.project-card:hover .project-number {
  color: rgba(14, 165, 233, 0.15);
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(34, 211, 238, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.project-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--blue-50);
  opacity: 0.75;
  line-height: 1.75;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  padding: 4px 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-200);
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--blue-100);
  opacity: 0.8;
}

.metric-icon { font-size: 1rem; }

.project-hover-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan), var(--blue-400));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

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

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
.certs-section {
  position: relative;
  background: linear-gradient(180deg, var(--blue-950) 0%, rgba(12, 74, 110, 0.1) 50%, var(--blue-950) 100%);
}

.certs-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.cert-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.cert-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(14, 165, 233, 0.05) 50%, transparent 70%);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.7s ease;
}

.cert-card:hover .cert-shimmer {
  transform: translateX(100%) rotate(45deg);
}

.cert-card:hover {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
  transform: translateY(-6px);
}

.cert-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.cert-provider {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cert-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-100);
  margin-bottom: 10px;
}

.cert-card p {
  font-size: 0.8rem;
  color: var(--blue-50);
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 18px;
}

.cert-badge {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-dim));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 100px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */
.achievements-section {
  position: relative;
  background: linear-gradient(180deg, var(--blue-950) 0%, rgba(3, 105, 161, 0.08) 50%, var(--blue-950) 100%);
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.achieve-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.achieve-card.big {
  grid-column: 1 / -1;
}

.achieve-card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
  transform: translateY(-4px);
}

.achieve-glow-ring {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 70%);
  pointer-events: none;
}

.achieve-icon-wrap {
  flex-shrink: 0;
}

.achieve-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.achieve-card:hover .achieve-icon {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(14, 165, 233, 0.1));
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.achieve-content {
  flex: 1;
}

.achieve-year-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.year-tag {
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-100);
  letter-spacing: 1px;
}

.achieve-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-100);
  margin-bottom: 8px;
}

.achieve-content p {
  font-size: 0.875rem;
  color: var(--blue-50);
  opacity: 0.75;
  line-height: 1.7;
  margin-bottom: 12px;
}

.platform-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-badges span {
  padding: 4px 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-200);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  position: relative;
  background: linear-gradient(180deg, var(--blue-950) 0%, rgba(12, 74, 110, 0.15) 50%, var(--blue-950) 100%);
}

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

.contact-intro {
  margin-bottom: 32px;
}

.contact-intro h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-100);
  margin-bottom: 12px;
  line-height: 1.3;
}

.contact-intro p {
  font-size: 0.9rem;
  color: var(--blue-50);
  opacity: 0.7;
  line-height: 1.75;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.contact-card:hover {
  border-color: rgba(14, 165, 233, 0.5);
  background: rgba(14, 165, 233, 0.08);
  transform: translateX(6px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.contact-card-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-type {
  display: block;
  font-size: 0.68rem;
  color: var(--blue-200);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

.contact-val {
  display: block;
  font-size: 0.85rem;
  color: var(--blue-100);
  font-weight: 600;
  margin-top: 2px;
}

.contact-arrow {
  margin-left: auto;
  color: var(--blue-300);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(15px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-200);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.875rem;
  color: var(--white);
  font-family: var(--font-main);
  outline: none;
  transition: all 0.3s ease;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(125, 211, 252, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-300);
  background: rgba(14, 165, 233, 0.08);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--blue-400), var(--cyan-dim));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
  letter-spacing: 0.3px;
}

.btn-send:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(14, 165, 233, 0.5);
}

.btn-send .btn-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-send:hover .btn-icon {
  transform: translateX(4px) translateY(-4px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
  animation: fadeSlideDown 0.5s ease;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  display: block;
  animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-200);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--blue-50);
  opacity: 0.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(5, 10, 20, 0.95);
  border-top: 1px solid rgba(14, 165, 233, 0.1);
  padding: 50px 60px;
  text-align: center;
}

.footer-tree {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  animation: pulse-seed 3s ease-in-out infinite;
}

.footer-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--blue-200);
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-name {
  font-size: 0.85rem;
  color: var(--blue-100);
  opacity: 0.6;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.footer-links a {
  color: var(--blue-200);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--blue-300);
  opacity: 1;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--blue-100);
  opacity: 0.4;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  #navbar {
    padding: 16px 30px;
  }

  .hero-content {
    padding: 0 30px;
  }

  .hero-tree-container {
    width: 40%;
    opacity: 0.7;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-image-wrap {
    max-width: 300px;
    margin: 0 auto;
  }

  .section-container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .achieve-card.big {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-tree-container {
    display: none;
  }

  .hero-content {
    padding: 0 24px;
    text-align: center;
  }

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

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 0 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .timeline-section::before {
    left: 30px;
  }

  .timeline-item.left,
  .timeline-item.right {
    flex-direction: column;
    padding: 0 0 0 70px;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 30px;
    top: 0;
  }

  .timeline-card {
    max-width: 100%;
  }

  .about-details-grid {
    grid-template-columns: 1fr;
  }

  .certs-carousel {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  #navbar {
    padding: 14px 20px;
  }

  .section-container {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .about-bio-card {
    flex-direction: column;
  }
}
