/* ============================================
   DARK THEME — Charcoal + Teal + Orange
   ============================================ */

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

:root {
  --bg:           #1c1f26;
  --bg-surface:   #22262f;
  --bg-card:      #2a2e38;
  --bg-elevated:  #323741;
  --text:         #e8e4de;
  --text-muted:   #8a8f9a;
  --text-dim:     #5c6070;
  --accent:       #5ce0c2;
  --accent-hover: #7df0d6;
  --accent-glow:  rgba(92, 224, 194, 0.12);
  --warm:         #f97316;
  --warm-hover:   #fb923c;
  --warm-glow:    rgba(249, 115, 22, 0.12);
  --border:       #363b46;
  --border-light: #404650;
  --radius:       8px;
  --radius-lg:    16px;
  --max-width:    900px;
  --max-width-wide: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body:not(.loaded) { overflow: hidden; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warm), var(--accent));
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* ===== WEBGL CANVAS ===== */
#webgl-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ===== FLOATING SHAPES ===== */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border: 1px solid rgba(92, 224, 194, 0.06);
  border-radius: 50%;
}

.shape-1 {
  width: 400px; height: 400px;
  top: 15%; right: -120px;
  animation: shape-float 25s ease-in-out infinite;
}
.shape-2 {
  width: 250px; height: 250px;
  bottom: 25%; left: -80px;
  animation: shape-float 20s ease-in-out infinite reverse;
  animation-delay: -7s;
}
.shape-3 {
  width: 180px; height: 180px;
  top: 55%; right: 15%;
  border-color: rgba(249, 115, 22, 0.05);
  animation: shape-float 22s ease-in-out infinite;
  animation-delay: -12s;
}
.shape-4 {
  width: 120px; height: 120px;
  top: 8%; left: 20%;
  border-color: rgba(92, 224, 194, 0.04);
  animation: shape-float 18s ease-in-out infinite reverse;
  animation-delay: -4s;
}

@keyframes shape-float {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-40px) rotate(90deg) scale(1.05); }
  50% { transform: translateY(20px) rotate(180deg) scale(0.95); }
  75% { transform: translateY(-20px) rotate(270deg) scale(1.02); }
}

/* All main content above canvas */
.navbar, main, footer { position: relative; z-index: 2; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--text); }
h1 { font-size: 3rem; }
h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ===== LOADING SCREEN ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.loaded { opacity: 0; visibility: hidden; }

