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

:root {
  --bg:        #0a192f;           /* Navy */
  --bg-alt:    #112240;           /* Light Navy */
  --bg-card:   #112240;           /* Light Navy */
  --border:    #233554;           /* Lightest Navy */
  --accent:    #64ffda;           /* Teal Green */
  --accent2:   #64ffda;
  --text:      #ccd6f6;           /* Lightest Slate */
  --text-muted:#8892b0;           /* Slate */
  --nav-h:     64px;
  --radius:    12px;
  --transition: 0.25s ease;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover { color: #fff; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent { color: var(--accent); }

/* ── Utility Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a192f;
}
.btn-primary:hover {
  background: #fff;
  color: #0a192f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100, 255, 218, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(100, 255, 218, 0.08);
  transform: translateY(-2px);
  color: var(--accent);
}

.btn-full { width: 100%; justify-content: center; }

/* ── Section Shared ───────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ── Navigation ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--transition), backdrop-filter var(--transition), border-bottom var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
}
.nav-logo:hover { color: #fff; }

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  transition: all var(--transition);
}

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

.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: rgba(100, 255, 218, 0.1) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(100, 255, 218, 0.3);
}
.nav-cta:hover {
  background: rgba(100, 255, 218, 0.2) !important;
  color: var(--accent) !important;
}


.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: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100,255,218,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,255,218,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.35s forwards;
}

.hero-title {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  height: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.cursor {
  display: inline-block;
  width: 2px;
  background: var(--accent);
  animation: blink 0.9s infinite;
  margin-left: 2px;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-bio {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.65s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
}

.hero-socials {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.95s forwards;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(100,255,218,0.08);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(100,255,218,0.15);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.2s forwards;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.1); }
}

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

/* ── About ────────────────────────��───────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  width: 260px;
  justify-self: center;
}

.about-photo-placeholder {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  transition: border-color var(--transition);
}
.about-photo-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: var(--text-muted);
}
.about-photo-placeholder:hover { border-color: var(--accent); }

/* Replace the placeholder div with an <img> when you have a photo:
   <img src="your-photo.jpg" class="about-photo" alt="Your Name" />
*/
.about-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  position: relative;
  z-index: 1;
}

.about-photo-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(100,255,218,0.15) 0%, transparent 70%);
  z-index: 0;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.about-text strong { color: var(--text); }

.about-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── Skills ───────────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(100,255,218,0.1);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

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

.tag {
  background: rgba(100,255,218,0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
  transition: background var(--transition);
}

.tag:hover {
  background: rgba(100,255,218,0.18);
}

.tag-sm {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}

/* ── Projects ─────────────────────────────────────────────── */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  transition: all var(--transition);
  position: relative;
}

.project-card.no-media {
  grid-template-columns: 1fr;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(100,255,218,0.1);
}

.project-card.featured {
  grid-column: unset;
}

