/* ============================================
   ESWAR NAGASAMUDRAM — PERSONAL WEBSITE
   Black & White. Trendy. Official.
   ============================================ */

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

:root {
  --black: #ffffff;
  --white: #0a0a0a;
  --gray-50: #111827;
  --gray-100: #1f2937;
  --gray-200: #374151;
  --gray-300: #4b5563;
  --gray-400: #6b7280;
  --gray-500: #9ca3af;
  --gray-600: #9ca3af;
  --gray-700: #d1d5db;
  --gray-800: #e5e7eb;
  --gray-900: #f9fafb;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  display: none;
}

@media (min-width: 768px) {
  .cursor-glow { display: none; }
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.3s;
}

.nav__logo:hover {
  opacity: 0.7;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__link {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-200);
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s var(--transition);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  color: var(--black);
  background: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  color: var(--black);
  background: var(--gray-200);
  transform: scale(1.05);
}

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

@media (min-width: 768px) {
  .nav__toggle { display: none; }
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gray-200);
  transition: color 0.3s;
}

.mobile-menu__link:hover {
  color: var(--white);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  border: 1px solid var(--gray-700);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero__name-line {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.03em;
}

.hero__name-line--outline {
  -webkit-text-stroke: 0;
  color: var(--gray-400);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gray-300);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* --- Credential Strip --- */
.hero__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

.credential {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credential__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.3s;
}

.credential__logo--wide {
  height: 26px;
}

.credential__logo--square {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.credential:hover .credential__logo {
  opacity: 1;
}

.credential__name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-200);
  letter-spacing: -0.01em;
}

/* --- Current Role --- */
.hero__role {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__role-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--gray-700);
  border-radius: 4px;
  white-space: nowrap;
}

.hero__role-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-100);
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.9rem 2.25rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--transition);
}

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

.btn--primary:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--gray-600);
}

.btn--ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--sm {
  font-size: 0.85rem;
  padding: 0.55rem 1.25rem;
}

/* --- Scroll Indicator --- */
.hero__scroll-indicator {
  display: none;
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Marquee / About Strip --- */
.about-strip {
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
  padding: 1.75rem 0;
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee__inner {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  animation: marquee 25s linear infinite;
}

.marquee__inner span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-300);
  flex-shrink: 0;
}

.marquee__dot {
  width: 6px !important;
  height: 6px;
  background: var(--gray-500);
  border-radius: 50%;
  display: inline-block;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Tabs --- */
.tabs__bar {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--gray-800);
  margin-bottom: 2rem;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.tabs__bar::-webkit-scrollbar {
  display: none;
}

.tabs__btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-400);
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s;
  flex-shrink: 0;
}

.tabs__btn:hover {
  color: var(--gray-200);
}

.tabs__btn--active {
  color: var(--white);
}

.tabs__btn--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  animation: tabIndicatorIn 0.3s var(--transition);
}

@keyframes tabIndicatorIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.tabs__panel {
  display: none;
  animation: tabFadeIn 0.35s var(--transition);
}

.tabs__panel--active {
  display: block;
}

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

.tabs__panel-header {
  margin-bottom: 1.5rem;
}

.tabs__panel-header .section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.tabs__panel-header .section__subtitle {
  font-size: 1.05rem;
  max-width: none;
  white-space: nowrap;
}

/* --- Accordion Timeline --- */
.timeline__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.timeline__card-header-content {
  flex: 1;
  min-width: 0;
}

.timeline__chevron {
  flex-shrink: 0;
  margin-top: 0.35rem;
  color: var(--gray-400);
  transition: transform 0.35s var(--transition), color 0.3s;
}

.timeline__item--expanded .timeline__chevron {
  transform: rotate(180deg);
  color: var(--white);
}

.timeline__card-header:hover .timeline__chevron {
  color: var(--gray-200);
}

.timeline__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--transition);
}

.timeline__item--expanded .timeline__body {
  grid-template-rows: 1fr;
}

.timeline__body-inner {
  overflow: hidden;
}

.timeline__body-inner .timeline__desc {
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-800);
  margin-top: 1.25rem;
}

