/* =======================================================================
   Dheeraj Anikar Portfolio — Refreshed 2025 Theme
   ======================================================================= */

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #f8fafc;
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.25), transparent 45%),
              radial-gradient(circle at 75% 25%, rgba(14, 165, 233, 0.2), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.2), transparent 55%),
              linear-gradient(150deg, #030712 0%, #050b1b 55%, #020512 100%);
  background-attachment: fixed;
  transition: opacity 0.35s ease;
}

body.site-bg {
  --card-surface: rgba(15, 23, 42, 0.68);
  --card-strong: rgba(18, 31, 56, 0.92);
  --chip-surface: rgba(30, 41, 71, 0.85);
  --glass-border: rgba(148, 163, 184, 0.25);
  --accent-1: #7c3aed;
  --accent-2: #0ea5e9;
  --accent-3: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --text-muted: #94a3b8;
  --shadow-strong: rgba(2, 12, 44, 0.45);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  text-align: center;
  margin-bottom: 2.5rem;
  background: linear-gradient(120deg, #c084fc, #60a5fa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-text {
  background: linear-gradient(120deg, #c084fc, #60a5fa 45%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: var(--card-surface, rgba(15, 23, 42, 0.68));
  border: 1px solid var(--glass-border, rgba(148, 163, 184, 0.2));
  border-radius: 24px;
  box-shadow: 0 30px 60px var(--shadow-strong, rgba(2, 12, 44, 0.4));
  backdrop-filter: blur(26px) saturate(120%);
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--chip-surface, rgba(28, 40, 68, 0.9));
  border: 1px solid var(--glass-border, rgba(148, 163, 184, 0.28));
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #cbd5f5);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-2, #0ea5e9), var(--accent-1, #7c3aed));
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.35);
}

.primary-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(14, 165, 233, 0.45);
}

.secondary-button {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.secondary-button:hover {
  transform: translateY(-3px);
  background: rgba(14, 165, 233, 0.16);
}

/* --------------------------- TOP NAVIGATION --------------------------- */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  background: rgba(4, 10, 24, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(28px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1150px, 100%);
  margin: 0 auto;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent-1, #7c3aed), var(--accent-2, #0ea5e9));
  color: #fff;
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.35);
}

