/* Theme */
:root {
  --bg-950: #0b0d10;
  --bg-900: #0f1216;
  --bg-850: #141922;
  --text: #e6edf3;
  --muted: #97a3b1;
  --primary: #6ea8fe;
  --primary-600: #5088de;
  --accent: #a78bfa;
}

html, body {
  height: 100%;
}
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-950);
  color: var(--text);
  line-height: 1.6;
}

/* Helpers */
.bg-dark-950 { background: var(--bg-950); }
.bg-dark-900 { background: var(--bg-900); }
.tracking { letter-spacing: .15em; color: var(--muted); }
.gradient-text { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-padding { padding: 6rem 0; }
.section-title { font-weight: 800; letter-spacing: -0.02em; }

/* Glass navbar */
.glass-nav { backdrop-filter: saturate(180%) blur(14px); background: rgba(11,13,16,.45); border-bottom: 1px solid rgba(255,255,255,.06); }
.navbar .nav-link { color: #cfd8e3; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: #fff; }

/* Hero */
.hero-section {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background: radial-gradient(1200px 600px at 20% 20%, #1a2130 0%, transparent 60%),
              radial-gradient(1200px 600px at 80% 10%, #1a1630 0%, transparent 60%),
              linear-gradient(180deg, #0d1117 0%, #0b0d10 100%);
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../images/parallax-2.jpg');
  opacity: .06; pointer-events: none;
}
.hero-social a { color: #cfd8e3; margin: 0 .4rem; font-size: 1.25rem; }
.hero-social a:hover { color: #fff; }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); height: 40px; width: 24px; border: 2px solid #cfd8e3; border-radius: 14px; opacity: .6; }
.scroll-indicator span { position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #cfd8e3; border-radius: 2px; animation: scroll 2s infinite; }
@keyframes scroll { 0%{ opacity: 0; transform: translate(-50%,0);} 30%{ opacity:1;} 100%{ opacity:0; transform: translate(-50%,14px);} }

/* Project cards */
.project-card { background: #0f1320; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 10px 30px rgba(0,0,0,.25); overflow: hidden; }
.project-img { height: 180px; background-size: cover; background-position: center; filter: saturate(1.1) contrast(1.05); }
.project-card .card-title { font-weight: 700; }
.project-card .card-body { color: #fff; }
.badge.bg-primary-subtle { background: rgba(110,168,254,.15) !important; }
.badge.bg-success-subtle { background: rgba(34,197,94,.15) !important; }
.badge.bg-warning-subtle { background: rgba(234,179,8,.15) !important; }
.badge.bg-danger-subtle { background: rgba(239,68,68,.15) !important; }
.badge.bg-info-subtle { background: rgba(14,165,233,.15) !important; }
.badge.bg-secondary-subtle { background: rgba(148,163,184,.15) !important; }
.badge.bg-dark-subtle { background: rgba(15,23,42,.25) !important; }

/* Parallax sections */
.parallax { position: relative; background-attachment: fixed; background-size: cover; background-position: center; }
.parallax.parallax-2 { background-image: linear-gradient(rgba(12,14,18,.5), rgba(12,14,18,.8)), url('../images/parallax-2.jpg'); }
.parallax .overlay { position:absolute; inset:0; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.65) 100%); pointer-events:none; }

/* Timeline */
.timeline { position: relative; margin-left: 1rem; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 10px; width: 2px; background: rgba(255,255,255,.12); }
.timeline-item { position: relative; padding-left: 2.5rem; margin-bottom: 2rem; }
.timeline-dot { position: absolute; left: 2px; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(110,168,254,.2); }
.timeline-content h5 { margin-bottom: .25rem; font-weight: 700; }
.timeline .text-muted { color: var(--muted) !important; }

/* Skills */
.skill-pill { display: inline-block; width: 100%; text-align: center; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border-radius: 999px; font-weight: 600; }

/* Contact */
.contact-card { background: #0f1320; border: 1px solid rgba(255,255,255,.06); }
.social-links a { color: #cfd8e3; text-decoration: none; }
.social-links a:hover { color: #fff; }

/* Buttons */
.btn-primary { background: var(--primary-600); border-color: var(--primary-600); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,.06); }

/* Responsive */
@media (max-width: 991.98px) {
  .section-padding { padding: 4.5rem 0; }
  .project-img { height: 160px; }
}
@media (max-width: 575.98px) {
  .hero-section .display-4 { font-size: 2rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .parallax { background-attachment: scroll; }
  .scroll-indicator span { animation: none; }
}
