/* ===== CSS Variables ===== */
:root {
  --noir-black: #0a0a0f;
  --noir-dark: #0d1117;
  --noir-navy: #0f1923;
  --noir-blue: #141e2b;
  --noir-steel: #1a2633;
  --noir-slate: #1e2d3d;
  --accent-blue: #2a4a6b;
  --accent-light: #3a6b9f;
  --accent-glow: #4a8fd4;
  --gold: #c9a84c;
  --gold-light: #dfc06e;
  --text-primary: #d4d8e0;
  --text-secondary: #8a94a6;
  --text-muted: #5a6577;
  --border-color: rgba(42, 74, 107, 0.3);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans Pro', -apple-system, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--noir-black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon img {
  width: 45px;
  height: 50px;
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: #fff;
}

.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: var(--text-secondary);
  font-weight: 600;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

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

.btn-login {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
  padding: 8px 20px !important;
  border-radius: 4px;
  color: #fff !important;
  border: 1px solid rgba(74, 143, 212, 0.3);
  transition: all 0.3s !important;
}

.btn-login:hover {
  box-shadow: 0 0 20px rgba(74, 143, 212, 0.3);
  transform: translateY(-1px);
}

.btn-login::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(42, 74, 107, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(20, 30, 43, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, var(--noir-dark) 0%, var(--noir-navy) 50%, var(--noir-black) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 6px;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 20px;
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 6px;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  display: block;
  font-size: 0.35em;
  letter-spacing: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 0.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-style: italic;
  font-weight: 300;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 12px 36px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--noir-black);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.header-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

/* ===== About Section ===== */
.about {
  background: var(--noir-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 60px;
}

.about-card {
  background: var(--noir-navy);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.2);
}

.about-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem;
  background: var(--noir-navy);
  border: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ===== Departments Section ===== */
.departments {
  background: var(--noir-black);
}

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

.dept-card {
  background: var(--noir-dark);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  transition: all 0.4s;
  position: relative;
}

.dept-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.dept-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.dept-card:hover::after {
  transform: scaleX(1);
}

.dept-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(42, 74, 107, 0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.dept-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.dept-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== News Section ===== */
.news {
  background: var(--noir-dark);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.news-card {
  background: var(--noir-navy);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: all 0.3s;
}

.news-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
}

.news-card.featured {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  border-left: 3px solid var(--gold);
}

.news-date {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.news-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-card.featured h3 {
  font-size: 1.6rem;
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.news-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  transition: color 0.3s;
}

.news-link:hover {
  color: var(--gold-light);
}

/* ===== Contact Section ===== */
.contact {
  background: var(--noir-black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.emergency-number {
  font-family: var(--font-heading);
  font-size: 3rem !important;
  font-weight: 900;
  color: #fff !important;
  letter-spacing: 4px;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--noir-dark);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-light);
}

.contact-form select {
  appearance: none;
  cursor: pointer;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
  color: #fff;
  padding: 14px;
  cursor: pointer;
}

.contact-form .btn-primary:hover {
  box-shadow: 0 0 30px rgba(42, 74, 107, 0.4);
}

/* ===== Footer ===== */
.footer {
  background: var(--noir-dark);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 3px;
  margin: 1rem 0 0.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-socials {
  text-align: center;
  padding: 2rem 0 1rem;
}

.footer-socials h4 {
  font-family: var(--font-heading);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.1);
}

.social-link svg {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Login Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--noir-dark);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 420px;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-badge {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.login-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--noir-navy);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}

.login-form input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(58, 107, 159, 0.1);
}

.login-form input::placeholder {
  color: var(--text-muted);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
  accent-color: var(--accent-light);
  width: 16px;
  height: 16px;
}

.form-check label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-login-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-login-submit:hover {
  box-shadow: 0 0 30px rgba(42, 74, 107, 0.5);
  transform: translateY(-1px);
}

.login-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.login-footer a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.login-footer a:hover {
  color: var(--accent-glow);
}

.modal-warning {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-row: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1rem;
  }

  .modal {
    padding: 2rem 1.5rem;
  }
}
