/* 1. VARIABLES & RESET */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1623;
  --bg-card: #111827;
  --accent: #00d4ff;
  --accent2: #7c3aed;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --text-primary: #e2e8f0;
  --text-muted: #64748b;
  --border: rgba(0, 212, 255, 0.12);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
  --red-accent: #ff3e3e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. BASE STYLES */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
}

h1, h2, h3 {
  font-family: var(--sans);
  color: #fff;
}

/* 3. NAVIGATION */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: rgba(10, 14, 23, 0.85) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.navbar-brand {
  font-family: "Arial Black", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
  color: #bb000e;
  text-shadow: 1px 1px 0px #000;
  font-weight: 700;
}

.navbar-brand span { color: #fff; }

.nav-link {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
}

/* 4. HERO SECTION */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}

.hero-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--red-accent);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s ease both;
}

.hero-name .accent-blue {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.hero-name .accent {
  color: var(--red-accent);
  text-shadow: 0 0 15px rgba(255, 62, 62, 0.4);
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--red-accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 10px rgba(255, 62, 62, 0.8);
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2rem;
  animation: fadeUp 0.6s 0.3s ease both;
}

.tech-badge {
  background-color: var(--red-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--red-accent);
}

.tech-badge:hover {
  background-color: transparent;
  color: var(--red-accent);
  box-shadow: 0 0 10px rgba(255, 62, 62, 0.4);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}

.btn-primary-custom {
  background: var(--accent);
  color: #000;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary-custom:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline-custom:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* 5. PROJECTS SECTION */
.featured-projects {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,23,0.95) 0%, transparent 60%);
}

.project-body {
  padding: 1.5rem;
}

.project-category {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.stack-pill {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 4px;
  color: var(--text-muted);
}

/* 6. SEE MORE ANIMATIONS */
.see-more-wrap {
  transition: opacity 0.4s ease;
}

.more-projects-btn {
  background-color: transparent;
  color: #fff;
  padding: 1rem 2rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.3s ease;
}

.more-projects-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* The class your JS adds */
.reveal-item {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

footer .copy {
  font-family: var(--mono);
  font-size: 0.8rem;
 color: #bb000e;
  display: block;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin: 0 0.6rem;
  transition: all 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 7. SCROLL HINT */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 1s 1s ease both;
}

.scroll-hint span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}