/* ============================================================
   Janaranjani M – Portfolio Stylesheet
   ============================================================ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  --color-primary:     #1e3a5f;   /* deep navy */
  --color-primary-light: #2d5f8a;
  --color-accent:      #f0a500;   /* warm amber */
  --color-accent-soft: #fde68a;
  --color-hw:          #0f2a4a;   /* darker hardware section bg */
  --color-hw-mid:      #163457;
  --color-sw-bg:       #f8faff;   /* software section bg */
  --color-text:        #1a1a2e;
  --color-text-muted:  #6b7280;
  --color-text-light:  #f0f6ff;
  --color-bg:          #ffffff;
  --color-surface:     #f9fafb;
  --color-border:      #e5e7eb;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-glow: 0 0 40px rgba(240,165,0,.25);

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

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

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 96px 0; }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(240,165,0,.12);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section__label--light {
  color: var(--color-accent-soft);
  background: rgba(253,230,138,.15);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section__title--light { color: var(--color-text-light); }

.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section__subtitle--light { color: rgba(240,246,255,.75); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--dark {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: var(--color-text-light);
}

.card--dark h3 { color: var(--color-accent-soft); }
.card--dark p  { color: rgba(240,246,255,.85); }
.card--dark strong { color: #fff; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn--primary:hover {
  background: #d98e00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,165,0,.4);
}

.btn--outline {
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(240,165,0,.08);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 14px 48px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  transition: color var(--transition);
}

.nav.scrolled .nav__logo { color: var(--color-primary); }
.nav__logo span { color: var(--color-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--color-accent); }

.nav.scrolled .nav__links a { color: var(--color-text-muted); }
.nav.scrolled .nav__links a:hover { color: var(--color-primary); }

.nav__cta {
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
  padding: 8px 22px;
  border-radius: 100px;
  font-weight: 700 !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: #d98e00 !important; transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.nav.scrolled .nav__toggle span { background: var(--color-primary); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2137 50%, #1a3a5c 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.hero__circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--color-accent);
}

.hero__circle--1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero__circle--2 { width: 300px; height: 300px; bottom: 50px; left: -80px; }
.hero__circle--3 { width: 180px; height: 180px; top: 30%; left: 40%; opacity: 0.04; }

.hero__content { position: relative; max-width: 680px; }

.hero__greeting {
  font-size: 1.1rem;
  color: var(--color-accent-soft);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: fadeUp 0.7s ease both;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 12px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero__tagline {
  font-size: 1.1rem;
  color: rgba(240,246,255,.8);
  margin-bottom: 32px;
  line-height: 1.75;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero__tagline em { color: var(--color-accent-soft); font-style: normal; font-weight: 600; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  animation: fadeUp 0.7s 0.4s ease both;
}

.badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border: 1.5px solid rgba(240,165,0,.45);
  border-radius: 100px;
  color: var(--color-accent-soft);
  background: rgba(240,165,0,.08);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.5s ease both;
}

/* Avatar */
.hero__avatar {
  position: relative;
  flex-shrink: 0;
  animation: fadeIn 1s 0.6s ease both;
}

.avatar__ring {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(240,165,0,.3), rgba(45,95,138,.3));
  display: grid;
  place-items: center;
  position: relative;
}

.avatar__ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent), transparent 60%, var(--color-accent));
  animation: spin 8s linear infinite;
}

.avatar__face {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d5f8a, #1e3a5f);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.avatar__initials {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -2px;
}

.avatar__pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(240,165,0,.3);
  animation: pulse 2.5s ease-in-out infinite;
}

/* Scroll arrow */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s 1s ease both;
}

.scroll__arrow {
  display: block;
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,.5);
  border-bottom: 2px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
  animation: bounce 1.5s ease-in-out infinite;
}