.project-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.project-card-media {
  width: 100%;
  order: -1;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-icon-link {
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
}
.project-icon-link svg { width: 20px; height: 20px; }
.project-icon-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.project-label {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  color: var(--text);
  transition: color var(--transition);
}

.project-card:hover .project-title { color: var(--accent); }

.project-date {
  display: block;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  flex: 1;
}

ul.project-desc {
  padding-left: 1.15rem;
  list-style: disc;
}

ul.project-desc li {
  margin-bottom: 0.3rem;
}

.project-gif {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(100,255,218,0.12);
  display: block;
}

.project-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.project-title-link:hover { color: var(--accent); }

.project-gif-link {
  display: block;
  text-decoration: none;
}
.project-gif-link:hover .project-gif {
  border-color: var(--accent);
  opacity: 0.9;
}

.project-tech {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
}

.project-tech li::before {
  content: "▹ ";
  color: var(--accent);
}

.projects-footer {
  margin-top: 3rem;
  text-align: center;
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  transition: all var(--transition);
  z-index: 1;
}

.timeline-dot-edu {
  border-color: var(--accent2);
  box-shadow: 0 0 10px rgba(100,255,218,0.4);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(100,255,218,0.5);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.timeline-item:hover .timeline-content {
  border-color: rgba(100,255,218,0.3);
  box-shadow: 0 4px 20px rgba(100,255,218,0.05);
}

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

.timeline-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
}

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

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

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

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.contact-value {
  color: var(--text);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.contact-value:hover { color: var(--accent); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100,255,218,0.1);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.8rem !important;
  margin-top: 0.25rem;
}

/* ── Scroll-reveal animation ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .about-photo-wrap { margin: 0 auto; }
  .about-actions { justify-content: center; }

  .project-card {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    z-index: 99;
    background: rgba(13,17,23,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s linear;
    pointer-events: all;
  }
  .nav-links a {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 8px;
  }

  .skills-grid {
    gap: 0.75rem;
  }

  .hero-scroll-hint { display: none; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .about-actions {
    gap: 0.5rem;
  }

  .timeline { padding-left: 1.5rem; }

  .timeline-header { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   NEW ELEMENTS — incorporated from reference portfolios
   ═══════════════════════════════════════════════════════════════ */

/* ── Light Theme ─────────────────────────────────────────────
   Clean white palette — pure contrast, matches sahilbhatane.vercel.app feel
   ─────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:        #ffffff;   /* pure white */
  --bg-alt:    #f7f7f7;   /* very light gray for alt sections */
  --bg-card:   #ffffff;   /* white cards */
  --border:    #e5e5e5;   /* light gray border */
  --accent:    #0d9488;   /* dark teal — readable on white */
  --accent2:   #0d9488;
  --text:      #111111;   /* near-black for maximum contrast */
  --text-muted:#4b5563;   /* darker gray for better contrast on white */
}

/* Nav background — always visible in light mode */
[data-theme="light"] #navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
}
[data-theme="light"] .nav-links {
  background: rgba(255,255,255,0.99);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Nav link text — slightly darker than text-muted for legibility */
[data-theme="light"] .nav-links a {
  color: #374151;
}

/* Nav interactions — stronger, teal-tinted */
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: var(--accent);
  background: rgba(13,148,136,0.1);
}
[data-theme="light"] .nav-cta {
  background: rgba(13,148,136,0.1) !important;
  border-color: rgba(13,148,136,0.5) !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
}
[data-theme="light"] .nav-cta:hover {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
}
[data-theme="light"] .nav-logo:hover { color: var(--accent); filter: brightness(1.2); }
[data-theme="light"] a:hover         { color: #000000; }

/* Grid lines on hero */
[data-theme="light"] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(13,148,136,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,148,136,0.06) 1px, transparent 1px);
}

/* Grain — barely visible on cream */
[data-theme="light"] .grain-overlay { opacity: 0.01; }

