/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary: #00d4ff;
  --primary-dark: #0099bb;
  --secondary: #7c3aed;
  --accent: #f43f5e;
  --bg: #060d1f;
  --bg-section-alt: rgba(255, 255, 255, 0.015);
  --bg-card: rgba(255, 255, 255, 0.042);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(0, 212, 255, 0.14);
  --glass-border-h: rgba(0, 212, 255, 0.45);
  --text: #e2e8f0;
  --text-muted: rgba(226, 232, 240, 0.55);
  --font: 'Inter', sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --glow: 0 0 32px rgba(0, 212, 255, 0.22);
  --glow-strong: 0 0 56px rgba(0, 212, 255, 0.42);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ============================================================
   GLOBAL ANIMATED BACKGROUND (canvas + grid + orbs)
   ============================================================ */

/* Particle canvas fixed to full viewport */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Dot-grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 212, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Ambient glowing orbs (global, fixed) */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  animation: bgOrbDrift 18s ease-in-out infinite alternate;
}

body::before {
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.09) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

body::after {
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.09) 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation-direction: alternate-reverse;
  animation-duration: 22s;
}

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

  50% {
    transform: translate(60px, 40px) scale(1.12);
  }

  100% {
    transform: translate(-30px, 60px) scale(0.94);
  }
}

/* Ensure all content is above background */
.top_header,
section,
footer,
.scroll-progress,
.cursor-dot,
.cursor-ring,
.back-to-top,
.toast {
  position: relative;
  z-index: 1;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 9999;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px var(--primary);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--primary), 0 0 20px rgba(0, 212, 255, 0.3);
  transition: width 0.2s, height 0.2s;
}

.cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(0, 212, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.04);
}

@media (hover: none) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-h);
  box-shadow: var(--glow), var(--shadow);
  transform: translateY(-6px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.2px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn i {
  font-size: 1.1rem;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3);
  font-weight: 700;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0, 212, 255, 0.5);
}

.secondary-btn {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  backdrop-filter: blur(8px);
}

.secondary-btn:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */

/* Alternate section backgrounds for visual rhythm */
section {
  padding: 7rem 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--bg-section-alt);
}

/* Thin top border for section separation */
section+section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.22);
  padding: 0.38rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
}

.section-heading {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.top_header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 0;
  z-index: 1000;
  transition: var(--transition);
}

.top_header.scrolled {
  background: rgba(6, 13, 31, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.top_header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -0.3px;
}

#fname {
  color: var(--text);
  font-weight: 700;
}

#lname {
  color: var(--primary);
  font-weight: 800;
}

.tabs {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.tab-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s;
  letter-spacing: 0.2px;
}

.tab-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.tab-link:hover,
.tab-link.active {
  color: var(--primary);
}

.tab-link:hover::after,
.tab-link.active::after {
  width: 100%;
}

/* Hamburger */
.menu-btn {
  display: none;
  cursor: pointer;
  width: 26px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

/* Hero local orbs (add extra glow on top of global bg) */
.hero-bg-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -180px;
  left: -120px;
  animation-delay: 0s;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--secondary), transparent 70%);
  bottom: -100px;
  right: -80px;
  animation-delay: -4s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: 40%;
  left: 55%;
  animation-delay: -8s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

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