/* ── About ──────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 64px;
  align-items: start;
}

.about__story { line-height: 1.85; }
.about__story p { margin-bottom: 18px; }
.about__story p:last-child { margin-bottom: 0; }

.about__sidebar { display: flex; flex-direction: column; gap: 16px; }

.about__info-card {
  padding: 20px 24px;
}

.about__info-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.about__info-card p { font-size: 0.95rem; font-weight: 500; }
.about__info-card span { color: var(--color-text-muted); font-size: 0.88rem; font-weight: 400; }
.about__info-card a { color: var(--color-primary-light); text-decoration: underline; text-underline-offset: 3px; }

/* Strengths */
.strengths { }

.strengths__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  color: var(--color-text);
}

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

.strength-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
  text-align: center;
}

.strength-card:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.strength-card:hover h4,
.strength-card:hover p { color: #fff; }

.strength-card__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 14px;
}

.strength-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color var(--transition);
}

.strength-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  transition: color var(--transition);
}

/* ── Skills ─────────────────────────────────────────────────── */
.skills { background: var(--color-surface); }

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

.skill-category { }

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

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}

.skill-tag--primary  { background: rgba(30,58,95,.1);   color: var(--color-primary); }
.skill-tag--secondary { background: rgba(45,95,138,.1); color: var(--color-primary-light); }
.skill-tag--accent   { background: rgba(240,165,0,.15); color: #9a6700; }
.skill-tag--warm     { background: rgba(234,88,12,.1);  color: #c2410c; }
.skill-tag--muted    { background: rgba(107,114,128,.1); color: #4b5563; }
.skill-tag--ai       { background: linear-gradient(90deg,rgba(109,40,217,.12),rgba(59,130,246,.12)); color: #5b21b6; }

/* ── Hardware Showcase ───────────────────────────────────────── */
.hardware-section {
  background: linear-gradient(160deg, var(--color-hw) 0%, var(--color-hw-mid) 60%, #1a3a5c 100%);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.hardware-section__bg { position: absolute; inset: 0; pointer-events: none; }

/* decorative circuit lines */
.hw-circuit {
  position: absolute;
  border: 1px solid rgba(240,165,0,.08);
}

.hw-circuit--1 {
  width: 400px; height: 400px;
  border-radius: 50%;
  top: -120px; right: -80px;
}

.hw-circuit--2 {
  width: 240px; height: 240px;
  border-radius: 50%;
  bottom: -60px; left: 80px;
}

/* Software Showcase */
.software-section { background: var(--color-sw-bg); }

/* Shared Showcase Styles */
.showcase__intro {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.showcase__intro-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
}

.showcase__intro h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.showcase__intro p { line-height: 1.8; }

.software-section .showcase__intro p em {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 500;
}

.showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

/* Showcase Cards (hardware — on dark bg) */
.showcase-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.showcase-card:hover {
  background: rgba(255,255,255,.11);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
}

.showcase-card__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.showcase-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.showcase-card__header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.showcase-card__company {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.showcase-card__desc {
  font-size: 0.95rem;
  color: rgba(240,246,255,.8);
  line-height: 1.75;
  margin-bottom: 16px;
}

.showcase-card__list {
  margin-bottom: 20px;
}

.showcase-card__list li {
  font-size: 0.88rem;
  color: rgba(240,246,255,.7);
  padding: 4px 0 4px 18px;
  position: relative;
}

.showcase-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.8rem;
}

.showcase-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-card__tags span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  background: rgba(240,165,0,.15);
  color: var(--color-accent-soft);
  border: 1px solid rgba(240,165,0,.2);
}

/* Showcase Cards — light variant (software section) */
.showcase-card--light {
  background: var(--color-bg);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.showcase-card--light:hover {
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.showcase-card--light .showcase-card__header h3 { color: var(--color-text); }
.showcase-card--light .showcase-card__desc { color: var(--color-text-muted); }
.showcase-card--light .showcase-card__list li { color: var(--color-text-muted); }
.showcase-card--light .showcase-card__list li::before { color: var(--color-primary-light); }

.showcase-card--light .showcase-card__tags span {
  background: rgba(30,58,95,.08);
  color: var(--color-primary);
  border-color: rgba(30,58,95,.15);
}

/* Highlight Bar */
.showcase__highlight {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.showcase__highlight--light {
  background: var(--color-primary);
  border-color: transparent;
}

.highlight__item {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition);
}

.highlight__item:last-child { border-right: none; }
.highlight__item:hover { background: rgba(255,255,255,.05); }

.highlight__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.highlight__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(240,246,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.showcase__highlight--light .highlight__label { color: rgba(240,246,255,.8); }

/* ── Experience Timeline ─────────────────────────────────────── */
.experience { background: var(--color-bg); }

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent), var(--color-primary));
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding-bottom: 48px;
}

.timeline__item--right {
  left: 50%;
  padding-left: 56px;
}

.timeline__item--left {
  left: 0;
  padding-right: 56px;
  text-align: right;
}

.timeline__item--left .timeline__tools { justify-content: flex-end; }
.timeline__item--left .timeline__highlights { text-align: left; padding-left: 0; }

.timeline__dot {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-primary);
  top: 28px;
}

.timeline__item--right .timeline__dot { left: -9px; }
.timeline__item--left  .timeline__dot { right: -9px; }

.timeline__dot--secondary {
  background: var(--color-primary-light);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.timeline__dot--edu {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent);
}

.timeline__content { }

.timeline__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.timeline__company {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline__period {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.timeline__role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.timeline__summary {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline__highlights {
  margin-bottom: 16px;
  padding-left: 0;
}

.timeline__highlights li {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  padding: 3px 0 3px 18px;
  position: relative;
}

.timeline__highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline__item--left .timeline__highlights li { padding-left: 18px; }

.timeline__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline__tools span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  background: rgba(30,58,95,.08);
  color: var(--color-primary);
}

/* ── Contact ────────────────────────────────────────────────── */
.contact {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2137 100%);
  position: relative;
  overflow: hidden;
}

.contact__bg { position: absolute; inset: 0; pointer-events: none; }

.contact__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  background: var(--color-accent);
}

.contact__blob--1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.contact__blob--2 { width: 300px; height: 300px; bottom: -80px; left: -60px; }

.contact__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.contact-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
}

.contact-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
  border-color: rgba(240,165,0,.4);
}

.contact-card__icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.92rem;
  color: rgba(240,246,255,.8);
  line-height: 1.5;
  word-break: break-all;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #091929;
  padding: 32px 24px;
  text-align: center;
}

.footer__text {
  font-size: 0.95rem;
  color: rgba(240,246,255,.6);
  margin-bottom: 6px;
}

.footer__text strong { color: rgba(240,246,255,.9); }

.footer__sub {
  font-size: 0.8rem;
  color: rgba(240,246,255,.35);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.08); opacity: 0.15; }
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .skills__categories { grid-template-columns: repeat(2, 1fr); }
  .strengths__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 120px 32px 80px; gap: 32px; }
  .avatar__ring { width: 220px; height: 220px; }
  .avatar__face { width: 190px; height: 190px; }
  .avatar__initials { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav__links { 
    display: none; 
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(30,58,95,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 28px; width: 100%; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }

  .hero { 
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 24px 80px;
    justify-items: center;
  }
  .hero__avatar { order: -1; }
  .avatar__ring { width: 180px; height: 180px; }
  .avatar__face { width: 155px; height: 155px; }
  .avatar__initials { font-size: 2.5rem; }
  .hero__badges { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__scroll { display: none; }

  .section { padding: 64px 0; }

  .about__grid { grid-template-columns: 1fr; }
  .about__sidebar { grid-row: 1; }

  .strengths__grid { grid-template-columns: 1fr 1fr; }
  .skills__categories { grid-template-columns: 1fr; }
  .showcase__grid { grid-template-columns: 1fr; }

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

  .timeline::before { left: 16px; }
  .timeline__item { width: 100%; left: 0 !important; padding-left: 48px !important; padding-right: 0 !important; text-align: left !important; }
  .timeline__item--left .timeline__tools { justify-content: flex-start; }
  .timeline__dot { left: 7px !important; right: auto !important; }

  .showcase__highlight { flex-direction: column; }
  .highlight__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .highlight__item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .strengths__grid { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .hero__name { font-size: 2.8rem; }
  .about__info-card { padding: 16px 20px; }
}
