/* ============================================
   GBI - Good Boji's Industries - Main Stylesheet
   Futuristic High-Tech Black & Red Theme
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0d0d0d;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --red-primary: #e63946;
  --red-glow: #ff1a2d;
  --red-dark: #9b1d28;
  --red-dim: #4a1018;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-dim: #666666;
  --border-color: #1a1a1a;
  --border-glow: rgba(230, 57, 70, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Canvas Background --- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Ambient backdrop — red haze behind everything (all pages) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% -8%, rgba(230, 57, 70, 0.10), transparent 65%),
    radial-gradient(40% 32% at 100% 102%, rgba(230, 57, 70, 0.06), transparent 70%),
    radial-gradient(40% 32% at 0% 102%, rgba(155, 29, 40, 0.06), transparent 70%);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--red-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-primary);
}

/* --- Selection --- */
::selection {
  background: var(--red-primary);
  color: #fff;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px rgba(230, 57, 70, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--red-primary);
  position: relative;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--bg-card);
  transition: all var(--transition-smooth);
}

.nav-logo:hover .logo-icon {
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.5), 0 0 40px rgba(230, 57, 70, 0.2);
  border-color: var(--red-glow);
}

.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav-logo .logo-text span {
  color: var(--red-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-links a.active {
  color: var(--red-primary);
}

.nav-cta {
  background: var(--red-primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: all var(--transition-smooth) !important;
}

.nav-cta:hover {
  background: var(--red-glow) !important;
  box-shadow: 0 0 25px rgba(230, 57, 70, 0.4);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MAIN CONTENT WRAPPER
   ============================================ */
.content-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 70px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(230, 57, 70, 0.03) 0%,
    transparent 70%
  );
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--red-primary);
  margin-bottom: 2rem;
  background: rgba(230, 57, 70, 0.05);
  animation: fadeInUp 1s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-title .accent {
  color: var(--red-primary);
  text-shadow: 0 0 40px rgba(230, 57, 70, 0.4);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--red-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-glow);
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--red-primary);
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  animation: bounceDown 2s ease-in-out infinite;
}

.scroll-indicator .line {
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, var(--red-primary), transparent);
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--red-primary);
  margin-bottom: 1rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--red-dim);
  background: rgba(230, 57, 70, 0.03);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.section-title .accent {
  color: var(--red-primary);
}

.section-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   FEATURES / SERVICES GRID
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(230, 57, 70, 0.05);
  background: var(--bg-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border: 1px solid var(--red-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  border-radius: 4px;
  background: rgba(230, 57, 70, 0.05);
  color: var(--red-primary);
  transition: all var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
  border-color: var(--red-primary);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-card-hover), var(--red-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, var(--bg-card));
}

.project-image .project-icon {
  opacity: 0.3;
}

.project-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.project-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--red-dim);
  border-radius: 3px;
  color: var(--red-primary);
  background: rgba(230, 57, 70, 0.05);
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.project-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.project-links .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

/* ============================================
   STATS
   ============================================ */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--red-primary);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  margin: 4rem 0;
  padding: 4rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.about-hero {
  text-align: center;
  padding: 6rem 2rem 3rem;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.about-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual .hex-grid {
  font-size: 8rem;
  opacity: 0.1;
  color: var(--red-primary);
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--red-primary);
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Timeline */
.timeline {
  margin-top: 4rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--red-dim), transparent);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--red-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
  flex-shrink: 0;
  margin-top: 0.4rem;
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
  max-width: 45%;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-content .year {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--red-primary);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-content p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ============================================
   NEWS PAGE
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all var(--transition-smooth);
}

.news-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.news-date {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--red-primary);
  margin-bottom: 0.75rem;
}