.loader-text {
  font-family: 'Satoshi', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-bar {
  width: 80px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.loader-progress {
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  animation: loader-slide 1s ease-in-out infinite alternate;
}

@keyframes loader-slide {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(200%); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(28, 31, 38, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(28, 31, 38, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-logo {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

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

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(92, 224, 194, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

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

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

.hero-heading {
  margin-bottom: 1.5rem;
}

.hero-heading .text-line {
  display: block;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  perspective: 600px;
}

.hero-heading .text-line .char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-heading .text-line.accent {
  background: linear-gradient(135deg, var(--accent), #3ba896);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-heading .text-line.accent .char {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, var(--accent), #3ba896);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.4rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-sub strong { color: var(--text-muted); font-weight: 600; }

.hero-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: -6rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ===== MARQUEE TICKER ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  background: rgba(34, 38, 47, 0.3);
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

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

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex-shrink: 0;
}

.marquee-item {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee-item:hover { color: var(--accent); }

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== STATS ===== */
.stats {
  border-bottom: 1px solid var(--border);
  background: rgba(34, 38, 47, 0.5);
  backdrop-filter: blur(8px);
}

.stats-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.stat-suffix {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* ===== SECTION STYLES ===== */
section { padding: 6rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--accent);
}

/* ===== ABOUT ===== */
.about-content {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 660px;
}
.about-content p { margin-bottom: 1.3rem; }
.about-content strong { color: var(--text); font-weight: 600; }

/* ===== PRODUCT SHOWCASE ===== */
.product-showcase {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.04), rgba(92, 224, 194, 0.02));
}

.product-hero { max-width: 660px; }

.product-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, var(--warm), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-tagline {
  font-size: 0.9rem;
  color: var(--warm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.product-description {
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.product-features {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.product-feature { text-align: center; }

.feature-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--warm);
  letter-spacing: -0.03em;
}

.feature-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.product-cta { margin-bottom: 2rem; }

.btn-warm {
  background: var(--warm);
  color: #fff;
  padding: 0.75rem 1.8rem;
  font-size: 0.98rem;
}
.btn-warm:hover {
  background: var(--warm-hover);
  color: #fff;
  box-shadow: 0 0 30px var(--warm-glow), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.product-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.tech-tag:hover {
  border-color: var(--warm);
  color: var(--warm);
}

@media (max-width: 600px) {
  .product-features { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .product-title { font-size: 2rem; }
}

/* ===== EXPERIENCE TIMELINE ===== */
.experience { padding: 6rem 0; }

.timeline {
  position: relative;
  padding-left: 2.2rem;
}

.timeline-line {
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--warm), var(--accent));
  border-radius: 1px;
  transform-origin: top;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.8rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -2.2rem;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: background 0.3s, box-shadow 0.3s;
}
.timeline-item:hover .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
  font-weight: 700;
}
.timeline-role {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}
.timeline-date {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  line-height: 1.65;
}

/* ===== PROJECTS ===== */
.projects { padding: 6rem 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  color: var(--text);
  display: block;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  transition: background 0.3s;
}

/* Card shine sweep on hover */
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 3;
}
.project-card:hover::after {
  left: 160%;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
  color: var(--text);
}

.project-card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; position: relative; z-index: 1; }
.project-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.project-tech {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.project-card.featured {
  border-color: var(--warm);
  background: linear-gradient(135deg, var(--bg-card), rgba(249, 115, 22, 0.05));
  animation: featured-glow 3s ease-in-out infinite alternate;
}
.project-card.featured:hover {
  border-color: var(--warm-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 50px var(--warm-glow);
  animation: none;
}
.project-card.featured .project-tech { color: var(--warm); }

@keyframes featured-glow {
  0% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.08), 0 0 30px rgba(249, 115, 22, 0.04); }
  100% { box-shadow: 0 0 25px rgba(249, 115, 22, 0.15), 0 0 50px rgba(249, 115, 22, 0.08); }
}

.project-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--warm);
  background: var(--warm-glow);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

/* ===== BLOG POSTS ===== */
.latest-posts, .blog-listing { padding: 6rem 0; }
.blog-intro { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

.posts-grid, .posts-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  color: var(--text);
}
.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
  color: var(--text);
}

.post-card-image {
  width: 220px;
  min-height: 140px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-card-body { padding: 1.3rem; }
.post-card-body time { font-size: 0.78rem; color: var(--text-dim); }
.post-card-body h3 { margin: 0.3rem 0 0.5rem; font-size: 1.15rem; }
.post-card-body p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

.no-posts { color: var(--text-dim); font-style: italic; }

/* ===== BLOG POST (single) ===== */
.blog-post { padding: 6rem 0 3rem; }

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.back-link { font-size: 0.92rem; color: var(--text-muted); }
.back-link:hover { color: var(--accent); }
.post-header time { font-size: 0.85rem; color: var(--text-dim); }

.post-content h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.post-content h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.75rem; }

.post-content p { margin-bottom: 1.2rem; color: var(--text-muted); font-size: 1.08rem; line-height: 1.75; }
.post-content strong { color: var(--text); }

.post-content ul, .post-content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; color: var(--text-muted); font-size: 1.05rem; }

.post-content img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.post-content img.banner { width: 100%; max-height: 380px; object-fit: cover; margin-bottom: 2rem; border-radius: var(--radius-lg); }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
}

.post-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--accent);
}

.post-content pre {
  background: #15171c;
  color: #e8e3dd;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.post-content pre code { background: none; padding: 0; color: inherit; }

.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-content th, .post-content td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.post-content th { color: var(--text); font-weight: 600; }
.post-content td { color: var(--text-muted); }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-container { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 1.5rem; }
.footer p { color: var(--text-dim); font-size: 0.85rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 5rem 0 3rem; min-height: auto; }
  .hero-heading .text-line { font-size: clamp(2.8rem, 8vw, 4.5rem); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card { flex-direction: column; }
  .post-card-image { width: 100%; max-height: 180px; }
  .stats-container { gap: 2rem; }
  .stat-number { font-size: 2.2rem; }
  .scroll-indicator { display: none; }
  .shape-1, .shape-4 { display: none; }
}

@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
  .stats-container { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 50px; height: 1px; }
  .shape { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 4rem 0 2rem; }
  .hero-heading .text-line { font-size: 2.5rem; }
  .hero-links { flex-direction: column; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.85rem; }
  section { padding: 4rem 0; }
}
