:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(66, 133, 244, 0.09), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.10), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 56%, #eef3f8 100%);
}

.page-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.nav-link {
  position: relative;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #111827;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  background: linear-gradient(90deg, #4285f4, #8b5cf6);
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.mobile-link {
  display: block;
  padding: 0.9rem 0;
  color: #475569;
}

.resume-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  padding: 0.55rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.google-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.6rem, 16vw, 9.2rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.search-shell {
  margin-top: 2.4rem;
  width: min(100%, 720px);
}

.search-bar {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.45rem 0.55rem 0.45rem 1.1rem;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.09);
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.search-bar:focus-within {
  border-color: rgba(66, 133, 244, 0.5);
  box-shadow: 0 24px 70px rgba(66, 133, 244, 0.14);
  transform: translateY(-1px);
}

.search-icon {
  color: #94a3b8;
  font-size: 1.6rem;
}

.search-bar input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1rem;
}

.search-bar input::placeholder {
  color: #94a3b8;
}

.search-bar button,
.btn-primary {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #4285f4, #8b5cf6);
  padding: 0.7rem 1.15rem;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 32px rgba(66, 133, 244, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-secondary,
.btn-ghost {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #fff;
  padding: 0.7rem 1.15rem;
  color: #111827;
  font-weight: 700;
}

.search-bar button:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.suggestion-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #94a3b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.suggestion-chip {
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  padding: 0.65rem 0.95rem;
  color: #475569;
  font-family: Inter, sans-serif;
  font-size: 0.82rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.suggestion-chip:hover {
  transform: translateY(-2px);
  background: #e0e7ff;
  color: #3730a3;
}

.assistant-panel {
  margin-top: 1.35rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.assistant-header {
  display: flex;
  gap: 0.9rem;
  border-bottom: 1px solid #edf2f7;
  padding: 1rem 1.15rem;
}

.assistant-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #4285f4, #8b5cf6);
  color: #fff;
  font-size: 1.1rem;
}

.assistant-header h2 {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.assistant-header p {
  color: #94a3b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.assistant-answer {
  padding: 1.15rem;
  color: #334155;
  line-height: 1.65;
}

.assistant-answer p {
  margin: 0;
  color: #0f172a;
  font-weight: 650;
}

.assistant-answer ul {
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.assistant-answer li {
  position: relative;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0.72rem 0.8rem 0.72rem 2.05rem;
  color: #475569;
}

.assistant-answer li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.25rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4285f4, #8b5cf6);
}

.assistant-answer.loading {
  color: #64748b;
}

.search-metric {
  text-align: center;
}

.search-metric strong {
  display: block;
  color: #0f172a;
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 500;
}

.search-metric span {
  display: block;
  margin-top: 0.3rem;
  color: #64748b;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  text-transform: lowercase;
}

.section {
  padding: 5.5rem 0;
}

.section-heading {
  margin-bottom: 2.2rem;
  max-width: 48rem;
}

.section-heading h2,
.section-title-row h2 {
  margin-top: 0.8rem;
  color: #0f172a;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
}

.section-title-row {
  margin-bottom: 2.2rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title-row p {
  color: #64748b;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6366f1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: #6366f1;
}

.glass-card,
.project-card,
.skill-card,
.achievement-card,
.contact-panel {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  padding: 1.45rem;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.glass-card:hover,
.project-card:hover,
.skill-card:hover,
.achievement-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 28px 75px rgba(79, 70, 229, 0.10);
}

.shadow-soft {
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.project-card {
  min-height: 22rem;
}

.project-image,
.achievement-image {
  margin-bottom: 1rem;
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
}

.project-image {
  aspect-ratio: 16 / 9;
}

.achievement-image {
  aspect-ratio: 4 / 3;
}

.achievement-fallback {
  display: grid;
  height: 9rem;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  color: #6366f1;
  font-size: 2.2rem;
}

.external-arrow {
  color: #94a3b8;
  font-size: 1.35rem;
}

.chip {
  display: inline-flex;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 0.45rem 0.7rem;
  color: #475569;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(#4285f4, #8b5cf6, transparent);
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 1.6rem;
}

.timeline-dot {
  position: absolute;
  left: 0.12rem;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #4285f4;
  box-shadow: 0 0 30px rgba(66, 133, 244, 0.45);
}

.contact-panel {
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.contact-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  padding: 1rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-card span {
  color: #6366f1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
}

.contact-card strong {
  overflow-wrap: anywhere;
  color: #0f172a;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.35;
    transform: scaleY(0.75);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
  }

  .timeline-item {
    width: 50%;
    padding-right: 2.5rem;
    padding-left: 0;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 2.5rem;
  }

  .timeline-dot {
    right: -0.5rem;
    left: auto;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -0.5rem;
  }
}

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

  .search-bar {
    border-radius: 26px;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 0.85rem;
  }

  .search-bar input {
    min-height: 2.4rem;
    flex-basis: calc(100% - 3rem);
  }

  .search-bar button {
    width: 100%;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }
}

/* Assistant Streaming & Loader UI */
.status-tracker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  color: #e2e8f0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #64748b;
  transition: all 200ms ease;
}

.status-item.active {
  color: #a78bfa;
  transform: translateX(2px);
}

.status-item.done {
  color: #10b981;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85rem;
  height: 0.85rem;
}

.status-icon-spinner {
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid rgba(167, 139, 250, 0.2);
  border-left-color: #a78bfa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.status-icon-check {
  color: #10b981;
  font-weight: 900;
}

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

.stream-answer {
  line-height: 1.7;
}

.stream-answer p {
  color: #0f172a;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.stream-answer ul {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin-top: 0.8rem;
  list-style: none;
}

.stream-answer li {
  position: relative;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0.72rem 0.8rem 0.72rem 2.05rem;
  color: #475569;
}

.stream-answer li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.25rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4285f4, #8b5cf6);
}


/* ==========================================================================
   EASTER EGGS STYLING
   ========================================================================== */

/* Antigravity floating elements mode */
body.antigravity-active {
  perspective: 1000px;
}
body.antigravity-active .glass-card,
body.antigravity-active .project-card,
body.antigravity-active .timeline-card,
body.antigravity-active .skill-badge {
  animation: floatBobbing var(--float-duration, 5s) ease-in-out infinite alternate;
  transition: transform 0.5s ease-out;
}
@keyframes floatBobbing {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
  100% {
    transform: translateY(8px) rotate(-0.5deg);
  }
}

/* Hacker Dev Mode Console Terminal styling */
.terminal-console {
  background: #090d16 !important;
  color: #38bdf8 !important;
  font-family: 'JetBrains Mono', monospace !important;
  padding: 1.5rem !important;
  border-radius: 18px !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.25) !important;
  line-height: 1.6 !important;
}
.terminal-console p {
  color: #38bdf8 !important;
  font-size: 0.875rem !important;
  margin-bottom: 0.4rem !important;
  font-family: 'JetBrains Mono', monospace !important;
}
.terminal-console .terminal-green {
  color: #4ade80 !important;
}
.terminal-console .terminal-yellow {
  color: #facc15 !important;
}
.terminal-console .terminal-white {
  color: #f8fafc !important;
}
.terminal-blink::after {
  content: '▉';
  animation: cursorBlink 1s step-start infinite;
}
@keyframes cursorBlink {
  50% { opacity: 0; }
}

