/* Import a modern font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

:root {
  --color-text: #6b7280;
  --max-width: 1200px;
  --border-radius: 0.75rem;
  --shadow-light: rgba(0, 0, 0, 0.2);
  --spacing-vertical: 4rem;
  --transition-duration: 0.3s;
}

html {
    scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  line-height: 1.0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  background-color: #0d0202;
  background-image: url('../Images/222.webp');
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

header {
    background: linear-gradient(to right, #000000, #550101);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.logo2 img {
    height: 70px;
    width: auto;
    transition: transform 0.2s;
}

.logo2 img:hover {
    transform: scale(1.05);
}

/* --- Container Details --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: var(--spacing-vertical);
  padding-bottom: var(--spacing-vertical);
}

h1 {
  font-family: 'Public Pixel', sans-serif;
  font-size: 35px;
  color: white;
  font-weight: 700;
  margin-bottom: 3rem;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(207, 4, 4, 0.4);
}

article {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  background: rgba(42, 42, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease, border-color var(--transition-duration) ease;
}

.section:hover {
    transform: translateY(-5px);
    border-color: #cf0404;
    box-shadow: 0 0 30px rgba(207, 4, 4, 0.5);
}

.section:nth-child(odd) {
  grid-template-columns: 1fr 1fr;
  direction: ltr;
}

.section:nth-child(even) {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.section:nth-child(even) .text-content, 
.section:nth-child(even) img {
  direction: ltr;
}

.text-content {
  color: var(--color-text);
}

.text-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.text-content p {
  font-family: 'Merchant Copy', sans-serif;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 30px;
  color: white;
  line-height: 1.2;
}

.img2 {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 6px var(--shadow-light);
  transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
  object-fit: cover;
  max-height: 300px;
  display: block;
  aspect-ratio: 4/3;
}

.img2:hover,
.img2:focus {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(207, 4, 4, 0.4);
  outline: none;
}

footer {
    color: #6b7280;
    font-size: 12px;
    font-family: 'Public Pixel', sans-serif;
    text-align: center;
    padding: 30px;
    background: #111;
    border-top: 1px solid #222;
}

h2 {
    font-family: 'Public Pixel', sans-serif;
    color: #ffffff;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(207, 4, 4, 0.3);
}

/* ==========================================================================
   MOBILE & COMPACT VIEWPORT OPTIMIZATIONS (Under 700px Wide OR Under 608px Tall)
   ========================================================================== */
@media (max-width: 700px), (max-height: 608px) {
  :root {
    --spacing-vertical: 2rem;
  }

  header {
    padding: 12px 15px;
  }

  .logo2 img {
    height: 50px; /* Scaling down the header logo space */
  }

  h1 {
    font-size: 20px; /* Keep main title legible but scaled down */
    margin-bottom: 1.5rem;
    text-align: center;
  }

  article {
    gap: 1.5rem;
  }

  /* Single-column stack layout */
  .section {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .text-content h2 {
    font-size: 16px;
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .text-content p {
    font-size: 20px; /* Balanced sizing for readable body text */
    text-align: left;
    margin-bottom: 0.8rem;
  }

  .img2 {
    max-height: 200px;
    aspect-ratio: 16/10; /* Better aspect ratio match for horizontal displays */
  }

  footer {
    padding: 20px;
    font-size: 10px;
  }
}