/* ═══════════════════════════════════════════════════
   DESIGN SYSTEM — Arunachalam Sathiyamoorthy Portfolio
   Inspired by sebastien-lempens.com
   ═══════════════════════════════════════════════════ */

:root {
  /* Colors */
  --bg-primary: #09111f;
  --bg-secondary: #0f1b32;
  --bg-card: rgba(11, 24, 45, 0.72);
  --bg-card-hover: rgba(18, 35, 62, 0.88);
  --bg-glass: rgba(113, 239, 218, 0.08);

  --gradient-sunset: linear-gradient(135deg, #f97316 0%, #ffb347 45%, #71efda 100%);
  --gradient-cool: linear-gradient(135deg, #71efda 0%, #4db5ff 100%);
  --gradient-warm: linear-gradient(135deg, #ffcd70 0%, #f97316 100%);
  --gradient-text: linear-gradient(90deg, #ffb347, #71efda, #4db5ff);

  --accent: #71efda;
  --accent-glow: rgba(113,239,218,0.28);
  --accent2: #ffb347;
  --accent2-glow: rgba(255,179,71,0.22);

  --text-primary: #ffffff;
  --text-secondary: rgba(228,236,248,0.74);
  --text-muted: rgba(193,207,226,0.5);
  --text-accent: #71efda;

  --border: rgba(166,191,224,0.14);
  --border-hover: rgba(166,191,224,0.28);

  /* Typography */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: clamp(60px, 10vh, 120px);
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-primary);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

body {
  font-family: var(--font-primary);
  background:
    radial-gradient(circle at top left, rgba(255,179,71,0.14), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(113,239,218,0.12), transparent 22%),
    linear-gradient(180deg, #09111f 0%, #0c1527 48%, #111f37 100%);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
  cursor: none; /* For custom cursor */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 80%);
  opacity: 0.18;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.hidden { opacity: 0; pointer-events: none; }

.skip-link {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 20000;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 4px;
}

/* ═══════════ CANVAS & AMBIENT ORBS ═══════════ */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  animation: orb-drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -10%;
  left: -10%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent2);
  bottom: -10%;
  right: -10%;
  animation-delay: -10s;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 80px) scale(1.1); }
  100% { transform: translate(-30px, -50px) scale(0.9); }
}

/* ═══════════ PRELOADER ═══════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

#preloader.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

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

.preloader-logo {
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 30px 8px var(--accent-glow); }
}

.preloader-counter {
  font-family: var(--font-mono);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: 8px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-sunset);
  border-radius: 1px;
  transition: width 0.1s linear;
}

.preloader-enter {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.preloader-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}

.preloader-enter:hover {
  color: var(--bg-primary);
  border-color: var(--accent);
}

.preloader-enter:hover::before {
  transform: scaleX(1);
}

.preloader-enter.visible {
  opacity: 1;
  transform: translateY(0);
}

.preloader-awards {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ═══════════ NAVIGATION ═══════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(180deg, rgba(9,17,31,0.92) 0%, rgba(9,17,31,0.45) 70%, transparent 100%);
  backdrop-filter: blur(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.nav.visible {
  opacity: 1;
  pointer-events: all;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  transition: all 0.3s var(--ease-out);
}

.nav-logo:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  width: 0%;
  height: 2px;
  background: var(--accent);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
  border-radius: 1px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link svg {
  opacity: 0.7;
  transition: all 0.3s var(--ease-out);
}

.nav-link:hover svg,
.nav-link.active svg {
  opacity: 1;
  stroke: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* Hamburger */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease-out);
  display: block;
}

.nav-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(9,17,31,0.94);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.nav-mobile-links a {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

.nav-mobile-links a:hover {
  color: var(--accent);
  letter-spacing: 12px;
}

/* ═══════════ SECTIONS — COMMON ═══════════ */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--section-pad) 40px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-heading {
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 50px;
  line-height: 1.1;
  max-width: 12ch;
}

