:root {
  --primary-color: #c10005;
  --accent-color: #f40006;
  --dark-bg: #000000;
  --card-bg: #0a0a0a;
  --text-color: #e0e0e0;
  --text-muted: #a0a0a0;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
  box-shadow: 0 0 10px var(--accent-color);
}

.alt-bg {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(193, 0, 5, 0.05),
    transparent
  );
}

/* Matrix Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

/* Header */
.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(193, 0, 5, 0.3);
  backdrop-filter: blur(5px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  max-width: 1400px;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 60px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 5px var(--primary-color);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
  z-index: 1;
}

.glitch-text {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 2px 2px var(--primary-color);
  animation: glitch 3s infinite;
}

.typing-effect {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-right: 2px solid var(--accent-color);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #ccc;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.btn {
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 15px rgba(193, 0, 5, 0.5);
}

.btn-primary:hover {
  background: var(--accent-color);
  box-shadow: 0 0 25px rgba(244, 0, 6, 0.8);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(193, 0, 5, 0.1);
  color: #fff;
  border-color: #fff;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-subsection {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-left: 3px solid var(--primary-color);
}

.about-subsection h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.identity-list {
    list-style: none;
}

.identity-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.identity-list i {
    color: var(--accent-color);
}

.about-closing {
    font-weight: bold;
    color: #fff;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Programs Section */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.4s;
  text-align: center;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(193, 0, 5, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Why It Matters */
.why-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.why-text {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
}

.why-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-list i {
  color: var(--accent-color);
}

.impact-counters {
  flex: 1;
  display: flex;
  justify-content: space-around;
  min-width: 300px;
}

.counter-item {
  text-align: center;
}

.counter {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-color);
  font-family: var(--font-heading);
}

/* Collaboration */
.collab-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  text-align: center;
  margin-bottom: 40px;
}

.collab-content {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.collab-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ddd;
}

.collab-cta-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.center-btn {
  text-align: center;
}

/* Join Section */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../images/logo_shield.png") no-repeat center center;
  background-size: cover;
  text-align: center;
  padding: 100px 20px;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer Redesign */
.main-footer {
    background: #050505;
    position: relative;
    padding-top: 60px;
    padding-bottom: 20px;
    background-image: 
        linear-gradient(rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.95)),
        linear-gradient(90deg, rgba(193, 0, 5, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(193, 0, 5, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

.footer-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: border-pulse 3s infinite;
}

@keyframes border-pulse {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 5px var(--primary-color); }
    50% { opacity: 1; box-shadow: 0 0 15px var(--accent-color); }
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-color);
}

/* Brand Column */
.footer-logo {
    margin-bottom: 15px;
    width: 30px;
    height: auto;
    object-fit: contains;
}

.tagline {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.footer-desc {
    color: #888;
    font-size: 0.9rem;
    max-width: 350px;
}

/* Links */
.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
    text-shadow: 0 0 8px rgba(244, 0, 6, 0.6);
}

/* Contact */
.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-logo-img {
  height: 90px;
  width: auto;
  margin-bottom: 10px;
}

/* Social */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    border-color: var(--accent-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(193, 0, 5, 0.5);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Animations */
.scroll-fade-in,
.scroll-slide-up {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
}

.scroll-slide-up {
  transform: translateY(30px);
}

.scroll-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .glitch-text {
    font-size: 2.5rem;
  }
  .navbar {
    flex-direction: column;
    gap: 20px;
  }
  .nav-links {
    gap: 15px;
  }
  .why-content {
    flex-direction: column;
  }
  .why-text {
    padding-right: 0;
    margin-bottom: 40px;
  }
  .collab-grid {
    flex-direction: column;
    gap: 30px;
  }
  
  /* Footer Mobile */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-logo, .social-links {
    justify-content: center;
    align-items: center;
  }
  .footer-desc {
    margin: auto;
  }
  .contact-list li {
    justify-content: center;
  }
}
