/* ==========================================================================
   Aksh-ai Inspired Design System & Precision Styling
   Exact Fonts: 'Karla' (body/sans), 'Instrument Serif' (display), 'IBM Plex Mono' (code/meta)
   ========================================================================== */

:root {
  --fb: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  --fd: 'Instrument Serif', Georgia, serif;
  --fm: 'IBM Plex Mono', monospace;

  --bg-color: #f7f6f2;
  --bg-card: #ffffff;
  --bg-card-subtle: #f0eee8;
  --text-main: #18181b;
  --text-muted: #52525b;
  --text-light: #71717a;
  --accent-red: #c8102e;
  --accent-red-hover: #9e0c24;
  --border-color: #e4e4e7;
  --border-subtle: rgba(0, 0, 0, 0.07);
  --tag-bg: #ece9e2;
  --quote-band-bg: #111114;
  --quote-band-text: #f4f4f5;
  --nav-bg: rgba(247, 246, 242, 0.92);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-color: #0d0d11;
  --bg-card: #141419;
  --bg-card-subtle: #1a1a22;
  --text-main: #f4f4f6;
  --text-muted: #a1a1aa;
  --text-light: #71717a;
  --accent-red: #e02443;
  --accent-red-hover: #f03d5a;
  --border-color: #27272a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --tag-bg: #22222c;
  --quote-band-bg: #060608;
  --quote-band-text: #f4f4f6;
  --nav-bg: rgba(13, 13, 17, 0.92);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--fb);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: -0.025em;
}

em {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-red);
}

.section-label {
  font-family: var(--fm);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.section-heading {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  font-weight: 600;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8.5rem 2rem 4rem 2rem;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-heading {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-dark {
  background-color: var(--text-main);
  color: var(--bg-color);
  border: 1px solid var(--text-main);
}

.btn-dark:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background-color: var(--bg-card);
  transform: translateY(-1px);
}

.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-photo {
  width: 100%;
  max-width: 320px;
  height: 380px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  filter: grayscale(10%);
  transition: var(--transition);
}

.hero-photo:hover {
  filter: grayscale(0%);
  transform: scale(1.015);
}

.hero-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 3.5rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-num {
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 400;
  font-family: var(--fd);
  display: block;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.stat-label {
  font-family: var(--fm);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--text-light);
}

/* ==========================================================================
   About Section
   ========================================================================== */

#about {
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  filter: grayscale(15%);
}

.about-text-col p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

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

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--tag-bg);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Signature Dark Quote Band
   ========================================================================== */

.quote-band {
  background-color: var(--quote-band-bg);
  color: var(--quote-band-text);
  padding: 4.8rem 2rem;
  text-align: center;
}

.quote-text {
  font-family: var(--fd);
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.35;
}

.quote-text em {
  color: #ffffff;
}

/* ==========================================================================
   Work (Featured Products - Full Card with Dark Gradient Overlay - Aksh style)
   ========================================================================== */

.work-grid-aksh {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
}

.work-card-aksh {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0d0d12;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-card-large {
  min-height: 520px;
}

.work-card-stack-aksh {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.work-card-stack-aksh .work-card-aksh {
  min-height: 245px;
}

.work-card-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.work-card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.92);
}

.work-card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 14, 0.15) 0%,
    rgba(10, 10, 14, 0.45) 45%,
    rgba(10, 10, 14, 0.88) 80%,
    rgba(10, 10, 14, 0.96) 100%
  );
  transition: opacity 0.3s ease;
}

.work-card-aksh:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.25);
}

.work-card-aksh:hover .work-card-bg-img {
  transform: scale(1.03);
  filter: brightness(0.85);
}

.work-card-content-overlay {
  position: relative;
  z-index: 2;
  padding: 1.8rem;
  color: #ffffff;
}