.brand-text {
  font-size: 1rem;
  color: var(--text-secondary, #cbd5f5);
  letter-spacing: 0.04em;
}

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

.nav-links a {
  position: relative;
  color: var(--text-secondary, #cbd5f5);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1, #7c3aed), var(--accent-2, #0ea5e9));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2, #0ea5e9), var(--accent-1, #7c3aed));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.45);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 42px;
  height: 32px;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 2.5px;
  background: #f8fafc;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.toggle span:nth-child(2) {
  opacity: 0;
}

.burger.toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ------------------------------ HERO --------------------------------- */
.hero-shell {
  width: min(1200px, 100% - 3rem);
  margin: clamp(3rem, 8vw, 5rem) auto clamp(4rem, 9vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero-card {
  padding: clamp(2rem, 5vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.hero-name {
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-secondary, #cbd5f5);
}

.blurb {
  color: var(--text-muted, #94a3b8);
  max-width: 520px;
}

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.metric-chip {
  flex: 1 1 160px;
  padding: 1rem 1.3rem;
  border-radius: 20px;
  text-align: left;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--glass-border, rgba(148, 163, 184, 0.25));
  box-shadow: 0 18px 32px rgba(14, 165, 233, 0.28);
}

.metric-number {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  background: linear-gradient(120deg, var(--accent-2, #0ea5e9), var(--accent-1, #7c3aed));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  color: var(--text-secondary, #cbd5f5);
  font-size: 0.9rem;
}

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

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-secondary, #cbd5f5);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--accent-2, #0ea5e9), rgba(12, 74, 110, 0.9));
  color: #fff;
}

.tooltip {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}

/* ------------------------------ HERO VISUAL -------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pfp-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
}

.pfp-glow-ring {
  position: absolute;
  inset: -70px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35), transparent 60%);
  filter: blur(6px);
  z-index: 0;
}

.pfp-card {
  position: relative;
  padding: 0.6rem;
  border-radius: 30px;
  overflow: hidden;
  z-index: 1;
}

.pfp-img {
  width: clamp(260px, 28vw, 320px);
  border-radius: 24px;
  border: 2px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 35px 70px rgba(14, 165, 233, 0.35);
}

.pfp-badges {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
  width: 100%;
}

.mini-badge {
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.8;
  z-index: 0;
}

.orb-1 {
  width: 240px;
  height: 240px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
}

.orb-2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: -20px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
}

/* -------------------------- WHAT I DO SECTION ------------------------ */
.focus-shell {
  width: min(1150px, 100% - 3rem);
  margin: 0 auto clamp(4rem, 10vw, 6rem);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.focus-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.focus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(14, 165, 233, 0.3);
}

.focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.focus-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-2, #0ea5e9);
}

.status-chip {
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary, #cbd5f5);
}

.focus-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary, #f8fafc);
}

.focus-card p {
  margin: 0;
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
}

/* ----------------------------- ABOUT --------------------------------- */
.about-shell {
  width: min(1150px, 100% - 3rem);
  margin: 0 auto clamp(4rem, 8vw, 6rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 3rem);
  padding: clamp(2.2rem, 5vw, 2.8rem);
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: var(--text-secondary, #cbd5f5);
}

.about-main h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0;
  color: var(--text-primary, #f8fafc);
}

.mission-line {
  font-weight: 600;
  color: #f1f5f9;
}

.about-side {
  display: flex;
  align-items: center;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--text-secondary, #cbd5f5);
  padding-left: 0.5rem;
}

.about-facts li {
  position: relative;
  padding-left: 1.4rem;
}

.about-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2, #0ea5e9), var(--accent-1, #7c3aed));
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.about-facts strong {
  color: #fff;
}

/* ------------------------ LEGACY NAV / CONTAINER --------------------- */
.container {
  width: min(1100px, 100% - 3rem);
  margin: 0 auto 4rem;
}

.navbar {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(4, 10, 24, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  backdrop-filter: blur(24px) saturate(140%);
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1, #7c3aed), var(--accent-2, #0ea5e9));
  color: #fff;
  letter-spacing: 0.08em;
}

.navbar .nav-links {
  margin-left: auto;
}

.navbar .burger {
  display: none;
}

/* --------------------------- PROJECTS PAGE --------------------------- */
#projects h2,
#cv h2,
#fun-me h2 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin: 3rem 0 2rem;
  text-align: center;
  color: #f8fafc;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  padding: 2rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  box-shadow: 0 30px 55px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(14, 165, 233, 0.28);
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(14, 165, 233, 0.18);
  color: var(--accent-2, #0ea5e9);
  font-size: 1.3rem;
}

.project-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-muted, #94a3b8);
  font-size: 0.9rem;
}

.project-achievement {
  color: #60a5fa;
}

.project-description p {
  margin: 0;
  color: var(--text-secondary, #cbd5f5);
}

.project-details {
  display: grid;
  gap: 0.5rem;
  padding-left: 1rem;
  list-style: disc;
  color: var(--text-secondary, #cbd5f5);
}

.tech-tag,
.metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(14, 165, 233, 0.16);
  color: #38bdf8;
}

/* ------------------------------ CV PAGE ------------------------------ */
.cv-shell {
    max-width: 1120px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
    display: grid;
    gap: 2rem;
}

/* Top intro card */
.cv-header-card {
    padding: 2rem 2rem 2.5rem;
}

.cv-name {
    font-size: clamp(2rem, 1.2vw + 1rem, 2.4rem);
    line-height: 1.15;
    font-weight: 600;
    margin: 0 0 .5rem;
}

.cv-role {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: .75rem;
}

.cv-summary {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
    max-width: 60ch;
    margin-bottom: 1.25rem;
}

.cv-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.cv-meta-chip {
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* Main 2-col resume grid */
.cv-body-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(260px, 320px);
    gap: 2rem;
    padding: 2rem;
}

.cv-left-col,
.cv-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Section headings */
.cv-section-title {
    display: flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cv-section-accent {
    display: inline-block;
    width: 8px;
    height: 28px;
    background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
    border-radius: 4px;
    margin-right: .75rem;
    box-shadow: 0 10px 30px rgba(14,165,233,.4);
}

/* Experience blocks */
.experience-item {
    border-left: 2px solid rgba(148,163,184,0.22);
    padding-left: 1rem;
}

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

.exp-company {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.exp-title {
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.4;
}

.exp-date {
    color: var(--text-muted);
    font-size: .75rem;
    line-height: 1.4;
    font-style: italic;
}

.exp-duties {
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
}
.exp-duties li {
    position: relative;
    padding-left: 1.2rem;
    font-size: .8rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: .75rem;
}
.exp-duties li::before {
    content: "▹";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-2);
    font-size: .8rem;
    line-height: 1.5;
}

.skill-tag {
    color: var(--accent-2);
    font-weight: 500;
}

.highlight-metric {
    color: var(--accent-3);
    font-weight: 600;
}

/* Education blocks */
.education-item {
    border-left: 2px solid rgba(148,163,184,0.22);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

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

.edu-school {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.edu-degree {
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.4;
}

.edu-date {
    color: var(--text-muted);
    font-size: .75rem;
    line-height: 1.4;
    font-style: italic;
}

.edu-meta {
    font-size: .8rem;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: .5rem;
}

.edu-gpa {
    color: var(--accent-3);
    font-weight: 600;
}

.edu-courses {
    font-size: .8rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 40ch;
}

/* Skills */
.skills-group {
  margin-bottom: 2rem;
}

.skills-group h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--text-bright);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem; /* tighter vertical + balanced horizontal spacing */
}

.skill-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.6rem;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
}

/* Small helper */
.text-fade {
    color: var(--text-muted);
    font-weight: 400;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .cv-body-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------- FUN ME PAGE ---------------------------- */
.fun-content {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.personal-section {
  padding: 2.2rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
  display: grid;
  gap: 1.6rem;
}

.personal-section h3 {
  margin: 0;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.section-content.reverse {
  direction: rtl;
}

.section-content.reverse > * {
  direction: ltr;
}

.text-content {
  color: var(--text-secondary, #cbd5f5);
}

.image-container,
.personal-image,
.video-embed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.placeholder-image,
.video-embed iframe {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.25);
}

.image-caption {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.travel-gallery {
  display: grid;
  gap: 1.5rem;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.gallery-image {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ------------------------------ ANIMATION ---------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.65s forwards ease;
}

.fade-in-delay-1 { animation-delay: 0.05s; }
.fade-in-delay-2 { animation-delay: 0.15s; }
.fade-in-delay-3 { animation-delay: 0.25s; }
.fade-in-delay-4 { animation-delay: 0.35s; }
.fade-in-delay-5 { animation-delay: 0.45s; }
.fade-in-delay-6 { animation-delay: 0.55s; }
.fade-in-delay-7 { animation-delay: 0.65s; }

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

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --------------------------- RESPONSIVE ------------------------------ */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .pfp-badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .about-side {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: clamp(1.5rem, 4vw, 3rem);
    margin-top: 0.75rem;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(4, 10, 24, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(2, 12, 44, 0.55);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.nav-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .contact-cta {
    display: none;
  }

  .navbar {
    position: relative;
    flex-wrap: wrap;
  }

  .navbar .nav-links {
    position: static;
    flex-direction: column;
    width: 100%;
    gap: 0.9rem;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: max-height 0.3s ease;
  }

  .navbar.open .nav-links {
    padding-top: 1rem;
    max-height: 400px;
  }

  .navbar .burger {
    display: block;
  }

  .navbar .burger .line1,
  .navbar .burger .line2,
  .navbar .burger .line3 {
    width: 24px;
    height: 2.5px;
    background: #f8fafc;
    margin: 4px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .navbar.open .burger .line1 {
    transform: translateY(6px) rotate(45deg);
  }

  .navbar.open .burger .line2 {
    opacity: 0;
  }

  .navbar.open .burger .line3 {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .hero-card {
    padding: 1.8rem;
  }

  .focus-card {
    padding: 1.6rem;
  }

  .about-grid {
    padding: 1.8rem;
  }

  .personal-section {
    padding: 1.8rem;
  }

  .section-content {
    grid-template-columns: 1fr;
  }

  .metrics-row {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-grid,
  .cv-container,
  .gallery-images {
    grid-template-columns: 1fr;
  }
}

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

  body {
    transition: none;
  }
}
