/* ============================================
   DESIGN SYSTEM — Darshan Ravikumar Portfolio
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

/* --- CSS Custom Properties --- */
:root {
  /* Light Theme (default) */
  --bg-primary: #fafaf9;
  --bg-secondary: #f5f5f4;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8f8f6;
  --bg-elevated: #f0f0ee;
  
  --beam-color: rgba(0, 0, 0, 0.5); /* Vague dark line for light theme */

  --border-subtle: rgba(0, 0, 0, 0.15); /* Sharpened light mode borders */
  --border-medium: rgba(0, 0, 0, 0.25);
  --border-strong: rgba(0, 0, 0, 0.4);

  --text-primary: #1a1a1a;
  --text-secondary: #525252;
  --text-tertiary: #737373;
  --text-muted: #a3a3a3;

  --accent-primary: #0d9488;
  --accent-secondary: #0f766e;
  --accent-gradient: linear-gradient(135deg, #0d9488, #06b6d4, #0891b2);
  --accent-glow: rgba(13, 148, 136, 0.1);

  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.2);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.06);

  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans:
    "Geist Sans", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", "Fira Code", monospace;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-surface: #171717;
  --bg-surface-hover: #1e1e1e;
  --bg-elevated: #262626;

  --beam-color: rgba(255, 255, 255, 0.6); /* Vague white line for dark theme */

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-muted: #52525b;

  --accent-primary: #2dd4bf;
  --accent-secondary: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #2dd4bf, #22d3ee, #06b6d4);
  --accent-glow: rgba(45, 212, 191, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.06);

  --glass-bg: rgba(23, 23, 23, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* --- Ambient Background Effects --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    circle,
    var(--border-subtle) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition-slow);
}

[data-theme="dark"] body::before {
  opacity: 0.3;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: orb-float 20s ease-in-out infinite;
}
.ambient-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(13, 148, 136, 0.06);
  top: 10%;
  right: -5%;
}
.ambient-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(6, 182, 212, 0.04);
  top: 50%;
  left: -8%;
  animation-delay: -7s;
  animation-duration: 25s;
}
.ambient-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(8, 145, 178, 0.04);
  bottom: 10%;
  right: 5%;
  animation-delay: -14s;
  animation-duration: 30s;
}
[data-theme="dark"] .ambient-orb-1 {
  background: rgba(45, 212, 191, 0.06);
}
[data-theme="dark"] .ambient-orb-2 {
  background: rgba(34, 211, 238, 0.04);
}
[data-theme="dark"] .ambient-orb-3 {
  background: rgba(6, 182, 212, 0.04);
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -40px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(15px, 30px) scale(1.02);
  }
}

.hero,
.section,
.techstack-section,
.contact-section,
.footer,
.bottom-nav {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Layout --- */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 36px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-transform: lowercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 60ms;
}
.reveal-delay-2 {
  transition-delay: 120ms;
}
.reveal-delay-3 {
  transition-delay: 180ms;
}
.reveal-delay-4 {
  transition-delay: 240ms;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero-bg-gradient {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 900px;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(13, 148, 136, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(6, 182, 212, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .hero-bg-gradient {
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(45, 212, 191, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(34, 211, 238, 0.06) 0%,
      transparent 50%
    );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.hero-clock {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-clock .clock-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.availability-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--success-glow);
}

@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-content {
  max-width: 640px;
}

.hero-greeting {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 6px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.hero-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
}

.btn svg {
  width: 15px;
  height: 15px;
}

/* === Border Beam Hover Effect === */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.beam-effect {
  position: relative;
  isolation: isolate;
}

.beam-effect::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 75%,
    var(--beam-color) 85%,
    transparent 95%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
  animation: beam-rotate 4s linear infinite;
  animation-play-state: paused;
}

.beam-effect:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes beam-rotate {
  to {
    --beam-angle: 360deg;
  }
}

@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.btn-icon:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-primary);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
}
.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px auto 0; /* Centered with top margin */
  max-width: 600px; /* Wider cards for a balanced pair */
}

.highlight-card {
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}

.highlight-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.highlight-number {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}

.highlight-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

#skills .about-highlights {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   WORK EXPERIENCE — Compact, always-open
   ============================================ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Company group */
.exp-company-group {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.exp-company-group:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.exp-company-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.exp-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
  flex-shrink: 0;
  overflow: hidden;
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.exp-company-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.exp-company-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.exp-role-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px 12px 72px;
  border-bottom: 1px solid var(--border-subtle);
}

.exp-role-item:last-child {
  border-bottom: none;
}

.exp-role-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.exp-role-desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-top: 4px;
}

.exp-role-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.exp-duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.exp-type {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.exp-type.fulltime {
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent-primary);
}
.exp-type.intern {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
[data-theme="dark"] .exp-type.intern {
  color: #4ade80;
}
.exp-type.apprentice {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}
[data-theme="dark"] .exp-type.apprentice {
  color: #818cf8;
}

/* Standalone experience item (no sub-roles) */
.experience-item-standalone {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-bottom: 10px;
  transition: all var(--transition-base);
}

.experience-item-standalone:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.exp-standalone-content {
  flex: 1;
  min-width: 0;
}

.exp-standalone-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-standalone-company {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.exp-standalone-desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-top: 6px;
}

/* ============================================
   EDUCATION — ultra-compact row
   ============================================ */
.education-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.education-row:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.edu-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.edu-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.edu-info {
  flex: 1;
  min-width: 0;
}

.edu-info h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.edu-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.project-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-banner {
  width: 100%;
  height: 160px;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-banner img {
  transform: scale(1.04);
}

.project-banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--accent-gradient);
  opacity: 0.15;
}

