/* Mobile Responsiveness Fixes */

/* General Mobile Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* enable two columns for card grids on small devices */
  .problem-grid,
  .credibility-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* credibility-specific adjustments */
  .credibility-item {
    padding: 2rem 1.5rem 3rem;
    min-height: auto;
  }
  .credibility-item .cred-icon {
    font-size: 3.5rem;
    bottom: -60%;
  }
  .credibility-item:hover .cred-text {
    transform: translateY(-20%);
  }

  /* solution cards two across */
  .solution-card {
    flex: 1 1 calc(50% - 1rem);
    max-width: none;
  }
}

/* Hero Section Mobile & Tablet */
@media (max-width: 992px) {
  .hero-content {
    gap: 2rem;
  }
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-mentor .hero-text h1 {
    font-size: 2.8rem;
  }
  .hero-image-illustration {
    transform: scale(0.95);
  }
  .hero-mentor .hero-image-wrapper {
    max-width: 760px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-keywords {
    justify-content: center;
  }

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

  .hero-mentor .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-illustration {
    transform: scale(1);
  }

  .hero-mentor .hero-image-wrapper {
    max-width: 680px;
  }

  .hero-visual {
    height: auto;
  }

  .navbar-rotating-icon {
    width: 80px;
    height: 80px;
    margin-left: 0.5rem;
  }
  .rotating-icon-small {
    animation-duration: 15s;
  }

  /* Specifics for the old visual just in case it's used elsewhere */
  .rainbowz-center-icon {
    width: 220px;
    height: 220px;
  }
  .floating-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  .icon-1 { top: -5px; left: 20px; }
  .icon-2 { top: 20px; right: -5px; }
  .icon-3 { bottom: -5px; left: 20px; }
  .icon-4 { bottom: 20px; right: -5px; }
  .icon-5 { top: 100px; right: -10px; }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Problem Section Mobile */
@media (max-width: 768px) {
  .problem-grid {
    gap: 1.5rem;
  }

  .problem-card {
    padding: 20px;
  }

  .problem-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .problem-card h3 {
    font-size: 1.1rem;
  }
}

/* Testimonials Mobile */
@media (max-width: 768px) {
  .testimonials-grid {
    gap: 2rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Blog Grid Mobile */
@media (max-width: 768px) {
  .blog-grid {
    gap: 2rem;
  }

  .blog-card {
    padding: 1.5rem;
  }
}

/* Footer Mobile */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
  }

  .upper-footer {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .lower-footer {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-col h3,
  .nav-section h5,
  .contact-section h5,
  .map-section h5 {
    font-size: 1.25rem;
  }
}

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

  .section {
    padding: 40px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

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

  .hero-visual {
    height: auto;
  }

  .rainbowz-center-icon {
    width: 150px;
    height: 150px;
  }

  .problem-grid,
  .credibility-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* extra small - further reduce credibility padding & icon */
  .credibility-item {
    padding: 1.5rem 1rem 2.5rem;
  }
  .credibility-item .cred-icon {
    font-size: 3rem;
    bottom: -50%;
  }
  .credibility-item:hover .cred-text {
    transform: translateY(-15%);
  }

  .solution-card {
    flex: 1 1 100%;
  }

  .upper-footer,
  .lower-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .problem-card {
    padding: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }

  .problem-card:hover {
    transform: none;
  }
}

/* Forms Mobile */
@media (max-width: 768px) {
  .booking-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .booking-info,
  .booking-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .booking-info h3 {
    font-size: 2rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
  }

  .form-textarea {
    min-height: 100px;
  }
}

@media (max-width: 480px) {
  .booking-info,
  .booking-form-wrapper {
    padding: 1.5rem 1rem;
  }

  .booking-info h3 {
    font-size: 1.75rem;
  }
}

/* Landscape Orientation Fixes */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 1rem;
  }

  .hero-content {
    gap: 1rem;
  }

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

  .hero-text .subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-visual {
    height: auto;
  }

  .rainbowz-center-icon {
    width: 120px;
    height: 120px;
  }

  .floating-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .section {
    padding: 40px 0;
  }

  .problem-grid,
  .testimonials-grid,
  .blog-grid {
    gap: 1rem;
  }

  .problem-card,
  .testimonial-card,
  .blog-card {
    padding: 1rem;
  }
}