/* =============================================================================
   AREF - Responsive Design Media Queries
   All responsive styles consolidated in one file
   ============================================================================= */

/* Extra Large Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
    padding: 0 3rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1.3rem;
  }
}

/* Large Screens */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding: 0 2rem;
  }

  /* .hero-title {
    font-size: 3rem;
  } */

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

  .content-tracks {
    grid-template-columns: repeat(3, 1fr);
  }

  .speakers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sponsors-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .trusted-partners-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

/* Medium Screens */
@media (max-width: 992px) {
  .container {
    max-width: 800px;
    padding: 0 1.5rem;
  }

  .right {
    display: none;
  }

  /* .hero-title {
    font-size: 2.8rem;
  } */

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-date {
    flex-direction: column;
    gap: 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

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

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

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

  .partner-benefits {
    grid-template-columns: 1fr;
  }

  .sponsors-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .trusted-partners-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

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

/* Small Screens */
@media (max-width: 768px) {
  .container {
    max-width: 600px;
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .section-padding-lg {
    padding: 4rem 0;
  }

  /* .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  } */

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-date {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-stats {
    position: static;
    transform: none;
    margin-top: 2rem;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .about-title,
  .content-focus-title,
  .speakers-title,
  .partner-title,
  .contact-title {
    font-size: 2rem;
  }

  .about-subtitle,
  .content-focus-description {
    font-size: 1rem;
  }

  .about-feature {
    padding: 1.5rem;
  }

  .content-tracks {
    grid-template-columns: 1fr;
  }

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

  .speaker-card {
    padding: 1.5rem;
  }

  .partner-benefit {
    padding: 1.5rem;
  }

  .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .trusted-partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }

  .nav-container {
    padding: 0.8rem 0;
  }

  /* .logo {
    width: 50px;
    height: 50px;
  } */

  .aside-menu {
    width: 280px;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-event-info {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section-header .description {
    font-size: 0.9rem;
    max-width: 100%;
    margin: 0 auto;
  }

  #scroll-top {
    width: 45px;
    height: 45px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Extra Small Screens */
@media (max-width: 576px) {
  .container {
    padding: 0 0.5rem;
  }

  /* .hero-title {
    font-size: 1.8rem;
  } */

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-date {
    font-size: 0.9rem;
  }

  .hero-content {
    padding: 0 1rem;
    max-width: 100%;
  }

  /* .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  } */

  .about-title,
  .content-focus-title,
  .speakers-title,
  .partner-title,
  .contact-title {
    font-size: 1.8rem;
  }

  .about-feature,
  .partner-benefit,
  .contact-card {
    padding: 1rem;
  }

  .about-feature-icon,
  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .partner-benefit-icon {
    width: 40px;
    height: 40px;
  }

  .speaker-card {
    padding: 1rem;
  }

  .speaker-image {
    width: 100px;
    height: 100px;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .trusted-partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.7rem;
  }

  .aside-menu {
    width: 260px;
    padding: 1.5rem;
  }

  .modal-overlay .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-overlay #countdown {
    font-size: 2rem;
  }
}

/* Landscape Phones */
@media (max-width: 768px) and (orientation: landscape) {
  #hero-section {
    height: auto;
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 2rem;
  }

  /* .hero-title {
    font-size: 2rem;
  } */

  .hero-stats {
    position: static;
    transform: none;
    margin-top: 2rem;
    flex-direction: row;
    gap: 2rem;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: black !important;
  }

  .nav-container,
  .hamburger,
  .aside-menu,
  #scroll-top,
  .modal-overlay {
    display: none !important;
  }

  .hero-bg::before {
    display: none !important;
  }

  .hero-content {
    color: black !important;
  }

  .hero-title,
  .hero-subtitle,
  .hero-description,
  .hero-date {
    color: black !important;
  }

  a {
    text-decoration: underline !important;
  }

  .container {
    max-width: none !important;
    padding: 0 !important;
  }

  .section-padding {
    padding: 1rem 0 !important;
  }

  .btn {
    border: 1px solid black !important;
    color: black !important;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img,
  .footer-logo img,
  .speaker-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg video {
    display: none !important;
  }

  .animate-float,
  .pulse-animation,
  .bounce-animation,
  .glow-effect {
    animation: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* The design is already dark, so minimal changes needed */
  .modal-overlay .modal-content {
    background: var(--bg-medium);
    border-color: rgba(255, 166, 0, 0.3);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text-medium: #ffffff;
    --text-light: #ffffff;
  }

  .hero-title,
  .hero-subtitle,
  .hero-description,
  .hero-date {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }

  .btn {
    border: 2px solid var(--secondary-color);
  }

  .about-feature,
  .partner-benefit,
  .contact-card,
  .speaker-card {
    border-width: 2px;
  }
}