/* ═══════════ HERO ═══════════ */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 1;
}

.hero-name {
  font-size: clamp(48px, 10vw, 110px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-name-line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
}

.hero-name-line:first-child {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2vw, 22px);
  color: var(--text-secondary);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 1;
  width: fit-content;
  min-height: 68px;
  padding: 16px 24px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(8, 16, 31, 0.82);
  border: 1px solid rgba(113,239,218,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 20px 50px rgba(0,0,0,0.24),
    0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.hero-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(113,239,218,0.08), transparent);
  transform: translateX(-100%);
  animation: hero-title-sheen 5s linear infinite;
  pointer-events: none;
}

.hero-title-bracket {
  color: rgba(113,239,218,0.95);
  font-weight: 700;
  font-size: 0.95em;
  text-shadow: 0 0 14px rgba(113,239,218,0.18);
}

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

@keyframes hero-title-sheen {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.hero-tagline {
  font-size: clamp(20px, 2vw, 24px);
  color: var(--text-muted);
  max-width: 900px;
  margin: 0 auto 28px;
  line-height: 1.6;
  opacity: 1;
  white-space: nowrap;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 0 auto 36px;
}

.hero-highlight {
  padding: 16px 18px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
}

.hero-highlight-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-highlight strong {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.hero-title-text {
  min-width: 22ch;
  display: inline-block;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-shadow: 0 0 18px rgba(255,255,255,0.06);
}

.hero-title-text::after {
  content: '|';
  display: inline-block;
  margin-left: 0.18em;
  color: var(--accent);
  font-weight: 700;
  animation: blink 1s step-end infinite;
  text-shadow: 0 0 16px rgba(113,239,218,0.3);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 1;
}

/* Buttons */
.btn-primary {
  padding: 14px 32px;
  background: var(--gradient-sunset);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(113,239,218,0.22);
}

.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(113,239,218,0.06);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

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

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ═══════════ ABOUT ═══════════ */
.section-about {
  background: linear-gradient(180deg, transparent 0%, rgba(113,239,218,0.04) 50%, transparent 100%);
}

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

.about-bio {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.stat:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.stat-unit {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  display: inline;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* Skills */
.skills-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.skill-card {
  padding: 18px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-sunset);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

.skill-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.skill-detail {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ═══════════ EXPERIENCE ═══════════ */
.section-experience {
  background: linear-gradient(180deg, transparent 0%, rgba(77,181,255,0.04) 50%, transparent 100%);
}

.timeline {
  position: relative;
  margin-bottom: 64px;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 2;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(10px);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.timeline-role {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2px;
}

.timeline-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.timeline-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-details li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.timeline-details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 14px;
}

.timeline-details li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Education & Certs */
.edu-certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.4s var(--ease-out);
}

.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.edu-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.edu-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.edu-degree {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.edu-school {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 2px;
}

.edu-location {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: 2px;
  margin-top: 8px;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 17px;
}

.cert-badge {
  padding: 3px 10px;
  background: var(--gradient-sunset);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ═══════════ PROJECTS ═══════════ */
.section-projects {
  background: linear-gradient(180deg, transparent 0%, rgba(249,115,22,0.05) 50%, transparent 100%);
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 36px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-sunset);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.project-number {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}

.project-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 58ch;
}

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

.project-tech span {
  background: rgba(255,255,255,0.05);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.project-tech span:hover {
  background: rgba(113,239,218,0.16);
  transform: translateY(-2px);
}

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(113,239,218,0.12), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.project-visual::before,
.project-visual::after {
  content: '';
  position: absolute;
  border-radius: 999px;
}

.project-visual::before {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(249,115,22,0.2), transparent 65%);
  top: -30px;
  right: -20px;
}

.project-visual::after {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(113,239,218,0.16), transparent 65%);
  bottom: -15px;
  left: -10px;
}

.project-icon-big {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  transition: all 0.4s var(--ease-out);
}

.project-card:hover .project-icon-big {
  background: rgba(113,239,218,0.12);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: rotate(8deg) scale(1.1);
}

/* ═══════════ CONTACT ═══════════ */
.section-contact {
  background: linear-gradient(180deg, transparent 0%, rgba(113,239,218,0.06) 100%);
}

.contact-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: -32px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  display: block;
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.contact-card-icon {
  color: var(--accent);
  margin-bottom: 16px;
  transition: all 0.3s var(--ease-out);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.contact-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-card-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
}

.contact-card[href^="mailto:"] .contact-card-value,
.contact-card[href*="linkedin.com"] .contact-card-value {
  word-break: normal;
}

/* Footer */
.footer {
  padding-top: 20px;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin-bottom: 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ═══════════ REVEAL ANIMATIONS ═══════════ */
.split-lines .line {
  overflow: hidden;
  padding-bottom: 4px;
}
.split-lines .line-inner {
  display: block;
  transform: none;
}

.split-words .word {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}
.split-words .word-inner {
  display: inline-block;
  transform: none;
}

.split-chars .char {
  overflow: hidden;
  display: inline-block;
}
.split-chars .char-inner {
  display: inline-block;
  transform: none;
}

.motion-ready .reveal-text,
.motion-ready .reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.motion-ready .hero-greeting,
.motion-ready .hero-title,
.motion-ready .hero-tagline,
.motion-ready .hero-cta,
.motion-ready .scroll-indicator {
  opacity: 0;
}

.motion-ready .split-lines .line-inner,
.motion-ready .split-words .word-inner,
.motion-ready .split-chars .char-inner {
  transform: translateY(110%);
}


/* ═══════════ NOISE & CUSTOM CURSOR ═══════════ */
.noise-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  animation: noise-anim 0.2s infinite;
}

@keyframes noise-anim {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
  100% { transform: translate(0, 0); }
}

/* Hide default cursor on desktop */
@media (pointer: fine) {
  body, a, button, .hover-magnetic {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(113,239,218,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Cursor states */
.custom-cursor.hover {
  width: 0px;
  height: 0px;
}
.custom-cursor-follower.hover {
  width: 80px;
  height: 80px;
  background-color: rgba(255,255,255,0.1);
  border-color: transparent;
  backdrop-filter: blur(2px);
}

/* Magnetic Items */
.hover-magnetic {
  display: inline-block;
}
.hover-scale {
  transition: transform 0.3s var(--ease-out);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .nav { padding: 16px 24px; }

  .section-container { padding-left: 20px; padding-right: 20px; }
  .section-hero {
    padding: 120px 20px 96px;
    align-items: flex-start;
  }

  .hero-name { letter-spacing: -1px; }
  .hero-title {
    width: 100%;
    max-width: 100%;
    min-height: 62px;
    padding: 14px 18px;
    gap: 10px;
  }

  .hero-title-text {
    min-width: 0;
    font-size: 0.95em;
  }
  .hero-tagline { white-space: normal; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-highlights { grid-template-columns: 1fr; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline { padding-left: 28px; }
  .timeline::before { left: 4px; }
  .timeline-dot { left: -28px; width: 12px; height: 12px; }

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

  .project-card {
    padding: 24px;
    border-radius: 20px;
  }

  .project-number {
    position: static;
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 12px;
  }

  .project-visual {
    justify-content: flex-start;
    min-height: 140px;
  }

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

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

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .preloader-awards {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .section-heading {
    font-size: 34px;
  }

  .hero-name {
    font-size: clamp(42px, 16vw, 64px);
  }

  .hero-title {
    padding: 12px 14px;
    min-height: 56px;
  }

  .skills-grid { grid-template-columns: 1fr; }
  .stat { padding: 16px; }

  .project-tech span {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .noise-overlay,
  .ambient-orb,
  .custom-cursor,
  .custom-cursor-follower,
  #bgCanvas {
    display: none !important;
  }
}
