/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary-red: #c62828; /* The brand red */
  --primary-hover: #b71c1c;
  --dark-bg: #121212;
  --card-bg: #1e1e1e;
  --light-text: #f4f4f4;
  --gray-text: #aaa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* =========================================
   2. ANIMATIONS
   ========================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================
   3. NAVIGATION HEADER
   ========================================= */
header {
  background-color: black;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo span {
  color: white;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1rem;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-red);
}

/* =========================================
   4. LAYOUT UTILITIES
   ========================================= */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 40px 0;
  animation: fadeIn 1s ease-out;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-red);
  color: white;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

/* =========================================
   5. HERO SECTION (HOME)
   ========================================= */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
    url("https://picsum.photos/1920/1080?grayscale");
  background-size: cover;
  background-position: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  animation: slideInLeft 1s ease-out;
  line-height: 1.2;
}

.hero span {
  color: var(--primary-red);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  color: #ddd;
  animation: fadeIn 1.5s ease-out;
}

/* =========================================
   6. NEWS GRID & CARDS
   ========================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.news-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
  border-color: var(--primary-red);
}

.news-card img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: var(--primary-red);
  font-size: 1.3rem;
  text-align: center;
}

.date {
  font-size: 0.8rem;
  color: var(--gray-text);
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   7. ABOUT SECTION
   ========================================= */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  text-align: center;
  min-width: 300px;
}

.about-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 50%;
  border: 5px solid var(--primary-red);
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.3);
  animation: fadeIn 2s ease;
}

/* =========================================
   8. CONTACT PAGE STYLES
   ========================================= */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  flex: 1.5;
  min-width: 300px;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: #121212;
  border: 1px solid #444;
  color: white;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

.info-item {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.icon-box {
  background-color: var(--primary-red);
  width: 40px;
  height: 40px;
  min-width: 40px; /* prevent shrinking */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
  background-color: black;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
  border-top: 1px solid #333;
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* =========================================
   10. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul {
    margin-top: 15px;
    gap: 15px;
  }

  nav ul li {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content,
  .contact-wrapper {
    flex-direction: column;
  }

  .about-image {
    order: -1; /* Moves image to top on mobile */
  }
}