.news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.news-card .read-more {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.news-card .read-more:hover {
  color: var(--red-glow);
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-detail {
  max-width: 900px;
  margin: 0 auto;
}

.project-detail-header {
  margin-bottom: 3rem;
}

.project-detail-header .project-tags {
  margin-bottom: 1rem;
}

.project-detail-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.project-detail-header .meta {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.project-detail-body {
  color: var(--text-secondary);
  line-height: 1.9;
}

.project-detail-body h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.project-detail-body p {
  margin-bottom: 1rem;
}

/* Code block styling */
.code-block {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  color: #e0e0e0;
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: '// GBI Project Code';
  display: block;
  color: var(--red-primary);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.code-block .keyword { color: var(--red-primary); }
.code-block .string { color: #98c379; }
.code-block .comment { color: #5c6370; font-style: italic; }
.code-block .function { color: #61afef; }

/* Download card */
.download-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.download-card .dl-icon {
  font-size: 2.5rem;
}

.download-card .dl-info {
  flex: 1;
}

.download-card .dl-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.download-card .dl-info span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  background: var(--bg-secondary);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand .logo-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--red-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--red-primary);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--bg-card);
  margin-bottom: 1rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--red-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .accent {
  color: var(--red-primary);
}

/* ============================================
   PAGE HERO (subpages)
   ============================================ */
.page-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.page-hero .section-label {
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.page-hero h1 .accent {
  color: var(--red-primary);
}

.page-hero p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
  }
  .timeline-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border-color);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }

  .projects-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem 4rem;
  }
  .scroll-indicator .line {
    height: 18px;
  }
  .section {
    padding: 4rem 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   GLITCH EFFECT (for special elements)
   ============================================ */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitchTop 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  color: var(--red-primary);
  opacity: 0.5;
  left: 2px;
}

.glitch-text::after {
  animation: glitchBottom 2.5s infinite linear alternate-reverse;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  color: var(--red-primary);
  opacity: 0.5;
  left: -2px;
}

@keyframes glitchTop {
  0%, 100% { transform: translate(0); }
  50% { transform: translate(-2px, -1px); }
}

@keyframes glitchBottom {
  0%, 100% { transform: translate(0); }
  50% { transform: translate(2px, 1px); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(230, 57, 70, 0.05);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

.contact-card .btn {
  font-size: 0.85rem;
  word-break: break-all;
  white-space: normal;
  justify-content: center;
}

/* ============================================
   WALL PAGE — PASSCODE GATE
   ============================================ */
.wall-body {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.wall-gate {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.wall-gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
}

.wall-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

.wall-lock {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.wall-gate-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.wall-gate-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.passcode-boxes {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.passcode-input {
  width: 48px;
  height: 56px;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--red-primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-fast);
  caret-color: var(--red-primary);
}

.passcode-input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

.passcode-input.filled {
  border-color: var(--red-dark);
  background: rgba(230, 57, 70, 0.05);
}

.wall-gate-error {
  color: var(--red-primary);
  font-size: 0.85rem;
  min-height: 1.5rem;
  margin-bottom: 1rem;
}

.wall-name-input {
  width: 100%;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.wall-name-input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
}

/* ============================================
   WALL CHAT
   ============================================ */
.wall-chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  max-width: 1200px;
  margin: 0 auto;
}

.wall-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 10, 10, 0.6);
  flex-wrap: wrap;
}

.wall-chat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wall-chat-title h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.wall-pulse {
  width: 10px;
  height: 10px;
  background: var(--red-primary);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

.wall-live-tag {
  color: var(--red-primary);
  font-size: 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

.wall-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wall-btn {
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
}

.wall-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wall-btn.on {
  border-color: var(--red-primary);
  color: var(--red-primary);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.25);
}

/* Panic button — kicks everyone out of the wall */
.wall-panic-btn {
  border-color: var(--red-dark);
  color: var(--red-primary);
}

.wall-panic-btn:hover {
  background: rgba(230, 57, 70, 0.12);
  border-color: var(--red-primary);
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.35);
}

/* Camera-off / no-video placeholder in the local preview */
.wall-video-off {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
}

.wall-video-wrap video[style*="display: none"] ~ .wall-video-label {
  /* keep label visible above placeholder */
}

.wall-video-wrap.local.speaking {
  border-color: var(--red-primary);
  box-shadow: 0 0 18px rgba(230, 57, 70, 0.4);
}

/* Call videos */
.wall-call-area {
  background: #000;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}

.wall-videos {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.wall-video-wrap {
  position: relative;
  width: 280px;
  height: 180px;
  background: #111;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.wall-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wall-video-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

/* Chat body */
.wall-chat-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.wall-users {
  width: 200px;
  border-right: 1px solid var(--border-color);
  padding: 1rem;
  overflow-y: auto;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.wall-users h4 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.wall-users ul {
  list-style: none;
}

.wall-users li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.4rem 0;
  font-family: var(--font-heading);
}

.wall-users li em {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.wall-users li .user-name {
  transition: all 0.15s ease;
}

/* Talking indicator — the speaker's name glows red */
.wall-users li.speaking .user-name {
  color: #ff6b75;
  text-shadow:
    0 0 8px rgba(255, 26, 45, 0.9),
    0 0 20px rgba(230, 57, 70, 0.6),
    0 0 34px rgba(230, 57, 70, 0.35);
  animation: nameShine 0.8s ease-in-out infinite;
}

.wall-users li.speaking .user-dot {
  background: #ff1a2d;
  box-shadow: 0 0 12px rgba(255, 26, 45, 0.9);
}

@keyframes nameShine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.user-dot {
  width: 7px;
  height: 7px;
  background: #2ecc71;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.6);
}

.wall-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wall-message {
  max-width: 70%;
  animation: fadeInUp 0.3s ease;
}

.wall-message.system {
  max-width: 100%;
  text-align: center;
}

.wall-message .sys-text {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}

.wall-msg-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.wall-msg-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--red-primary);
}

.wall-message.own .wall-msg-name {
  color: #2ecc71;
}

.wall-msg-time {
  color: var(--text-dim);
  font-size: 0.65rem;
}

.wall-msg-text {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  word-break: break-word;
  display: inline-block;
}

.wall-message.own .wall-msg-text {
  background: rgba(230, 57, 70, 0.08);
  border-color: var(--red-dim);
}

.wall-msg-image {
  max-width: 320px;
  max-height: 260px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: block;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.wall-msg-image:hover {
  transform: scale(1.02);
}

/* Chat input */
.wall-chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(10, 10, 10, 0.6);
}

.wall-chat-input input[type="text"] {
  flex: 1;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.wall-chat-input input[type="text"]:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.15);
}

.wall-icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wall-icon-btn:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.2);
}

.wall-send-btn {
  background: var(--red-primary);
  color: #fff;
  border-color: var(--red-primary);
}

.wall-send-btn:hover {
  background: var(--red-glow);
  border-color: var(--red-glow);
}

/* Project placeholder (loading) */
.project-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 3rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.project-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   ADMIN / BLOG EDITOR
   ============================================ */
.admin-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.admin-form-card,
.admin-posts-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
}

.admin-form-card h3,
.admin-posts-list h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.admin-form-row {
  margin-bottom: 1rem;
}

.admin-form-row label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.admin-input,
.admin-textarea {
  width: 100%;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.admin-textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.7;
}

.admin-input:focus,
.admin-textarea:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.15);
}

.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.admin-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  min-height: 1.25rem;
}

.admin-status.success {
  color: #2ecc71;
}

.admin-status.error {
  color: var(--red-primary);
}

.admin-post-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
}

.admin-post-card:hover {
  border-color: var(--border-glow);
}

.admin-post-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-post-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.admin-post-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-post-actions .btn {
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
}

.admin-loading,
.admin-empty {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
}

@media (max-width: 900px) {
  .admin-container {
    grid-template-columns: 1fr;
  }
  .wall-users {
    display: none;
  }
  .wall-message {
    max-width: 90%;
  }
  .passcode-input {
    width: 40px;
    height: 48px;
    font-size: 1.2rem;
  }
  .wall-video-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