.work-card-category {
  font-family: var(--fm);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.work-card-name {
  font-family: var(--fd);
  font-size: 1.75rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.work-card-tagline {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.work-card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.85rem;
}

.work-view-details {
  font-family: var(--fm);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-weight: 500;
  transition: var(--transition);
}

.work-card-aksh:hover .work-view-details {
  color: var(--accent-red);
}

.work-live-ext {
  font-family: var(--fm);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
}

.work-live-ext:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Research & Deep Tech Section
   ========================================================================== */

#research {
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.research-hero-card {
  display: grid;
  grid-template-columns: 1.15fr 1.3fr;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.research-hero-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.research-visual-side {
  background: #faf9f6;
  padding: 1.5rem;
  display: grid;
  grid-template-rows: 1fr 1.1fr;
  gap: 1rem;
  border-right: 1px solid var(--border-subtle);
}

[data-theme="dark"] .research-visual-side {
  background: #111116;
}

.research-img-main,
.research-img-sub {
  width: 100%;
  height: 175px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0.6rem;
  border: 1px solid var(--border-subtle);
}

.research-content-side {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.research-title {
  font-size: 1.45rem;
  font-family: var(--fd);
  margin: 0.4rem 0 1rem 0;
  font-weight: 400;
  line-height: 1.25;
}

.research-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.research-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.r-stat-num {
  font-size: 1.85rem;
  font-family: var(--fd);
  font-weight: 400;
  color: var(--accent-red);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.r-stat-label {
  font-family: var(--fm);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--text-light);
}

.research-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   Side Projects / Open Source
   ========================================================================== */

.oss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 3rem;
}

.oss-card {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.oss-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.oss-card-top {
  margin-bottom: 1rem;
  color: var(--text-main);
}

.lucide-icon {
  stroke: var(--text-main);
  display: block;
}

.oss-title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.oss-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.oss-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
}

.oss-lang {
  font-family: var(--fm);
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.72rem;
}

.oss-link {
  font-weight: 600;
  color: var(--accent-red);
}

.oss-link:hover {
  text-decoration: underline;
}

.oss-view-all {
  text-align: center;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-github:hover {
  border-color: var(--text-main);
  transform: translateY(-1px);
}

/* ==========================================================================
   B.Tech Journey (Exact Akshay Behavior: Collapsed Default, Hover Expand, Black Dot)
   ========================================================================== */

#journey {
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-wrap {
  position: relative;
  padding: 2.5rem 0 1.5rem 0;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 6px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.timeline-node {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

/* Akshay style: Subtle neutral dot, becomes solid black on hover/active */
.timeline-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--text-light);
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.timeline-node:hover .timeline-dot,
.timeline-node.active .timeline-dot {
  background: var(--text-main);
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .timeline-node:hover .timeline-dot,
[data-theme="dark"] .timeline-node.active .timeline-dot {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.timeline-content {
  display: flex;
  flex-direction: column;
}

.timeline-year {
  font-family: var(--fm);
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  font-weight: 600;
  line-height: 1.35;
}

.timeline-company {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* Hidden by default, reveals on hover or click */
.timeline-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.timeline-node:hover .timeline-detail,
.timeline-node.active .timeline-detail {
  max-height: 240px;
  opacity: 1;
  margin-top: 0.5rem;
}

.timeline-hint {
  font-family: var(--fm);
  text-align: right;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-top: 2rem;
}

/* ==========================================================================
   Minimal Clean Expertise & Credentials (Duolingo + Karate)
   ========================================================================== */

.skills-minimal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-minimal-col {
  display: flex;
  flex-direction: column;
}

.skill-col-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-minimal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-minimal-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.skill-minimal-list li:hover {
  color: var(--text-main);
  transform: translateX(2px);
}

.credentials-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  padding-top: 3rem;
}

.cred-label {
  font-family: var(--fm);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.2rem;
}

.cred-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cred-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.cred-link:hover {
  border-bottom-color: var(--accent-red);
  transform: translateX(3px);
}

.cred-link:hover strong {
  color: var(--accent-red);
}

.cred-item strong {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cred-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  background: rgba(46, 204, 113, 0.12);
  color: #27ae60;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27ae60;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.contact-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 1.8rem;
}

.contact-right {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.contact-info-row {
  display: flex;
  align-items: center;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.contact-info-row:last-child {
  border-bottom: none;
}

.contact-info-row:not(.no-link):hover {
  background-color: var(--bg-card-subtle);
  padding-left: 1.7rem;
}

.contact-info-label {
  font-family: var(--fm);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--text-light);
  width: 100px;
}

.contact-info-value {
  font-size: 0.86rem;
  color: var(--text-main);
  font-weight: 500;
  flex-grow: 1;
}

.contact-arrow {
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}

.contact-info-row:hover .contact-arrow {
  color: var(--accent-red);
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Project Detail Modals (Akshay Style Expanded Detail View)
   ========================================================================== */

.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 14, 0.7);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-category {
  font-family: var(--fm);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--text-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.modal-title {
  font-family: var(--fd);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.modal-affiliation {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.modal-bullets {
  list-style: none;
  margin-bottom: 1.5rem;
}

.modal-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.modal-bullets li::before {
  content: "•";
  color: var(--accent-red);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.modal-tags span {
  font-family: var(--fm);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-main);
}

.modal-preview-box {
  margin-bottom: 1.8rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.modal-preview-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.modal-actions {
  display: flex;
  justify-content: flex-start;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .hero-content,
  .two-col,
  .work-grid-aksh,
  .research-hero-card,
  .contact-grid,
  .credentials-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .work-card-large {
    min-height: 400px;
  }

  .research-visual-side {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .timeline-track {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .timeline-line {
    top: 0;
    bottom: 0;
    left: 5px;
    width: 1px;
    height: 100%;
  }

  .timeline-node {
    display: flex;
    gap: 1.2rem;
  }

  .timeline-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .timeline-detail {
    max-height: 240px;
    opacity: 1;
    margin-top: 0.5rem;
  }

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

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .oss-grid,
  .skills-minimal-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-inner {
    padding: 4rem 1.25rem;
  }

  .modal-dialog {
    padding: 1.8rem;
  }
}
