/* ================================================================
   PORTFOLIO — Linear / Vercel Inspired Design System
   Plus Jakarta Sans + JetBrains Mono
   ================================================================ */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --accent:        #10b981;
  --accent-dim:    rgba(16, 185, 129, 0.12);
  --accent-border: rgba(16, 185, 129, 0.25);
  --accent-glow:   rgba(16, 185, 129, 0.3);
  --accent-light:  #34d399;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;
}

/* --- Dark Theme (default) --- */
[data-theme="dark"] {
  --bg:             #050505;
  --bg-alt:         #0a0a0a;
  --surface:        #0c0c0e;
  --surface-hover:  #141418;
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,255,255,0.18);
  --text:           #ededed;
  --text-sub:       #a1a1aa;
  --text-muted:     #71717a;
  --navbar-bg:      rgba(5,5,5,0.85);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:      0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow:    0 0 40px rgba(16,185,129,0.08);
  --spotlight:      rgba(255,255,255,0.06);
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg:             #fafafa;
  --bg-alt:         #f4f4f5;
  --surface:        #ffffff;
  --surface-hover:  #fafafa;
  --border:         rgba(0,0,0,0.08);
  --border-hover:   rgba(0,0,0,0.16);
  --text:           #18181b;
  --text-sub:       #52525b;
  --text-muted:     #a1a1aa;
  --navbar-bg:      rgba(250,250,250,0.9);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:      0 8px 30px rgba(0,0,0,0.06);
  --shadow-glow:    0 0 40px rgba(16,185,129,0.06);
  --spotlight:      rgba(0,0,0,0.03);
}

/* ================================================================
   BASE
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

a { text-decoration: none; transition: all 0.2s; color: inherit; }
img { max-width: 100%; display: block; }

.section { padding: 5.5rem 0; position: relative; }
.section-alt { background-color: var(--bg-alt); }

/* ================================================================
   SPOTLIGHT CARD — The Core Reusable Component
   (Vercel / Linear mouse-tracking radial glow)
   ================================================================ */

.spotlight-card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Mouse-tracking radial glow */
.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -999px);
  left: var(--mouse-x, -999px);
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--spotlight) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.spotlight-card:hover::before {
  opacity: 1;
}

/* ================================================================
   NAVBAR — Dynamic Island Floating Pill
   ================================================================ */

.navbar {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar-island {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: 60px;
  padding: 0.4rem 0.5rem 0.4rem 1.1rem;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: fit-content;
}

.navbar.scrolled .navbar-island {
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  box-shadow: var(--shadow-md), 0 0 60px var(--accent-glow), 0 0 0 1px var(--border);
}

.navbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  margin-right: 0.25rem;
  text-decoration: none;
}

.brand-logo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-name {
  color: var(--text);
  font-weight: 700;
}

/* --- Nav Pills (desktop links) --- */

.nav-pills {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  position: relative;
}

.nav-pill {
  position: relative;
  z-index: 2;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-full);
  transition: color 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--text);
}

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

/* Sliding liquid indicator */
.nav-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  transition:
    left   0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* --- Mobile Toggler --- */

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.toggler-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggler.open .toggler-bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.navbar-toggler.open .toggler-bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggler.open .toggler-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Mobile Nav Dropdown --- */

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-md);
  animation: islandExpand 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 90vw;
  max-width: 360px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-full);
  text-decoration: none;
  width: 100%;
  text-align: center;
  transition: all 0.2s;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

@keyframes islandExpand {
  0%   { opacity: 0; transform: scaleY(0.6) scaleX(0.8); }
  100% { opacity: 1; transform: scaleY(1) scaleX(1); }
}

/* Hide desktop nav on mobile, show toggler */
@media (max-width: 991.98px) {
  .nav-pills {
    display: none !important;
  }
  .navbar-toggler {
    display: flex;
  }
}

/* ================================================================
   THEME TOGGLE
   ================================================================ */

.theme-toggle {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.theme-btn {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 1.75rem;
  transition: color 0.2s;
}

.theme-btn.active { color: var(--accent); }
.theme-btn:hover  { color: var(--text); }

.theme-slider {
  position: absolute;
  top: 0.2rem;
  height: 1.75rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  transition: left 0.25s cubic-bezier(0.4,0,0.2,1), width 0.25s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

#home {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  padding-top: 5rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 25%, transparent 100%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.35;
  animation: orbFloat 14s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.3), transparent 70%);
  top: -150px;
  left: -200px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
  bottom: -120px;
  right: -120px;
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -30px) scale(1.06); }
}