.project-info {
  padding: 16px;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.project-description {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  white-space: nowrap;
}

.project-links {
  display: flex;
  gap: 6px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.project-link.primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.project-link.primary:hover {
  opacity: 0.85;
}

.project-link.secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.project-link.secondary:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}
.project-link svg {
  width: 12px;
  height: 12px;
}

/* ============================================
   TECH STACK — Infinite Marquee
   ============================================ */
.techstack-section {
  padding: 36px 0;
  overflow: hidden;
}

.tech-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  /* Add subtle mask for fade out at edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.tech-marquee-row {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: tech-scroll 30s linear infinite;
  padding: 4px 0; /* Prevents clipped borders on hover */
}

.tech-marquee-row.reverse {
  animation-direction: reverse;
}

.tech-marquee-row:hover {
  animation-play-state: paused;
}

.tech-marquee-content {
  display: flex;
  gap: 12px;
}

@keyframes tech-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 6px)); /* 50% of the row width minus half gap */
  }
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.tech-badge:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.tech-badge .tech-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ============================================
   CONTACT — Centered card
   ============================================ */
.contact-section {
  padding: 48px 0 32px;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  transition: all var(--transition-base);
}

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

.contact-emoji {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.contact-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.contact-card h2 .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-card > p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.contact-methods {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.contact-method:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.contact-method svg {
  width: 14px;
  height: 14px;
}

.contact-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 28px 0 90px;
  text-align: center;
}

.footer-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-tertiary);
  max-width: 460px;
  margin: 0 auto 16px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

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

/* ============================================
   FLOATING BOTTOM NAV (DOCK)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

.bottom-nav.hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
}

.nav-item {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-spring);
  position: relative;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
  transform: scale(1.1) translateY(-2px);
}

.nav-item.active {
  color: var(--text-primary);
}
.nav-item svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-spring);
}
.nav-item:hover svg {
  transform: scale(1.05);
}

.nav-separator {
  width: 1px;
  height: 22px;
  background: var(--border-medium);
  margin: 0 5px;
  flex-shrink: 0;
}

.nav-tooltip {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 3px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.nav-item:hover .nav-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-spring);
  position: relative;
}

.theme-toggle:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  transform: scale(1.18) translateY(-4px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .sun-icon {
  display: block;
}
.theme-toggle .moon-icon {
  display: none;
}
[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}
[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  #skills .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 36px 0;
  }
  .hero {
    padding: 70px 0 48px;
  }
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .exp-role-item {
    padding-left: 18px;
  }
  .bottom-nav {
    bottom: 14px;
    padding: 7px 10px;
    gap: 2px;
  }
  .nav-item,
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
  .nav-item svg,
  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-name {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  #skills .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-banner {
    height: 140px;
  }
  .contact-card {
    padding: 28px 16px;
  }
  .exp-company-header {
    flex-wrap: wrap;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   CODOLIO PROFILE CARDS
   ============================================ */
.codolio-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.codolio-card-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
}

.codolio-card-wrapper:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.codolio-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.codolio-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.codolio-stat {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.codolio-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.codolio-stat-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.codolio-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.codolio-platform {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a.codolio-platform:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.codolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 640px) {
  .codolio-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CAL.COM BOOKING BUTTON
   ============================================ */
.cal-book-btn {
  cursor: pointer;
  font-family: var(--font-sans);
}

.contact-footnote {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin-top: 24px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.footnote-icon {
  font-size: 1.1rem;
  line-height: 1.4;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 2px;
  height: 6px;
  background: currentColor;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1px;
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 10px);
    opacity: 0;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* --- Selection --- */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: var(--text-primary);
}

/* ============================================
   GLOBE WIREFRAME BACKGROUND
   ============================================ */
.globe-bg {
  position: fixed;
  top: 50%;
  right: -15%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  z-index: 0;
  pointer-events: none;
  animation: globe-spin 60s linear infinite;
  opacity: 0.6;
}

@keyframes globe-spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

[data-theme="dark"] .globe-bg {
  opacity: 0.4;
}

/* ============================================
   FLOATING VIDEO WIDGET
   ============================================ */
.video-widget {
  position: fixed;
  left: 20px;
  bottom: 100px;
  z-index: 1000;
}

.video-widget-trigger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.video-widget-trigger:hover {
  transform: scale(1.1);
  border-color: var(--accent-primary);
  box-shadow:
    var(--shadow-lg),
    0 0 20px rgba(13, 148, 136, 0.15);
}

.video-widget-panel {
  position: absolute;
  bottom: 56px;
  left: 0;
  width: 340px;
  max-height: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all var(--transition-base);
}

.video-widget-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.video-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.video-widget-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.video-widget-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.video-widget-close:hover {
  color: var(--text-primary);
}

.video-widget-content {
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.video-widget-credits {
  padding: 8px 16px 12px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border-subtle);
}

.video-widget-credits a {
  color: var(--accent-primary);
  text-decoration: none;
}

.video-widget-credits a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .video-widget {
    left: 12px;
    bottom: 90px;
  }
  .video-widget-panel {
    width: 280px;
  }
  .globe-bg {
    width: 400px;
    height: 400px;
    right: -30%;
  }
}