/* Cards — clean neutral shadows on white */
[data-theme="light"] .skill-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}
[data-theme="light"] .skill-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
[data-theme="light"] .project-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}
[data-theme="light"] .project-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}
[data-theme="light"] .contact-item,
[data-theme="light"] .contact-form,
[data-theme="light"] .github-graph   {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
[data-theme="light"] .contact-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

/* Tags — swap neon teal for dark teal tint */
[data-theme="light"] .tag {
  background: rgba(13,148,136,0.07);
  border-color: rgba(13,148,136,0.18);
}
[data-theme="light"] .tag:hover {
  background: rgba(13,148,136,0.14);
}

/* Buttons */
[data-theme="light"] .btn-primary           { color: #ffffff; }
[data-theme="light"] .btn-primary:hover     {
  background: #0a7a70;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(13,148,136,0.22);
}
[data-theme="light"] .btn-outline:hover     { background: rgba(13,148,136,0.07); }

/* Social links */
[data-theme="light"] .social-link:hover {
  background: rgba(13,148,136,0.07);
  box-shadow: 0 4px 14px rgba(13,148,136,0.12);
}

/* About photo glow */
[data-theme="light"] .about-photo-glow {
  background: radial-gradient(ellipse, rgba(13,148,136,0.1) 0%, transparent 70%);
}

/* Preloader */
[data-theme="light"] .preloader           { background: var(--bg); }
[data-theme="light"] .preloader-logo      { color: var(--accent); }
[data-theme="light"] .preloader-fill      { background: var(--accent); }
[data-theme="light"] .preloader-bar       { background: var(--border); }

/* Light theme — replace neon-teal hover ghosts with dark-teal equivalents
   so interactions are visible on cream instead of disappearing into white */
[data-theme="light"] .theme-toggle {
  border-color: #d1d5db;
  color: #374151;
}
[data-theme="light"] .theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(13,148,136,0.08);
}
[data-theme="light"] .social-link:hover {
  background: rgba(13,148,136,0.08);
  box-shadow: 0 4px 16px rgba(13,148,136,0.15);
}
[data-theme="light"] .timeline-item:hover .timeline-content {
  border-color: rgba(13,148,136,0.3);
  box-shadow: 0 4px 20px rgba(13,148,136,0.05);
}
[data-theme="light"] .btn-primary:hover {
  background: #0a7a70;
  box-shadow: 0 8px 24px rgba(13,148,136,0.22);
}
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: var(--accent);
  background: rgba(13,148,136,0.1);
}

/* ── Theme Toggle Button ────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: all var(--transition);
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(100,255,218,0.08);
}

.theme-toggle svg { width: 16px; height: 16px; }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Tile Grid Cursor (Sahil Bhatane style) ─────────────────── */

#tileCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Preloader (Mr. Three) ──────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 6px;
  animation: pulseLogo 1s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
  from { opacity: 0.5; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.03); }
}

.preloader-bar {
  width: 160px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: fillBar 1.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Film Grain Overlay (Yamin Hossain) ─────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Marquee / Tech Ticker (Deval) ──────────────────────────── */
.marquee-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.9rem 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: inline-flex;
  gap: 1.5rem;
  animation: marquee 35s linear infinite;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.marquee-track span:hover {
  color: var(--accent);
  border-color: rgba(100,255,218,0.5);
}

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

/* ── Section Labels / Terminal style (Eswar Sai / Deval) ─────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

/* ── Glitch Hover Effect (Deval) ────────────────────────────── */
.glitch { position: relative; }

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  color: var(--text);
}

.glitch:hover::before {
  left: 3px;
  text-shadow: -2px 0 var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  animation: glitch-clip-1 0.45s steps(2) infinite;
}

.glitch:hover::after {
  left: -3px;
  text-shadow: 2px 0 #ff6b9d;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  animation: glitch-clip-2 0.45s steps(2) infinite reverse;
}

@keyframes glitch-clip-1 {
  0%   { clip-path: polygon(0 5%,  100% 5%,  100% 25%, 0 25%); }
  25%  { clip-path: polygon(0 45%, 100% 45%, 100% 65%, 0 65%); }
  50%  { clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%); }
  75%  { clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%); }
  100% { clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%); }
}

@keyframes glitch-clip-2 {
  0%   { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); }
  25%  { clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); }
  50%  { clip-path: polygon(0 35%, 100% 35%, 100% 55%, 0 55%); }
  75%  { clip-path: polygon(0 75%, 100% 75%, 100% 95%, 0 95%); }
  100% { clip-path: polygon(0 25%, 100% 25%, 100% 45%, 0 45%); }
}

/* ── Hero Clock (eHarshit) ──────────────────────────────────── */
.hero-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(100,255,218,0.03);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.75s forwards;
}

.clock-sep { opacity: 0.4; }
.clock-time { color: var(--accent); }