/* Hero Badge / Status */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  padding: 0.25rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Hero Typography */
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-sub);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 540px;
  line-height: 1.8;
}

/* ================================================================
   HERO TERMINAL — Fully Rebuilt
   ================================================================ */

.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-right: auto;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 1rem 1.25rem;
  min-height: 220px;
  max-height: 310px;
  overflow: hidden;
}

.term-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
  line-height: 1.7;
}

.term-prompt {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.term-cmd {
  color: var(--text);
  font-weight: 500;
}

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

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

.term-output {
  color: var(--text-sub);
  font-size: 0.78rem;
  line-height: 1.65;
  margin: 0.15rem 0 0.75rem 0;
  white-space: pre-wrap;
  padding-left: 0;
}

/* ================================================================
   SECTION HEADER
   ================================================================ */

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 500px;
  margin: 0.25rem auto 0;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */

.about-card {
  padding: 2.25rem;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text strong { color: var(--text); }

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ================================================================
   PROJECT CARDS  —  Vercel / Linear Aesthetic
   ================================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.project-item { display: flex; }

.project-card-modern {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

/* Top bar: icon + links */
.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.project-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.spotlight-card:hover .project-icon-badge {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.card-links-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-link-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  background: transparent;
  transition: all 0.2s;
}

.icon-link-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--r-full);
  padding: 0.2rem 0.6rem;
}

.badge-status-pill i {
  font-size: 0.4rem;
  animation: pulse-dot 1.4s infinite ease-in-out;
}

/* Card Content */
.project-card-modern .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
  letter-spacing: -0.015em;
  position: relative;
  z-index: 2;
  transition: color 0.2s;
}

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

.project-card-modern .card-text {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

[data-theme="light"] .tag {
  background: rgba(0,0,0,0.03);
}

/* Card Footer / Actions */
.card-footer-action {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-sub);
  background: transparent;
  transition: all 0.2s;
  flex: 1;
}

.btn-card-action:hover {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.btn-card-action:hover i:last-child {
  transform: translate(2px, -2px);
}

.btn-card-action i:last-child {
  font-size: 0.7rem;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.btn-card-action-alt {
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn-card-action-alt:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-card-action.full-width,
.btn-card-action-muted.full-width {
  flex: none;
  width: 100%;
}

.btn-card-action-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}

/* ================================================================
   EXPERIENCE CARD
   ================================================================ */

.experience-card {
  padding: 2rem;
}

.experience-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.exp-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.exp-meta { flex: 1; }

.exp-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.exp-subtitle {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-bottom: 0;
  line-height: 1.6;
}

.exp-period {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.exp-body {
  position: relative;
  z-index: 2;
}

.exp-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.exp-list li {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.exp-list li::marker { color: var(--accent); }

/* ================================================================
   SKILLS GRID
   ================================================================ */

.skills-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.skill-item-clean {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
}

.skill-item-clean i {
  font-size: 1.75rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.skill-item-clean:hover i {
  transform: scale(1.15);
}

.skill-item-clean span {
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

/* LeetCode */
.leetcode-card {
  padding: 2rem;
}

.leetcode-card h4 {
  font-size: 1.1rem;
}

.leetcode-img {
  border-radius: var(--r-md);
  max-width: 100%;
  margin: 0 auto;
}

/* ================================================================
   CONTACT
   ================================================================ */

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.2s;
}

.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* ================================================================
   BUTTONS (Global)
   ================================================================ */

.btn {
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--r-md);
  padding: 0.6rem 1.35rem;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: var(--accent);
  color: #050505;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  color: #050505;
}

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

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

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

/* ================================================================
   FOOTER
   ================================================================ */

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ================================================================
   SCROLLBAR
   ================================================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ================================================================
   GLOBAL CURSOR EFFECTS
   ================================================================ */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(20px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease; /* Smooth fade for visibility changes */
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
}

/* Hide default cursor to avoid double cursors */
body { cursor: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 992px) {
  .section { padding: 4.5rem 0; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero-terminal { display: none; }
  .about-stats { gap: 1.5rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.25rem; }
  .section-title { font-size: 1.75rem; }
  .card-footer-action { flex-direction: column; }
  .skills-grid-clean { grid-template-columns: repeat(2, 1fr); }
}
