/* ============================================
   BAZM-E-BME - Media Queries / Responsive
   ============================================ */

/* Extra Large Desktops (1400px+) */
@media (min-width: 1400px) {
  .main,
  .container,
  .header-container,
  .footer-container {
    max-width: 1400px;
  }

  .hero-h1 {
    font-size: 4.2rem;
  }

  .section-head h2 {
    font-size: 3.2rem;
  }
}

/* Large Desktops (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-section {
    padding: 120px 60px 100px;
  }
}

/* Medium Desktops / Laptops (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-section {
    padding: 120px 40px 100px;
    gap: 40px;
  }

  .about-section {
    padding: 60px;
  }

  .cards-grid {
    gap: 24px;
  }

  .stats-bar {
    padding: 40px;
    gap: 24px;
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .section {
    padding: 80px 0;
  }

  /* Hero */
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 40px 120px;
    min-height: auto;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    margin-top: 40px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-p {
    margin: 0 auto 32px;
    max-width: 600px;
  }

  .info-card-1 {
    left: -20px;
  }

  .info-card-2 {
    right: -20px;
  }

  .info-card-3 {
    left: -30px;
  }

  .info-card-4 {
    right: -30px;
  }

  .info-card-5 {
    bottom: -30px;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin: -40px 24px 40px;
    padding: 36px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-section {
    padding: 48px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-image::before {
    top: -15px;
    right: -15px;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Phones / Small Tablets (576px - 767px) */
@media (max-width: 767px) {
  .main {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

  .section-head p {
    font-size: 1rem;
  }

  /* Hero */
  .hero-section {
    padding: 80px 24px 100px;
  }

  .hero-h1 {
    font-size: 2rem;
  }

  .hero-p {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 16px;
  }

  .main-image-container img {
    height: 300px;
  }

  .info-card {
    display: none;
  }

  .floating-elements {
    display: none;
  }

  /* Stats */
  .stats-bar {
    margin: -30px 16px 30px;
    padding: 28px;
    gap: 20px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* About */
  .about-section {
    padding: 32px;
    border-radius: 24px;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-image::before {
    display: none;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    border-radius: 20px;
  }

  .card-image {
    height: 200px;
  }

  .card-body {
    padding: 24px;
  }

  .card-body h3 {
    font-size: 1.2rem;
  }

  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .btn-container {
    margin-top: 32px;
  }
}

/* Small Phones (max-width: 575px) */
@media (max-width: 575px) {
  .main {
    padding: 0 12px;
  }

  /* Hero */
  .hero-section {
    padding: 70px 16px 80px;
  }

  .hero-h1 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  .hero-p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .main-image-container img {
    height: 250px;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    margin: -25px 12px 25px;
    padding: 24px 20px;
    gap: 16px;
    border-radius: 20px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Section */
  .section {
    padding: 50px 0;
  }

  .section-head h2 {
    font-size: 1.6rem;
  }

  .section-tag {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  /* About */
  .about-section {
    padding: 24px;
    border-radius: 20px;
  }

  .about-text h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  /* Cards */
  .card-body {
    padding: 20px;
  }

  .card-body h3 {
    font-size: 1.1rem;
  }

  .card-meta {
    font-size: 0.8rem;
  }

  .card-body p {
    font-size: 0.9rem;
  }
}

/* Extra Small Phones (max-width: 374px) */
@media (max-width: 374px) {
  .hero-h1 {
    font-size: 1.5rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

/* Landscape Mode for Phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 60px 40px;
  }

  .hero-h1 {
    font-size: 1.8rem;
  }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .main-image-container img,
  .about-image img,
  .card-image img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dna-strand,
  .float-icon,
  .heartbeat-svg,
  .info-card {
    animation: none;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Uncomment if you want automatic dark mode */
  /*
  :root {
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --white: #1e293b;
  }
  */
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .hero-section,
  .dna-bg,
  .floating-elements,
  .heartbeat-line {
    display: none !important;
  }

  .section {
    padding: 20px 0;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}