/* Hero content grid */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.42rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.6rem;
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.greeting {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hello {
  font-weight: 600;
  color: var(--text);
}

.im {
  color: var(--primary);
  font-weight: 600;
}

.name-headline {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 55%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.3rem 0 0.9rem;
  letter-spacing: -1.5px;
}

.title {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
  min-height: 2rem;
  letter-spacing: 0.2px;
}

.title .typed-cursor {
  color: var(--primary);
}

.bio {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin: 2rem 0 2.2rem;
  padding: 1.4rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-plus {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  vertical-align: super;
  font-size: 0.85rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

/* CTA */
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Hero social icons */
.hero-socials {
  display: flex;
  gap: 0.75rem;
}

.hero-social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 1.25rem;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.hero-social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* Profile wrapper */
.profile-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.18);
  animation: orbitSpin linear infinite;
}

.ring-1 {
  width: 100%;
  height: 100%;
  animation-duration: 22s;
}

.ring-2 {
  width: 78%;
  height: 78%;
  border-style: dashed;
  border-color: rgba(124, 58, 237, 0.22);
  animation-duration: 15s;
  animation-direction: reverse;
}

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

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

.profile_pic {
  width: 272px;
  height: 272px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0, 212, 255, 0.6);
  box-shadow:
    0 0 0 8px rgba(0, 212, 255, 0.06),
    0 0 50px rgba(0, 212, 255, 0.35),
    var(--shadow);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.profile_pic:hover {
  box-shadow:
    0 0 0 10px rgba(0, 212, 255, 0.1),
    0 0 70px rgba(0, 212, 255, 0.55),
    var(--shadow);
  transform: scale(1.03);
}

.profile_pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Orbiting tech dots */
.orbit-dot {
  position: absolute;
  width: 42px;
  height: 42px;
  background: rgba(6, 13, 31, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  backdrop-filter: blur(10px);
  z-index: 3;
  box-shadow: var(--glow);
}

.dot-1 {
  animation: orbitDot 22s linear infinite 0s;
}

.dot-2 {
  animation: orbitDot 22s linear infinite -7.33s;
}

.dot-3 {
  animation: orbitDot 22s linear infinite -14.66s;
}

@keyframes orbitDot {
  from {
    transform: rotate(0deg) translateX(195px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(195px) rotate(-360deg);
  }
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  z-index: 2;
  animation: hintPulse 2.5s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(0, 212, 255, 0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--primary);
  border-radius: 2px;
  animation: wheelScroll 2s ease infinite;
}

@keyframes wheelScroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes hintPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* desktop: 3 cols */
  gap: 1.8rem;
}

.skill-category {
  padding: 2.2rem;
}

.skill-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.skill-category h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.skill-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.skill-percent {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: visible;
  position: relative;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  position: relative;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary), 0 0 16px rgba(0, 212, 255, 0.4);
}

/* ============================================================
   TIMELINE
   ============================================================ */

.time-line-items {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.time-line-items::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary) 15%, var(--secondary) 85%, transparent);
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.time-line-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 100%;
}

.time-line-item:last-child {
  margin-bottom: 0;
}

.time-line-item:nth-child(odd) {
  padding-right: calc(50% + 44px);
  text-align: right;
}

.time-line-item:nth-child(even) {
  padding-left: calc(50% + 44px);
  text-align: left;
}

/* Year pill */
.time-line-year {
  position: absolute;
  top: 16px;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--primary);
  background: rgba(0, 212, 255, 0.09);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.22rem 0.7rem;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.time-line-item:nth-child(odd) .time-line-year {
  right: calc(50% + 55px);
}

.time-line-item:nth-child(even) .time-line-year {
  left: calc(50% + 55px);
}

/* Icon dot */
.time-line-dot {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  z-index: 2;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.5);
  transition: var(--transition);
}

.time-line-item:hover .time-line-dot {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
  transform: translateX(-50%) scale(1.12);
}

/* Content card */
.content {
  padding: 1.6rem 1.8rem;
}

.content h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.content>p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.education-details {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--primary);
  margin-top: 0.55rem;
  background: rgba(0, 212, 255, 0.07);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.time-line-item:nth-child(odd) .education-details {
  float: right;
  clear: both;
}

