:root {
  --color-bg: #FAFAFA;
  --color-bg-alt: #F4F4F5;
  --color-surface: #FFFFFF;
  --color-border: #E4E4E7;
  --color-text: #09090B;
  --color-text-secondary: #3F3F46;
  --color-text-muted: #71717A;
  --color-accent: #2563EB;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: rgba(37, 99, 235, 0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
}

.dark {
  --color-bg: #09090B;
  --color-bg-alt: #18181B;
  --color-surface: #18181B;
  --color-border: #27272A;
  --color-text: #FAFAFA;
  --color-text-secondary: #A1A1AA;
  --color-text-muted: #71717A;
  --color-accent: #3B82F6;
  --color-accent-hover: #60A5FA;
  --color-accent-light: rgba(59, 130, 246, 0.1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Quicksand', sans-serif;
  overflow-x: hidden;
  transition: background 300ms ease, color 300ms ease;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }

/* ---- Scroll Progress ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  z-index: 100;
  width: 0%;
  transition: width 100ms linear;
}

/* ---- Loading Screen ---- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar-fill {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  animation: loadBar 1.5s ease-in-out forwards;
}

@keyframes loadBar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ---- Section ---- */
.section-padding { padding: 6rem 0; }
@media (max-width: 640px) { .section-padding { padding: 3.5rem 0; } }

.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.reveal { will-change: transform, opacity; }

/* ---- Navbar ---- */
#navbar {
  background: transparent;
  font-family: 'Quicksand', sans-serif;
}

#navbar.nav-scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.dark #navbar.nav-scrolled {
  background: rgba(9,9,11,0.85);
}

.nav-link {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 250ms ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 250ms ease;
}

.nav-link:hover { color: var(--color-accent); }
.nav-link:hover::after { width: 100%; }

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all 200ms ease;
  display: flex;
  align-items: center;
}

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

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250,250,250,0.98);
  backdrop-filter: blur(20px);
  z-index: 40;
}

.dark .mobile-overlay {
  background: rgba(9,9,11,0.98);
}

/* ---- Hero ---- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--color-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent-light);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.2s both;
}

.hero-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--color-text);
  line-height: 1.1;
  animation: fadeUp 0.6s 0.35s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.5s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  animation: fadeUp 0.6s 0.7s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeUp 0.6s 1s both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

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

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: var(--color-accent);
  color: white;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: transparent;
  color: var(--color-text);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 200ms ease;
}

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

.btn-ghost {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms ease;
}

.btn-ghost:hover { color: var(--color-accent); }

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* ---- Project Grid ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 350ms ease, box-shadow 350ms ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px);
  pointer-events: none;
  z-index: 1;
}

.project-image-label {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  font-family: 'Caveat', cursive;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  z-index: 5;
}

.project-image-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  letter-spacing: 0.5px;
  z-index: 5;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ---- Mockup Browser (EventFlow) ---- */
.mockup-browser {
  position: relative;
  z-index: 2;
  width: 80%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.08);
}

.mockup-browser-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.mockup-url {
  margin-left: auto;
  font-size: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.4);
}

.mockup-browser-content {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mockup-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  animation: mockupPulse 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

.mockup-line-alt {
  height: 14px;
  width: 35%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(37,99,235,0.4), rgba(37,99,235,0.15));
  animation: mockupPulse 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

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

/* ---- Mockup Cityscape (Griha Dwar) ---- */
.mockup-cityscape {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 80px;
  opacity: 0.5;
}

.building {
  background: rgba(255,255,255,0.15);
  border-radius: 2px 2px 0 0;
  transition: opacity 300ms ease;
}

.mockup-search-overlay {
  position: relative;
  z-index: 3;
  margin-top: 8px;
  width: 75%;
}

.mockup-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace;
}

.mockup-search-bar span { opacity: 0.5; }

/* ---- Mockup Network (TutoRoad) ---- */
.mockup-network {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.network-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(255,255,255,0.6);
  z-index: 2;
  animation: nodePulse 2.5s ease-in-out infinite;
}

.network-node:nth-child(1) { animation-delay: 0s; }
.network-node:nth-child(2) { animation-delay: 0.5s; }
.network-node:nth-child(3) { animation-delay: 1s; }
.network-node:nth-child(4) { animation-delay: 1.5s; }
.network-node:nth-child(5) { animation-delay: 2s; }

@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 1; }
}

.project-info {
  padding: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid rgba(37,99,235,0.15);
}

.project-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.project-desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.project-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.project-features li {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.project-link:hover { gap: 0.5rem; }

/* ---- About ---- */
.about-photo {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-placeholder {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--color-accent-light);
  border: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.about-photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  animation: spin 20s linear infinite;
}

.about-photo-ring::before, .about-photo-ring::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}

.about-photo-ring::before { top: -6px; left: 50%; transform: translateX(-50%); }
.about-photo-ring::after { bottom: -6px; left: 50%; transform: translateX(-50%); }

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

.about-status {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  z-index: 2;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
}

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

.about-text {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text p { margin-bottom: 1rem; }

.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.detail-icon { flex-shrink: 0; display: flex; }

.social-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 200ms ease;
}

.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* ---- Radar Canvas ---- */
.radar-canvas {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ---- Skill Bars ---- */
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.3rem;
}

.skill-bar-track {
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-accent), #60A5FA);
  transition: width 1.2s ease-out;
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid rgba(37,99,235,0.15);
  transition: all 200ms ease;
}

.chip:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}

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

/* ---- Services ---- */
.service-card {
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

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

.service-icon { margin-bottom: 1rem; }

.service-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.service-desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #2563EB, #60A5FA);
  transform: translateX(-50%);
}

.timeline-entry {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-dot-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

.timeline-card {
  width: calc(50% - 3rem);
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.15);
}

.timeline-entry[data-side="right"] {
  flex-direction: row;
  justify-content: flex-end;
}

.timeline-entry[data-side="left"] .timeline-card {
  margin-right: auto;
}

.timeline-entry[data-side="right"] .timeline-card {
  margin-left: auto;
}

.timeline-date {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #2563EB;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.timeline-details {
  list-style: none;
  padding: 0;
}

.timeline-details li {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1rem;
}

.timeline-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #2563EB;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }

  .timeline-dot-wrapper {
    left: 20px;
  }

  .timeline-card {
    width: calc(100% - 3rem);
    margin-left: 3rem !important;
    margin-right: 0 !important;
  }

  .timeline-entry[data-side="right"],
  .timeline-entry[data-side="left"] {
    justify-content: flex-start;
  }
}

/* ---- Contact ---- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  transition: border-color 250ms ease, box-shadow 250ms ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

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

textarea.form-input { resize: vertical; min-height: 110px; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.contact-info {
  padding: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.contact-detail a { color: var(--color-text-secondary); text-decoration: none; transition: color 200ms ease; }
.contact-detail a:hover { color: var(--color-accent); }

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 200ms ease;
}

.contact-social-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
  transition: background 300ms ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-heading {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.footer a {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  transition: color 200ms ease;
}

.footer a:hover { color: var(--color-accent); }

.footer-icon {
  display: inline-block !important;
  color: var(--color-text-muted);
  transition: color 200ms ease, transform 200ms ease;
  margin-bottom: 0 !important;
}

.footer-icon:hover {
  color: var(--color-accent) !important;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.footer-top {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 200ms ease;
  font-size: 0.8rem;
}

.footer-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---- Particles ---- */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
}