/* --- Sections --- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section__header {
  margin-bottom: 3rem;
}

.section__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gray-400);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.25rem;
  color: var(--gray-300);
  max-width: 600px;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gray-700), var(--gray-800), transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -2rem;
  top: 1.75rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--gray-400);
  transform: translateX(-50%);
  z-index: 1;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.timeline__item:hover .timeline__marker {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 0 20px rgba(0,0,0,0.12);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.timeline__card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  transition: border-color 0.3s;
}

.timeline__card:hover {
  border-color: var(--gray-600);
}

.timeline__header {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.timeline__company {
  font-size: 1.1rem;
  color: var(--gray-200);
  font-weight: 500;
}

.timeline__location {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray-400);
  letter-spacing: 0.08em;
}

.timeline__desc {
  font-size: 1.1rem;
  color: var(--gray-300);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.timeline__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.timeline__highlight {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline__highlight-metric {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.timeline__highlight-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  max-width: 180px;
}

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

.timeline__details li {
  font-size: 1rem;
  color: var(--gray-300);
  padding-left: 1rem;
  position: relative;
}

.timeline__details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-600);
}

/* --- Education --- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
}

.edu-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  padding: 2.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.edu-card:hover {
  border-color: var(--gray-600);
  transform: translateY(-4px);
}

.edu-card__logo {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-200);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.edu-card__school {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.edu-card__degree {
  font-size: 1rem;
  color: var(--gray-300);
  margin-bottom: 0.25rem;
}

.edu-card__year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.edu-card__highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edu-card__highlights li {
  font-size: 0.95rem;
  color: var(--gray-300);
  padding-left: 1rem;
  position: relative;
}

.edu-card__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-600);
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: var(--gray-600);
  transform: translateY(-4px);
}

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

.project-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-400);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.project-card__desc {
  font-size: 1.05rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--gray-700);
  border-radius: 100px;
  color: var(--gray-300);
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.project-card__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  transition: opacity 0.3s;
}

.project-card__link--secondary {
  color: var(--gray-300);
}

.project-card__link:hover {
  opacity: 0.7;
}

.project-card--coming {
  border-style: dashed;
}

/* --- Writing --- */
.writing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .writing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .writing-grid { grid-template-columns: repeat(3, 1fr); }
}

.writing-card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}

.writing-card:hover {
  border-color: var(--gray-600);
  transform: translateY(-4px);
}

.writing-card__type {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.writing-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.writing-card__excerpt {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.writing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.writing-card__platform {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.writing-card__read {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  transition: opacity 0.3s;
}

.writing-card__read:hover {
  opacity: 0.7;
}

/* --- Extras / Beyond Resume --- */
.extras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .extras-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .extras-grid { grid-template-columns: repeat(4, 1fr); }
}

.extra-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s;
}

.extra-card:hover {
  border-color: var(--gray-600);
  transform: translateY(-4px);
}

.extra-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.extra-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.extra-card__desc {
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.6;
}

/* --- Contact --- */
.contact {
  padding: 6rem 0;
  background: var(--gray-900);
  border-top: 1px solid var(--gray-800);
}

.contact__content {
  max-width: 700px;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  margin-top: 1rem;
}

.contact__desc {
  font-size: 1.2rem;
  color: var(--gray-300);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s;
}

.contact__link:hover {
  border-color: var(--gray-600);
  transform: translateX(4px);
}

.contact__link-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
}

.contact__link-value {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact__languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact__lang-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-right: 0.25rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--gray-800);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-300);
}

.footer__copy {
  font-size: 0.9rem;
  color: var(--gray-300);
}

/* --- Selection --- */
::selection {
  background: var(--white);
  color: var(--black);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-700);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* --- About Section --- */
/* --- Hero Stats --- */
.hero__stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: left;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* --- Hero Summary (right column — floating quote) --- */
.hero__summary {
  position: relative;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 3px solid var(--gray-700);
  animation: heroFloat 6s ease-in-out infinite;
}

.hero__summary::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--gray-700);
  pointer-events: none;
}

.hero__summary::after {
  content: '\201D';
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: 0.5;
  color: var(--gray-700);
  text-align: right;
  margin-top: 0.5rem;
  pointer-events: none;
}

.hero__summary p {
  font-size: 1.05rem;
  color: var(--gray-300);
  line-height: 1.8;
  font-style: italic;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Hero Pillars --- */
.hero__pillars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero__pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  padding: 2rem;
  border: 1px solid var(--gray-800);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s;
}

.pillar:hover {
  border-color: var(--gray-600);
  transform: translateY(-4px);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  position: relative;
}

.pillar__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--white);
}

.pillar__desc {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.7;
}

/* --- Stat countUp animation --- */
@keyframes statPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.stat__number.counted {
  animation: statPulse 0.4s ease-out;
}

/* --- Hero Social --- */
.hero__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* --- Contact Actions --- */
.contact__actions {
  margin-bottom: 2.5rem;
}

.contact__actions .btn {
  gap: 0.75rem;
}

/* --- Footer Social --- */
.footer__social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer__social-link {
  color: var(--gray-400);
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
}

.footer__social-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Responsive fine-tuning --- */
@media (max-width: 767px) {
  .hero {
    padding: 5.5rem 0 2.5rem;
  }

  .hero__meta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero__meta-divider {
    width: 40px;
    height: 1px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline__card {
    padding: 1.5rem;
  }

  .timeline__highlights {
    flex-direction: column;
    gap: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .contact {
    padding: 4rem 0;
  }

  .hero__credentials {
    gap: 1rem;
  }

  .credential__logo--wide {
    height: 18px;
  }

  .credential__logo--square {
    height: 26px;
    width: 26px;
  }

  .credential__name {
    font-size: 0.8rem;
  }

  .hero__role {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero__top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__summary {
    padding: 1rem 0 1rem 1.5rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .tabs__btn {
    font-size: 0.85rem;
    padding: 0.75rem 0.85rem;
  }

  .timeline__card {
    padding: 1.25rem;
  }

  .timeline__highlights {
    gap: 1rem;
  }

  .timeline__highlight-metric {
    font-size: 1.25rem;
  }
}