.exp-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.18rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.exp-badge.current {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.experience-details {
  list-style: none;
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.experience-details li {
  font-size: 0.87rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}

.experience-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.75rem;
}

.time-line-item:nth-child(odd) .experience-details li {
  text-align: right;
  padding-left: 0;
  padding-right: 1.1rem;
}

.time-line-item:nth-child(odd) .experience-details li::before {
  content: none;
}

.time-line-item:nth-child(odd) .experience-details li::after {
  content: '◂';
  position: absolute;
  right: 0;
  color: var(--primary);
  font-size: 0.75rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-content {
  max-width: 920px;
  margin: 0 auto;
}

.about-intro,
.about-details,
.about-summary {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.achievements-section {
  margin: 2rem 0 1.5rem;
}

.about-highlights-title {
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 2.2rem;
  text-align: center;
  font-weight: 700;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.achievement-card {
  padding: 2rem 1.4rem;
  text-align: center;
}

.achievement-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--primary);
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.achievement-card:hover .achievement-icon {
  background: rgba(0, 212, 255, 0.14);
  box-shadow: var(--glow);
  transform: scale(1.08);
}

.achievement-card h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.achievement-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.contact-info,
.contact-form {
  padding: 2.4rem;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.contact-info>p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.85;
}

.contact-details {
  list-style: none;
  margin-bottom: 1.8rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-details li:hover .contact-icon {
  background: rgba(0, 212, 255, 0.14);
  box-shadow: var(--glow);
}

.contact-details h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact-details p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-socials {
  display: flex;
  gap: 0.7rem;
}

/* Form */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.032);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.035);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(226, 232, 240, 0.25);
}

.contact-form .primary-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ============================================================
   SOCIAL ICON (shared)
   ============================================================ */
.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(0, 212, 255, 0.09);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--glass-border);
  padding: 1.8rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

#f-fname {
  color: var(--text);
}

#f-lname {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.6);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  text-decoration: none;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease;
}

/* Pulse ring */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: waPulse 2.2s ease-out infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65);
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: rgba(6, 13, 31, 0.92);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 0.32rem 0.75rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-family: var(--font);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  max-width: 340px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.toast.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.toast.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 31, 0.88);
  backdrop-filter: blur(6px);
  z-index: 998;
}

.menu-overlay.active {
  display: block;
}

/* ============================================================
   RESPONSIVE — 4-Breakpoint Professional System
   1200px  Large laptop
    992px  Tablet / small laptop  ← nav collapses here
    640px  Large phone (landscape or large Android)
    480px  Small phone (iPhone SE, Galaxy S8 etc.)
   ============================================================ */

