/* ============================================================
   JAKEER M AINAPUR — PORTFOLIO STYLESHEET
   ============================================================ */

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


}

:root {
  --bg: #06060f;
  --bg-2: #0d0d1f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --accent-1: #7c3aed;
  --accent-2: #2563eb;
  --accent-3: #06b6d4;
  --grad: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
  --grad-soft: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.15),
    rgba(37, 99, 235, 0.15)
  );
  --text: #f0f0ff;
  --text-muted: rgba(240, 240, 255, 0.55);
  --font: "Outfit", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root {
  --bg: #09100f;
  --bg-2: #0e1917;
  --bg-card: rgba(255, 248, 224, 0.045);
  --border: rgba(232, 241, 207, 0.14);
  --accent-1: #e7ff63;
  --accent-2: #4d8dff;
  --accent-3: #f4b860;
  --grad: linear-gradient(120deg, #e7ff63, #4d8dff);
  --text: #f2f5df;
  --text-muted: rgba(232, 241, 207, 0.64);
  --font: "Space Grotesk", sans-serif;
  --mono: "DM Mono", monospace;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(74, 222, 128, 0.1), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(34, 197, 94, 0.09), transparent 30%);
}

/* ---- CUSTOM CURSOR ---- */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform var(--transition);
}
.cursor {
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition:
    transform 0.12s ease,
    width 0.3s,
    height 0.3s;
}

/* ---- LOADER ---- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  transition:
    opacity 0.8s,
    visibility 0.8s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  text-align: center;
}
.loader-logo {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: pulse 1s infinite alternate;
}
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 99px;
  animation: loading 1.8s ease forwards;
}
@keyframes loading {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes pulse {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 99px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    padding var(--transition);
}
.navbar.scrolled {
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.8rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: auto;
}
.nav-logo span {
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    color var(--transition),
    background var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-card);
}
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.6);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-1);
  top: -200px;
  left: -200px;
  animation: float1 8s ease-in-out infinite;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  bottom: -150px;
  right: -150px;
  animation: float2 10s ease-in-out infinite;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float1 6s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, -30px);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, 40px);
  }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
}
.hero-bg {
  position: absolute;
}

.three-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  overflow: hidden;
}
.three-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.32);
  color: #86efac;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.2s both;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-name {
  display: flex;
  flex-direction: column;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero-name .line-1 {
  color: var(--text);
  animation: fadeInUp 0.8s 0.3s both;
}
.hero-name .line-2 {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s 0.4s both;
}

.hero-typewriter {
  font-size: 1.3rem;
  font-family: var(--mono);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.5s both;
}
.tw-text {
  color: var(--accent-3);
}
.tw-cursor {
  animation: blink 1s infinite;
  color: var(--accent-1);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s 0.7s both;
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
  animation: fadeInUp 0.8s 0.8s both;
}
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.social-link svg {
  width: 18px;
  height: 18px;
}
.social-link:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  transform: translateY(-3px);
}

/* ---- HERO ACTION RESUME BUTTONS ---- */
.hero-actions .btn {
  min-height: 48px;
}
.hero-actions .btn:not(:last-child) {
  margin-right: 0.2rem;
}

/* ---- RESUME MODAL ---- */
.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.resume-modal.open {
  opacity: 1;
  visibility: visible;
}
.resume-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.resume-modal-panel {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100vw - 2rem));
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  padding: 1rem;
}
.resume-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.resume-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-top: 0.5rem;
}
.resume-viewer-wrap {
  background: rgba(255,255,255,0.02);
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 560px;
  margin: 1rem 0;
}
.resume-viewer {
  display: block;
  width: 100%;
  height: min(70vh, 620px);
  border: none;
  background: #fff;
  border-radius: 10px;
}
.resume-modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.resume-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.resume-close:hover {
  background: var(--accent-1);
  color: #fff;
}

/* Avatar */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: fadeIn 1s 0.5s both;
}
.avatar-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--grad);
  padding: 4px;
  animation: spinRing 6s linear infinite;
  position: relative;
}
@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinRing 6s linear infinite reverse;
  padding: 8px;
}
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  filter: contrast(1.05) saturate(1.05);
}

