/* ==========================================================================
   ALWINTR Executive Milky Way & Cosmic Blue Engineering Theme
   ========================================================================== */

:root {
  --bg-dark: #02040a;
  --bg-darker: #010206;
  --bg-card: rgba(8, 16, 36, 0.78);
  --bg-card-hover: rgba(14, 26, 56, 0.94);
  --border-color: rgba(0, 240, 255, 0.18);
  --border-hover: rgba(0, 240, 255, 0.75);
  
  --primary: #00f0ff;
  --primary-dark: #0284c7;
  --primary-glow: rgba(0, 240, 255, 0.55);
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-glow: rgba(56, 189, 248, 0.6);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  cursor: default;
  background: radial-gradient(ellipse at 50% 5%, #081636 0%, #030712 55%, #010206 100%);
}

/* Custom Cosmic Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 240, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Milky Way Canvas & Overlay */
#galaxy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.cosmic-dust-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

/* Ambient Glowing Nebulae */
.nebula-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  animation: floatNebula 22s infinite alternate ease-in-out;
}

.nebula-1 {
  top: -15%;
  left: -8%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #0284c7, #1e1b4b, transparent 70%);
}

.nebula-2 {
  top: 40%;
  right: -10%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, #00f0ff, #312e81, transparent 70%);
  animation-duration: 28s;
  animation-delay: -6s;
}

.nebula-3 {
  bottom: -15%;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #4338ca, #0369a1, transparent 70%);
  animation-duration: 24s;
  animation-delay: -12s;
}

@keyframes floatNebula {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.18); }
  100% { transform: translate(-40px, -60px) scale(0.92); }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(2, 4, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
  transition: var(--transition);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo-symbol {
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-shadow: 0 0 12px var(--primary-glow);
}

.logo-text .highlight {
  color: var(--primary);
  text-shadow: 0 0 14px var(--primary-glow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-item:hover {
  color: #fff;
  background: rgba(0, 240, 255, 0.12);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  color: #02040a;
  font-weight: 700;
  box-shadow: 0 4px 22px rgba(0, 240, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.7);
}

.btn-secondary {
  background: rgba(10, 102, 194, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.btn-secondary:hover {
  background: #0a66c2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(10, 102, 194, 0.65);
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.btn-tertiary:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
}

.btn-linkedin {
  background: rgba(10, 102, 194, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.btn-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(10, 102, 194, 0.6);
}

.btn-github {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-github:hover {
  background: #1e293b;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Hero Section (Executive Centered Layout)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8.5rem 2rem 5.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-container {
  max-width: 950px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* High-Tech HUD Badge */
.hero-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(8, 20, 48, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.4);
  margin-bottom: 2rem;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.2), inset 0 0 12px rgba(0, 240, 255, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #e2e8f0;
}

.badge-divider {
  color: var(--primary);
  opacity: 0.7;
}

.badge-highlight {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1.2px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 45%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-text {
  filter: drop-shadow(0 0 28px rgba(0, 240, 255, 0.55));
}

.hero-role-prefix {
  font-size: 2.1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.typewriter-text {
  font-size: 2.1rem;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-shadow: 0 0 20px var(--primary-glow);
}

.cursor-blink {
  color: var(--primary);
  animation: blink 1s infinite;
}

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

.hero-description {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2.4rem;
  max-width: 820px;
  line-height: 1.8;
}

.hero-description strong {
  color: #fff;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.highlight-pill {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.highlight-pill:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  padding: 6.5rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.8rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 0.85rem;
  color: #fff;
}

.section-subtitle {
  font-size: 1.08rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   SECTION 1: Domains Grid
   ========================================================================== */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.domain-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.25);
}

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

.domain-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.4rem;
}

.domain-icon-wrap.cyan {
  background: rgba(0, 240, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.domain-icon-wrap.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.domain-icon-wrap.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.domain-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: #fff;
}

.domain-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.domain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.domain-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Text Colors */
.text-cyan { color: var(--primary); }
.text-blue { color: var(--accent-cyan); }
.text-indigo { color: #818cf8; }

/* ==========================================================================
   SECTION 2: Projects Controls & Grid
   ========================================================================== */
.controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #94a3b8;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  color: #02040a;
  border-color: #00f0ff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

.search-box {
  position: relative;
  min-width: 290px;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: rgba(8, 16, 36, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 32px rgba(0, 240, 255, 0.28);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.card-icon.cyan { background: rgba(0, 240, 255, 0.12); color: var(--primary); border: 1px solid rgba(0, 240, 255, 0.35); }
.card-icon.blue { background: rgba(59, 130, 246, 0.12); color: #38bdf8; border: 1px solid rgba(59, 130, 246, 0.35); }
.card-icon.indigo { background: rgba(99, 102, 241, 0.12); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.35); }

.card-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.badge-cyan { background: rgba(0, 240, 255, 0.15); color: #67e8f9; border: 1px solid rgba(0, 240, 255, 0.35); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.35); }
.badge-indigo { background: rgba(99, 102, 241, 0.15); color: #c7d2fe; border: 1px solid rgba(99, 102, 241, 0.35); }
.badge-cat { background: rgba(255, 255, 255, 0.05); color: #94a3b8; border: 1px solid rgba(255, 255, 255, 0.12); }

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #fff;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.card-specs {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.spec-item {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
}

.spec-item strong {
  color: var(--primary);
  font-weight: 600;
}

.card-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-link {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.card-link.btn-glow {
  background: rgba(0, 240, 255, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.card-link.btn-glow:hover {
  background: var(--primary);
  color: #02040a;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.card-link.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-link.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   SECTION 3: Tech Matrix
   ========================================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(14px);
}

.matrix-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 26px rgba(0, 240, 255, 0.22);
}

.matrix-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-head i {
  font-size: 1.5rem;
}

.matrix-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-tag {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  transition: var(--transition);
}

.tech-tag:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

/* ==========================================================================
   SECTION 4: Roadmap Timeline
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, #3b82f6 50%, #6366f1 100%);
  box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #081636;
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 0 18px var(--primary);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -18px;
}

.timeline-item.right .timeline-dot {
  left: -18px;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: var(--transition);
  backdrop-filter: blur(14px);
}

.timeline-content:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 240, 255, 0.25);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.timeline-item.left .timeline-tags {
  justify-content: flex-end;
}

.timeline-tags span {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 240, 255, 0.1);
  color: #67e8f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(2, 4, 10, 0.95);
  padding: 4.5rem 2rem 2.5rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-left p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-btn {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-btn:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.footer-bottom {
  max-width: 1300px;
  margin: 1.8rem auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}

/* ==========================================================================
   Scroll-Triggered Reveals
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-up"] {
  transform: translateY(35px);
}

[data-reveal="fade-right"] {
  transform: translateX(-35px);
}

[data-reveal="fade-left"] {
  transform: translateX(35px);
}

[data-reveal="zoom-in"] {
  transform: scale(0.92);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.2rem; }
  .timeline-line { left: 24px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 4.5rem !important; padding-right: 1rem !important; text-align: left !important; }
  .timeline-item .timeline-dot { left: 6px !important; }
  .timeline-item.left .timeline-tags { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.5rem; }
  .hero-role-prefix, .typewriter-text { font-size: 1.5rem; }
  .cursor-dot, .cursor-ring { display: none; }
  .hero-tech-badge { font-size: 0.72rem; padding: 0.4rem 0.9rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .matrix-grid { grid-template-columns: 1fr; }
  .controls-wrapper { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; min-width: unset; }
}