/* 
 * JEEvolve Mobile Responsive CSS
 * This file contains additional responsive styles for Android devices
 */

/* Logo styling for optimal display */
img[alt="JEEvolve Logo"] {
  width: 200px !important;
  height: auto !important;
  object-fit: contain !important;
  padding: 5px 0 !important;
  transition: all 0.3s ease !important;
}

/* Global scaling for mobile devices */
@media screen and (max-width: 767px) {
  /* Mobile logo adjustments */
  img[alt="JEEvolve Logo"] {
    width: 160px !important;
    padding: 3px 0 !important;
  }
  
  /* Mobile menu logo size */
  #mobile-menu img[alt="JEEvolve Logo"] {
    width: 150px !important;
  }
  /* Adjust container padding for better mobile experience */
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Scale down headings */
  h1, h2, h3 {
    font-size: 95% !important;
    line-height: 1.3 !important;
  }
  
  /* Adjust paragraph text */
  p {
    font-size: 95% !important;
    line-height: 1.5 !important;
  }

  /* Adjust section padding */
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Hero section adjustments */
  .hero-container {
    transform: scale(0.95);
    transform-origin: top center;
    flex-direction: column-reverse !important;
  }
  
  /* Rearrange hero section for mobile - atom on top, image below */
  .hero-container > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Atom animation container scaling */
  .atom-container {
    transform: scale(0.9);
    transform-origin: center center;
    min-height: 300px !important;
    height: 320px !important;
    margin-bottom: 20px !important;
  }
  
  .atom {
    max-width: 300px !important;
    max-height: 300px !important;
  }
  
  /* Adjust spacing between atom and image */
  .reveal.flex.flex-col.items-center.text-center.relative.hero-img-label-container {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
  }

  /* Card scaling */
  .card {
    transform: scale(0.95);
    transform-origin: center top;
    margin-bottom: 1rem !important;
  }

  /* Image scaling */
  .hero-img, .hero-img-label-img {
    max-width: 300px !important;
    width: 85% !important;
  }
  
  .hero-img-label-container {
    max-width: 300px !important;
    width: 85% !important;
  }
  
  /* Adjust the hero section padding and height */
  section#home {
    padding-top: 100px !important;
    min-height: auto !important;
    padding-bottom: 30px !important;
  }
  
  /* Better position the IIT badge on mobile */
  .hero-img-label-container > div[style*="position: absolute"] {
    top: -18px !important;
    right: 20px !important;
    font-size: 11px !important;
    padding: 2px 8px 2px 6px !important;
  }
  
  /* Adjust the name bar below image */
  .hero-img-orange-bar-name {
    font-size: 1.2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: -20px !important;
  }

  /* Button sizing */
  .glow-button {
    padding: 0.5rem 1rem !important;
    font-size: 90% !important;
  }

  /* Footer adjustments */
  #footer .container {
    transform: scale(0.95);
    transform-origin: top center;
  }
}

/* Specific adjustments for very small screens */
@media screen and (max-width: 480px) {
  /* Further reduce sizing */
  .atom-container {
    transform: scale(0.8);
    min-height: 270px !important;
    height: 280px !important;
    margin-bottom: 10px !important;
  }
  
  .atom {
    max-width: 260px !important;
    max-height: 260px !important;
  }
  
  /* Adjust hero image size for very small screens */
  .hero-img-label-img {
    max-width: 260px !important;
    width: 80% !important;
  }
  
  .hero-img-label-container {
    max-width: 260px !important;
    width: 80% !important;
  }
  
  /* Further adjust hero section padding */
  section#home {
    padding-top: 80px !important;
  }
  
  /* Adjust spacing */
  .mb-20 {
    margin-bottom: 3.5rem !important;
  }
  
  .mb-16 {
    margin-bottom: 2.5rem !important;
  }
  
  .mb-12 {
    margin-bottom: 2rem !important;
  }
  
  /* Further reduce card margins */
  .gap-8, .gap-6 {
    gap: 1rem !important;
  }
  
  /* Ensure text is readable */
  .text-sm {
    font-size: 0.75rem !important;
  }
}

/* Handle device orientation changes */
@media screen and (max-height: 700px) and (orientation: landscape) {
  /* Optimize for landscape orientation on small devices */
  .hero-container {
    transform: scale(0.8);
  }
  
  .atom-container {
    min-height: 220px !important;
    height: 250px !important;
  }
  
  section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}