/* ── Update hero animation delays to fit clock ──────────────── */
/* clock is at 0.75s; shift actions/socials forward slightly */
.hero-actions { animation-delay: 0.9s !important; }
.hero-socials { animation-delay: 1.05s !important; }

/* ── GitHub Contribution Graph (Sahil Bhatane) ──────────────── */
.github-graph {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.github-graph-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.github-chart {
  max-width: 100%;
  border-radius: 8px;
  opacity: 0.8;
  transition: opacity var(--transition);
  margin: 0 auto;
  border: 1px solid var(--border);
}

.github-chart:hover { opacity: 1; }

.github-graph-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Project Filters (Yamin Hossain) ────────────────────────── */
.project-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  color: var(--accent);
  border-color: rgba(100,255,218,0.4);
}

.filter-btn.active {
  background: rgba(100,255,218,0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.project-card.hidden { display: none; }

.project-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  background: rgba(100,255,218,0.07);
  border: 1px solid rgba(100,255,218,0.22);
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  transition: all var(--transition);
}
.project-read-more:hover {
  background: rgba(100,255,218,0.14);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
[data-theme="light"] .project-read-more {
  background: rgba(13,148,136,0.07);
  border-color: rgba(13,148,136,0.22);
}
[data-theme="light"] .project-read-more:hover {
  background: rgba(13,148,136,0.14);
}

/* ── Easter Egg (Brittany Chiang) ───────────────────────────── */
.easter-egg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.easter-egg.active {
  opacity: 1;
  visibility: visible;
}

.easter-egg-inner {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 60px rgba(100,255,218,0.2);
  margin: 1.5rem;
}

.easter-egg-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}

.easter-egg-inner p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.easter-egg-inner button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.75rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.easter-egg-inner button:hover {
  background: #fff;
  transform: translateY(-2px);
  cursor: pointer;
}

/* ── Footer hint ─────────────────────────────────────────────── */
.footer-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem !important;
  margin-top: 0.5rem;
  opacity: 0.2;
  letter-spacing: 2px;
  transition: opacity 0.3s;
}

.footer-hint:hover { opacity: 0.6; }

/* ── Skills Acquired — accent-colored skill names ──────────── */
.skills-list li > strong:first-child { color: var(--accent); }

/* ── Article page light-theme contrast fixes ─────────────────
   Hard-coded dark-theme colors in article inline styles don't
   adapt automatically — these overrides restore readability.
   ─────────────────────────────────────────────────────────── */
[data-theme="light"] .phase-title        { color: #1a202c; }
[data-theme="light"] .chart-caption      { color: #4b5563; }
[data-theme="light"] .article-hero-meta  { color: rgba(230,241,255,0.9); }
[data-theme="light"] .callout            { color: var(--text); background: rgba(13,148,136,0.05); }
[data-theme="light"] .article-back       { opacity: 1; }
[data-theme="light"] .article-divider    { border-top-color: var(--border); }
[data-theme="light"] .article-cta        { border-top-color: var(--border); }
[data-theme="light"] .article-cta h3     { color: var(--text); }
[data-theme="light"] .phase-block        { border-left-color: rgba(13,148,136,0.35); }
[data-theme="light"] .growth-block       { background: rgba(13,148,136,0.04); border-color: rgba(13,148,136,0.18); }
[data-theme="light"] .code-wrap          { border-color: var(--border); }
[data-theme="light"] .result-table-wrap  { border-color: var(--border); }
[data-theme="light"] .result-table th    { background: rgba(13,148,136,0.06); border-bottom-color: var(--border); }
[data-theme="light"] .result-table td    { color: var(--text); border-bottom-color: var(--border); }
[data-theme="light"] .result-table tr:hover td { background: rgba(13,148,136,0.03); }
[data-theme="light"] .section-divider    { background: linear-gradient(to right, rgba(13,148,136,0.4), rgba(13,148,136,0)); }
[data-theme="light"] .article-p code     { background: rgba(13,148,136,0.08); }
[data-theme="light"] strong              { color: var(--text); }

