/* Black Box Training - Main Stylesheet */
/* Colors match logo: Black, Red, White, Metallic */

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --charcoal: #1a1a1a;
  --red: #c41e3a;
  --red-dark: #9a1830;
  --red-light: #e63950;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray: #a0a0a0;
  --silver: #c0c0c0;
  --metallic: #8a8a8a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--black);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: #d0d0d0;
}

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

a:hover {
  color: var(--red);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 30, 58, 0.3);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.logo-text span {
  color: var(--red);
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--red);
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  color: var(--white) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  background: 
    linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(20,10,12,0.88) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(196, 30, 58, 0.15) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.05));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  background: rgba(196, 30, 58, 0.15);
  border: 1px solid rgba(196, 30, 58, 0.4);
  color: var(--red-light);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hero h1 .accent {
  color: var(--red);
}

.hero-sub {
  font-size: 1.2rem;
  color: #c0c0c0;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 30, 58, 0.35);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* Section Styling */
section {
  padding: 5rem 0;
}

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

.section-header h2 {
  color: var(--white);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray);
}

.section-label {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 30, 58, 0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(196, 30, 58, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  color: var(--red);
}

.card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin-bottom: 0;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image {
  background: var(--charcoal);
  border-radius: 12px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.credential {
  background: rgba(196, 30, 58, 0.08);
  border-left: 3px solid var(--red);
  padding: 0.9rem 1.1rem;
}

.credential strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}

.credential span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Programs */
.program-card {
  background: var(--charcoal);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

.program-header {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding: 1.5rem 1.75rem;
}

.program-header h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.program-header p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 0.9rem;
}

.program-body {
  padding: 1.75rem;
}

.program-body ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.program-body li {
  padding: 0.45rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #c8c8c8;
  font-size: 0.95rem;
}

.program-body li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}

/* Social Page */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.social-card {
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: all 0.25s ease;
}

.social-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.social-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.social-card h3 {
  margin-bottom: 0.5rem;
}

.social-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.social-link {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.social-link:hover {
  background: var(--red-light);
  color: var(--white);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.contact-item span, .contact-item a {
  color: #b0b0b0;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--charcoal);
  padding: 2.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #d0d0d0;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--red);
}

.cta-banner .btn-primary:hover {
  background: var(--off-white);
  color: var(--red-dark);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Footer */
footer {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #a0a0a0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--dark);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(196, 30, 58, 0.3);
    gap: 1.25rem;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .credentials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}