.floating-card {
  position: absolute;
  background: rgba(13, 13, 31, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.fc-icon {
  font-size: 1.5rem;
}
.fc-title {
  font-weight: 700;
  font-size: 0.85rem;
}
.fc-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.card-1 {
  top: -15px;
  right: -15px;
  animation: float1 5s ease-in-out infinite;
}
.card-2 {
  bottom: 30px;
  right: -45px;
  animation: float2 6s ease-in-out infinite;
}
.card-3 {
  top: 50%;
  left: -65px;
  transform: translateY(-50%);
  animation: float1 7s ease-in-out infinite reverse;
}

.scroll-down-btn {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  animation: bounce 2s infinite;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding: 6px 0;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 99px;
  animation: wheel 1.5s infinite;
}
@keyframes wheel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.3;
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(124, 58, 237, 0.6);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--accent-1);
  transform: translateY(-3px);
  background: rgba(124, 58, 237, 0.1);
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---- SECTIONS ---- */
.section {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: radial-gradient(circle at 80% 20%, var(--section-glow, rgba(74, 222, 128, 0.08)), transparent 34%);
}
.section > *:not(.three-bg),
.hero > *:not(.three-bg) {
  position: relative;
  z-index: 1;
}
.about-section {
  --section-glow: rgba(74, 222, 128, 0.12);
}
.skills-section {
  --section-glow: rgba(34, 197, 94, 0.11);
}
.education-section {
  --section-glow: rgba(134, 239, 172, 0.11);
}
.experience-section {
  --section-glow: rgba(22, 163, 74, 0.12);
}
.projects-section {
  --section-glow: rgba(16, 185, 129, 0.11);
}
.contact-section {
  --section-glow: rgba(163, 230, 53, 0.11);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #a78bfa;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---- ABOUT ---- */
.about-section {
  background: var(--bg-2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-intro {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-highlights {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.highlight-item {
  text-align: center;
}
.hi-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.info-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-3px);
}
.ic-icon {
  font-size: 1.4rem;
}
.ic-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ic-value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- SKILLS ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.skill-category:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
}
.sc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.sc-icon {
  font-size: 1.5rem;
}
.sc-header h3 {
  font-size: 1rem;
  font-weight: 700;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}
.skill-tag:hover {
  background: rgba(124, 58, 237, 0.3);
  transform: scale(1.05);
}
.skill-tag.soft {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.2);
}
.skill-tag.soft:hover {
  background: rgba(37, 99, 235, 0.3);
}
.skill-tag.lang {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.2);
}
.skill-tag.lang:hover {
  background: rgba(6, 182, 212, 0.3);
}

/* ---- EDUCATION ---- */
.education-section {
  background: var(--bg-2);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-1),
    var(--accent-2),
    transparent
  );
}
.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1rem;
}
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  border: 3px solid var(--bg-2);
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}
.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.timeline-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateX(6px);
}
.tc-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tc-year {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 0.25rem;
}
.tc-degree {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.tc-institution {
  color: #a78bfa;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.tc-location {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}
.tc-score {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}
.score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.score-value {
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- EXPERIENCE ---- */
.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  transition: border-color var(--transition);
  max-width: 900px;
  margin: 0 auto;
}
.experience-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
}
.exp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.exp-logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}
.exp-line {
  flex: 1;
  width: 2px;
  background: var(--border);
}
.exp-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.exp-badge {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}
.exp-duration {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.exp-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.exp-company {
  color: #a78bfa;
  font-weight: 600;
  margin-bottom: 1rem;
}
.exp-duties {
  list-style: none;
  margin-bottom: 1.25rem;
}
.exp-duties li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}
.exp-duties li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-3);
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.exp-tags span {
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ---- PROJECTS ---- */
.projects-section {
  background: var(--bg-2);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}
.pc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.pc-icon {
  font-size: 2.2rem;
}
.pc-links {
  display: flex;
  gap: 0.5rem;
}
.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.pc-link:hover {
  background: var(--accent-1);
  color: #fff;
  transform: translateY(-2px);
}
.pc-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.pc-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
}
.pc-features {
  list-style: none;
  margin-bottom: 1.25rem;
}
.pc-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  position: relative;
}
.pc-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-3);
  font-weight: 700;
}
.pc-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pc-techs span {
  background: rgba(37, 99, 235, 0.1);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--mono);
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateX(6px);
}
.cc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.email-icon {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}
.phone-icon {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}
.location-icon {
  background: rgba(251, 113, 133, 0.15);
  color: #fb7185;
}
.linkedin-icon {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}
.github-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}
.cc-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}
.cc-value {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
}
.cc-value:hover {
  color: var(--accent-3);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  resize: vertical;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-success {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  font-weight: 600;
  text-align: center;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem 1.5rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent-3);
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-socials {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .card-1,
  .card-2,
  .card-3 {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(6, 6, 15, 0.97);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-link {
    font-size: 1.4rem;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .experience-card {
    flex-direction: column;
  }
  .exp-line {
    display: none;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
  .avatar-ring {
    width: 200px;
    height: 200px;
  }
  .avatar-initials {
    font-size: 3.5rem;
  }
}

/* ---- FINAL VISUAL OVERRIDES ---- */
body { background: #09100f; background-image: radial-gradient(circle at 12% 8%, rgba(77, 141, 255, 0.16), transparent 30%), radial-gradient(circle at 88% 74%, rgba(231, 255, 99, 0.08), transparent 28%); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.24; background-image: linear-gradient(rgba(231, 255, 99, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(231, 255, 99, 0.04) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
.cursor { background: var(--accent-1); mix-blend-mode: normal; }
.cursor-follower { border-color: rgba(231, 255, 99, 0.55); mix-blend-mode: normal; }
.navbar.scrolled { background: rgba(9, 16, 15, 0.84); }
.nav-logo, .gradient-text, .loader-logo { background: var(--grad); background-clip: text; -webkit-background-clip: text; }
.nav-link:hover, .nav-link.active { color: var(--accent-1); background: rgba(231, 255, 99, 0.08); }
.nav-cta, .btn-primary { background: var(--accent-1); color: #142019 !important; box-shadow: 0 10px 30px rgba(231, 255, 99, 0.16); }
.nav-cta:hover, .btn-primary:hover { box-shadow: 0 14px 38px rgba(231, 255, 99, 0.28); }
.btn { border-radius: 6px; }
.btn-outline { border-color: var(--border); background: rgba(255, 255, 255, 0.025); }
.btn-outline:hover { border-color: var(--accent-1); color: var(--accent-1); background: rgba(231, 255, 99, 0.06); }
.hero { max-width: 1280px; min-height: 760px; padding-top: 9rem; }
.hero-bg { opacity: 0.5; }
.orb { filter: blur(120px); opacity: 0.14; }
.orb-1 { background: var(--accent-2); }
.orb-2 { background: #67b7ff; }
.orb-3 { background: #2563eb; }
.grid-overlay { opacity: 0.35; background-size: 72px 72px; }
.hero-badge, .section-tag { border-radius: 3px; background: rgba(231, 255, 99, 0.08); border-color: rgba(231, 255, 99, 0.25); color: var(--accent-1); }
.hero-name { letter-spacing: -0.075em; font-size: clamp(4.25rem, 9vw, 8.8rem); line-height: 0.88; }
.hero-name .line-2 { background: var(--grad); background-clip: text; -webkit-background-clip: text; }
.hero-typewriter { color: var(--accent-2); }
.tw-text { color: var(--accent-1); }
.hero-desc { max-width: 540px; font-size: 1.08rem; }
.hero-visual { filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.38)); }
.avatar-ring { background: conic-gradient(from 180deg, #2563eb, #67b7ff, #38bdf8, #2563eb); }
.avatar-inner { background: var(--bg-2); }
.floating-card { border-radius: 6px; background: rgba(14, 25, 23, 0.84); border-color: rgba(231, 255, 99, 0.2); }
.section { padding: 8rem 2rem; }
.section-header { text-align: left; max-width: 760px; margin-bottom: 3.2rem; }
.section-title { letter-spacing: -0.05em; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 0.98; }
.about-section, .experience-section { background: rgba(14, 25, 23, 0.72); }
.skills-section, .projects-section { background-image: radial-gradient(circle at 18% 22%, rgba(77, 141, 255, 0.12), transparent 34%); }
.education-section, .contact-section { background-image: radial-gradient(circle at 82% 28%, rgba(77, 141, 255, 0.1), transparent 36%); }
.info-card, .skill-category, .timeline-card, .experience-card, .project-card, .contact-card, .contact-form { border-radius: 6px; border-color: var(--border); background: rgba(255, 248, 224, 0.035); }
.info-card:hover, .skill-category:hover, .project-card:hover, .contact-card:hover { border-color: rgba(77, 141, 255, 0.55); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.hi-number, .score-value { background: var(--grad); background-clip: text; -webkit-background-clip: text; }
.skill-tag, .exp-tags span, .pc-techs span { border-radius: 3px; border-color: rgba(231, 255, 99, 0.22); background: rgba(231, 255, 99, 0.06); }
.skill-tag:hover { background: var(--accent-1); color: #142019; }
.timeline::before { background: linear-gradient(var(--accent-1), var(--accent-2), transparent); }
.timeline-dot { background: var(--accent-1); box-shadow: 0 0 0 5px rgba(231, 255, 99, 0.1), 0 0 24px rgba(231, 255, 99, 0.5); }
.project-card { position: relative; overflow: hidden; transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease; }
.project-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -80px; border-radius: 50%; background: rgba(231, 255, 99, 0.08); transition: transform 0.5s ease; pointer-events: none; }
.project-card:hover { transform: translateY(-10px) rotate(-0.5deg); background: rgba(77, 141, 255, 0.08); }
.project-card:hover::after { transform: scale(2.1); }
.pc-link { border-radius: 3px; color: var(--accent-1); }
.pc-link:hover { background: var(--accent-1); color: #142019; }
.contact-section { background: #09100f; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(231, 255, 99, 0.1); }
.form-success { color: var(--accent-1); }
.three-bg { opacity: 0.92 !important; mix-blend-mode: screen; }
.three-bg canvas { display: block; }

@media (max-width: 800px) {
  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 7rem; }
  .hero-name { font-size: clamp(3.7rem, 17vw, 6.5rem); }
  .hero-visual { margin-top: 2rem; transform: scale(0.82); }
  .section { padding: 6rem 1.25rem; }
  .section-header { margin-bottom: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