/* ── 1200px ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr 380px;
    gap: 3rem;
  }
}

/* ── 992px ─────────────────────────────────────────────── */
@media (max-width: 992px) {

  /* ---- Nav ---- */
  .menu-btn { display: flex; }

  .tabs {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh; width: 240px;
    background: rgba(6, 13, 31, 0.97);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem; padding: 2rem;
    z-index: 999;
    transition: right 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
  }
  .tabs.active { right: 0; }

  /* ---- Hero ---- */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  /* stack: text first, then image */
  .hero-content .details { order: 1; }
  .profile-wrapper        { order: 2; }

  .name-headline { font-size: clamp(2.2rem, 6vw, 3rem); }
  .bio           { max-width: 600px; margin: 0 auto 1.5rem; }

  .hero-stats {
    margin: 1.5rem auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
  }
  .cta-buttons  { justify-content: center; }
  .hero-socials { justify-content: center; }

  .profile-wrapper {
    width: 280px; height: 280px;
    margin: 0 auto;
  }
  .profile_pic { width: 200px; height: 200px; }

  @keyframes orbitDot {
    from { transform: rotate(0deg) translateX(135px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(135px) rotate(-360deg); }
  }

  /* ---- Skills — 2 cols on tablet ---- */
  .skills-container { grid-template-columns: repeat(2, 1fr); }
  .skill-category   { padding: 1.5rem; }

  /* ---- Grids ---- */
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid      { grid-template-columns: 1fr; }
  .projects-grid     { grid-template-columns: repeat(2, 1fr); }

  /* ---- Timeline — left-aligned on all screens below 992 ---- */
  .time-line-items::before { left: 22px; }

  .time-line-item {
    padding-left: 66px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .time-line-dot {
    left: 22px;
    transform: translateX(-50%);
  }
  .time-line-year {
    left: 0 !important;
    right: auto !important;
    top: -2rem;
    font-size: 0.7rem;
  }
  .time-line-item:nth-child(odd) .education-details {
    float: none; clear: none;
  }

  /* ---- Footer ---- */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}

/* ── 640px ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  html { font-size: 14px; }

  /* Prevent any section from creating horizontal scroll */
  body, html { overflow-x: hidden; }
  section     { overflow-x: hidden; }
  .container  { width: 100%; padding: 0 16px; box-sizing: border-box; }

  section { padding: 4.5rem 0; }
  .hero   { padding: 6.5rem 0 4rem; }

  /* ---- Typography ---- */
  .section-heading { font-size: clamp(1.6rem, 5vw, 2rem); }
  .name-headline   { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .section-label   { font-size: 0.65rem; }

  /* ---- Hero profile ---- */
  .profile-wrapper {
    width: 230px; height: 230px;
    margin: 0 auto;
    overflow: visible;
  }
  .profile_pic { width: 165px; height: 165px; }

  @keyframes orbitDot {
    from { transform: rotate(0deg) translateX(108px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(108px) rotate(-360deg); }
  }

  .ring-1 { width: 100%; height: 100%; }
  .ring-2 { width: 78%;  height: 78%;  }

  /* ---- Hero stats ---- */
  .hero-stats {
    padding: 1rem 1.2rem;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    box-sizing: border-box;
  }
  .stat-divider { display: none; }

  /* ---- Buttons ---- */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
  }
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* ---- Skills — 1 col on phones, cards always visible ---- */
  .skills-container   { grid-template-columns: 1fr !important; }
  .skill-category     {
    padding: 1.2rem;
    /* Override any GSAP opacity:0 inline style so all 6 cards show */
    opacity: 1 !important;
    transform: none !important;
  }

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

  /* ---- Timeline item content ---- */
  .time-line-item { padding-left: 56px !important; }

  /* ---- Contact ---- */
  .contact-info, .contact-form { padding: 1.6rem; }

  /* ---- Floating buttons ---- */
  .whatsapp-float {
    bottom: 5.5rem; left: 1rem;
    width: 44px; height: 44px;
    font-size: 1.45rem;
  }
  .whatsapp-tooltip { display: none; }
  .back-to-top { bottom: 1rem; right: 1rem; }
}

/* ── 480px ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  html { font-size: 13px; }

  .container { padding: 0 12px; }

  /* ---- Hero ---- */
  .name-headline { font-size: clamp(1.7rem, 8.5vw, 2.2rem); }
  .bio           { font-size: 0.88rem; }

  .profile-wrapper {
    width: 200px; height: 200px;
  }
  .profile_pic { width: 145px; height: 145px; }

  @keyframes orbitDot {
    from { transform: rotate(0deg) translateX(94px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(94px) rotate(-360deg); }
  }

  .hero-stats {
    padding: 0.85rem 1rem;
    gap: 0.8rem;
  }

  /* ---- Skill bars ---- */
  .skill-category { padding: 1rem; }
  .skill-category h3 { font-size: 0.9rem; }
  .skill-name    { font-size: 0.82rem; }
  .skill-percent { font-size: 0.72rem; }

  /* ---- Section headers ---- */
  .section-heading { font-size: clamp(1.4rem, 7vw, 1.8rem); }
  .about-highlights-title { font-size: 1.15rem; }

  /* ---- Achievement cards ---- */
  .achievement-card { padding: 1.3rem 1rem; }
  .achievement-icon { width: 46px; height: 46px; font-size: 1.4rem; }

  /* ---- Timeline ---- */
  .time-line-item   { padding-left: 50px !important; }
  .time-line-dot    { width: 36px; height: 36px; font-size: 0.9rem; }

  /* ---- Contact form ---- */
  .contact-info, .contact-form { padding: 1.2rem; }

  /* ---- Floating buttons ---- */
  .whatsapp-float { width: 40px; height: 40px; font-size: 1.3rem; }
  .back-to-top    { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */


.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.project-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Subtle top accent line on hover */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
}

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

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.project-card:hover .project-icon {
  background: rgba(0, 212, 255, 0.16);
  box-shadow: var(--glow);
  transform: scale(1.08);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.18rem 0.55rem;
  border-radius: 50px;
  white-space: nowrap;
}

.project-card h3 {
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--glass-border);
}

.project-company {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-company i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Skills grid — 3 cols */
.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

/* Responsive overrides for projects */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
  }

  .project-tags {
    justify-content: flex-start;
  }
}