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

:root {
  --primary: #09786c;
  --primary-light: #0db19f;
  --primary-glow: rgba(9, 120, 108, 0.4);
  --primary-subtle: rgba(9, 120, 108, 0.1);
  --bg-dark: #0a0e1a;
  --bg-card: rgba(10, 14, 26, 0.75);
  --bg-card-hover: rgba(10, 14, 26, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(13, 177, 159, 0.35);
  --text-primary: #f0f0f0;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'DM Sans', 'Inter', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ============================================
   BACKGROUND ORBS
   ============================================ */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

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

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -10%;
  right: -10%;
  animation: orbFloat1 25s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #4aeadb;
  bottom: 20%;
  left: -5%;
  animation: orbFloat2 30s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  top: 50%;
  right: 20%;
  animation: orbFloat3 20s ease-in-out infinite;
}

/* ============================================
   CUSTOM CURSOR GLOW
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 177, 159, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ============================================
   CANVAS BACKGROUND
   ============================================ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), #4aeadb);
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--primary-glow), 0 0 30px rgba(13, 177, 159, 0.15);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
  top: 12px;
  left: 20px;
  right: 20px;
  padding: 0 0.5rem;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover img {
  transform: scale(1.08) rotate(-2deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 10px !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  box-shadow: 0 0 24px var(--primary-glow);
  transform: translateY(-1px);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.4s var(--ease-out-expo);
  border-radius: 2px;
  transform-origin: center;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 2rem 60px;
  min-height: 100vh;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out-expo) 0.3s forwards;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-light) 0%, #4aeadb 50%, var(--primary-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 460px;
  line-height: 1.75;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.credential-tag {
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 500;
  background: rgba(9, 120, 108, 0.08);
  color: var(--primary-light);
  border: 1px solid rgba(13, 177, 159, 0.15);
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.credential-tag:hover {
  background: rgba(9, 120, 108, 0.15);
  border-color: rgba(13, 177, 159, 0.3);
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--primary-glow), 0 0 0 1px rgba(13, 177, 159, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Hero photo */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-out-expo) 0.6s forwards;
}

.photo-container {
  position: relative;
  width: 340px;
  height: 420px;
}

.photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.6s var(--ease-out-expo);
}

/* Animated gradient border */
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: conic-gradient(from var(--photo-angle, 0deg), var(--primary), #4aeadb, var(--primary-light), var(--primary));
  z-index: -1;
  animation: rotateBorder 6s linear infinite;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.photo-frame:hover::before {
  opacity: 1;
}

.photo-frame:hover {
  box-shadow: 0 24px 80px rgba(9, 120, 108, 0.25);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-out-expo);
}

.photo-frame:hover img {
  transform: scale(1.03);
}

.photo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 5s ease-in-out infinite;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
  position: relative;
  z-index: 1;
  padding: 80px 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* Section divider lines */
section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  transition: width 1.2s var(--ease-out-expo);
}

section.section-visible::after {
  width: min(80%, 600px);
}

/* ============================================
   EXPERTISE SECTION
   ============================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  cursor: default;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mouse-following glow on cards */
.expertise-card .card-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 177, 159, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.expertise-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(13, 177, 159, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(13, 177, 159, 0.1);
}

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

.expertise-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s var(--ease-spring);
}

.expertise-card:hover .expertise-icon {
  background: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
  transform: scale(1.05) rotate(-3deg);
}

.expertise-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary-light);
  transition: color 0.3s ease;
}

.expertise-card:hover .expertise-icon svg {
  color: white;
}

.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.expertise-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================
   LOGOS / AFFILIATIONS — MARQUEE
   ============================================ */
.logos-section {
  position: relative;
  z-index: 1;
  padding: 50px 0;
}

.logos-label {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  padding: 0 2rem;
}

.logos-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 120px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.logos-marquee img {
  position: absolute;
  top: 50%;
  height: 100px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.5s var(--ease-out-expo), filter 0.5s var(--ease-out-expo);
  background: transparent !important;
  mix-blend-mode: lighten;
  will-change: transform;
}

.logos-marquee img:hover {
  opacity: 1;
}


/* ============================================
   RESUME SECTION
   ============================================ */
.resume-section {
  background: linear-gradient(180deg, transparent 0%, rgba(9, 120, 108, 0.03) 50%, transparent 100%);
}

.resume-download-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.resume-container {
  max-width: 900px;
  margin: 0 auto;
}

.resume-block {
  margin-bottom: 3rem;
}

.resume-block-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.resume-block-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--primary-light);
}

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: 28px;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--border-subtle);
  border-radius: 2px;
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 2px;
  transition: height 1.5s var(--ease-out-expo);
}

.timeline-container.timeline-active .timeline-line::after {
  height: 100%;
}

.timeline-container .resume-item {
  position: relative;
}

.timeline-container .resume-item::after {
  content: '';
  position: absolute;
  left: -34px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg-dark);
  transition: all 0.3s ease;
}

.timeline-container .resume-item:hover::after {
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.resume-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.resume-item:hover {
  border-color: rgba(13, 177, 159, 0.2);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.resume-item-role {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.resume-item-org {
  color: var(--primary-light);
}

.resume-item-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.resume-item-bullets {
  list-style: none;
  padding: 0;
}

.resume-item-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.resume-item-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

/* Skills grid */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.skill-category {
  flex: 0 1 calc(33.333% - 0.67rem);
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.skill-category:hover {
  border-color: rgba(13, 177, 159, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.skill-category-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--primary-subtle);
  border-color: rgba(13, 177, 159, 0.2);
  color: var(--primary-light);
  transform: translateY(-1px);
}

/* Education */
.edu-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.edu-item:hover {
  border-color: rgba(13, 177, 159, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.edu-school {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.edu-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
  font-family: var(--font-heading);
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.edu-degrees {
  list-style: none;
  padding: 0;
}

.edu-degrees li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.edu-highlight {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  background: rgba(9, 120, 108, 0.12);
  color: var(--primary-light);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  margin-right: 0.35rem;
  transition: all 0.3s ease;
}

.edu-highlight:hover {
  background: rgba(9, 120, 108, 0.2);
  transform: translateY(-1px);
}

/* ============================================
   FEATURED CONTENT
   ============================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.featured-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all 0.5s var(--ease-out-expo);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.featured-card:hover {
  transform: translateY(-8px);
  border-color: rgba(13, 177, 159, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(13, 177, 159, 0.08);
}

.featured-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1f2e;
  transition: transform 0.7s var(--ease-out-expo);
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.1);
}

.featured-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.9), transparent);
  pointer-events: none;
}

.featured-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.featured-card h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.featured-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
}

.featured-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all 0.3s var(--ease-out-expo);
}

.featured-card:hover .featured-card-arrow {
  gap: 0.75rem;
  color: #4aeadb;
}

.featured-card-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out-expo);
}

.featured-card:hover .featured-card-arrow svg {
  transform: translateX(3px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 2rem 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  margin-bottom: 3rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.footer-heading .highlight {
  background: linear-gradient(135deg, var(--primary-light), #4aeadb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out-expo);
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  margin-left: -0.75rem;
}

.footer-link:hover {
  color: var(--primary-light);
  background: rgba(13, 177, 159, 0.06);
  transform: translateX(4px);
}

.footer-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

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

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s var(--ease-spring);
}

.footer-social:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
  color: var(--primary-light);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes rotateBorder {
  from { --photo-angle: 0deg; }
  to { --photo-angle: 360deg; }
}

@property --photo-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}


@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 60px); }
  66% { transform: translate(30px, -40px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(50px, -30px); }
  66% { transform: translate(-30px, 50px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-60px, -40px); }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logos-marquee {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    height: auto;
    overflow: visible;
  }

  .logos-marquee img {
    position: static;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-text, .hero-visual {
    opacity: 1;
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .hero {
    min-height: auto;
    padding: 120px 2rem 50px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text { order: 2; }
  .hero-visual { order: 1; }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-credentials { justify-content: center; }
  .hero-actions { justify-content: center; }

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

  .expertise-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .resume-item-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .edu-header {
    flex-direction: column;
    gap: 0.25rem;
  }

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

  .featured-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-top {
    text-align: center;
  }

  .footer-links { align-items: center; }
  .footer-link { margin-left: 0; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .photo-container {
    width: 280px;
    height: 350px;
  }

  .nav.scrolled {
    left: 12px;
    right: 12px;
  }

  .cursor-glow { display: none; }
}

@media (max-width: 640px) {
  section { padding: 55px 1.25rem; }
  .nav { padding: 0 1rem; }

  .nav.scrolled {
    top: 8px;
    left: 8px;
    right: 8px;
    border-radius: 14px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.5s var(--ease-out-expo);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero { padding: 100px 1.25rem 40px; }

  .photo-container { width: 220px; height: 280px; }
  .photo-glow { width: 220px; height: 220px; }

  .resume-item { padding: 1.25rem; }
  .edu-item { padding: 1.25rem; }

  .timeline-container { padding-left: 20px; }
  .timeline-container .resume-item::after { left: -26px; width: 8px; height: 8px; }

  .logos-section { padding: 40px 0; }
  .logos-marquee img { height: 80px; max-width: 160px; }
  .logos-marquee { height: 100px; }
}
