/* =========================
         Desktop
========================== */
@media (max-width: 1281px) {
  html {
    font-size: 13px;
  }
}
@media (max-width: 1050px) {
  html {
    font-size: 12.5px;
  }
  .home-img img {
    margin-top: 8.5rem;
    margin-right: 20rem;
  }
  .home-content h3 {
    font-size: 2.5rem;
  }
  .home-content h1 {
    font-size: 3.5rem;
  }
  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
         Tablet 
========================== */
@media (max-width: 835px) {
  section {
    padding: 8rem 9%; 
  }

  .logo {
    font-size: 2.5rem;
  }

  #menu-icon {
    display: block;
    font-size: 2.5rem;
  }
  .navbar {
    display: flex;
    gap: 2.5rem;
    flex-direction: column;
    position: absolute;
    top: 11rem;
    right: 0;
    font-size: 25px;
    width: 100%;
    box-shadow: 6px 6px 12px #1f242d, -6px -6px 12px #1f242d;
    background: #323946;
    min-width: 300px;
    height: auto;
    text-align: center;
    border-radius: 0.2rem;
    padding: 3rem 0;
    z-index: 9999999;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
  }
  .navbar.active {
    top: 5rem;
    visibility: visible;
    opacity: 1;
  }
  .navbar a {
    font-size: 20px;
  }

  section.home {
    padding-top: 10rem; 
    padding-bottom: 5rem;
  }
  .home {
    flex-direction: column-reverse;
    gap: 3rem;
  }
  .home-img img {
    width: 55vw;
    margin: 0 auto; 
  }
  .home-content {
    margin-top: 0; 
    text-align: center;
  }
  .home-content .home-intro {
    margin: 1.5rem auto 2.5rem auto;
  }
  .home-content h1 {
    font-size: 4rem;
    line-height: 1.5;
  }
  .home-content h3 {
    font-size: 3rem;
  }
  .social-media a {
    width: 4.5rem; 
    height: 4.5rem; 
    margin-left: 1rem;
    margin-bottom: 2.5rem;
    font-size: 2.2rem; 
  }
  .btn {
    margin-top: 1.5rem;
    font-size: 2rem;
  }
  .about {
    flex-direction: column;
  }
  .about-img img {
    width: 44vw;
  }
  .about-content,
  .about-content h2,
  .about-content h3,
  .about-content p {
    text-align: center;
  }
  .about-content h2 {
    text-align: center;
  }
  .about-content p {
    font-size: 1.3rem;
  }

  .services-container {
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
  }
  .services-box p,
  .services-box li {
    font-size: 1.3rem;
  }

  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .portfolio-box {
    padding: 0 !important;
  }

  .contact form {
    max-height: 70rem;
  }
  .contact {
    margin-bottom: -4.5rem;
  }
  .contact form .input-box input,
  .contact form textarea {
    font-size: 1.5rem;
  }
  .contact form textarea {
    height: 30rem;
  }

  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 769px) {
  .home-img img {
    width: 50vw;
  }
  .home-content h1 {
    font-size: 3rem;
    line-height: 1.5;
  }
  .home-content h3 {
    font-size: 2.5rem;
  }
  .portfolio-container {
    grid-template-columns: 1fr;
  }
  .services-container {
    grid-template-columns: 1fr;
  }
  
  /* Report Mobile Padding */
  .report-section {
      padding: 2rem;
  }
  .project-content p {
      text-align: left !important;
  }
}

/* =========================
         Mobile (UPDATED TEXT SIZES)
========================== */
@media (max-width: 429px) {
  section {
    padding: 6rem 4%; 
  }
  .heading {
    font-size: 2.6rem; 
  }
  .section-subtitle {
    font-size: 1.3rem;
  }
  .logo {
    font-size: 1.8rem;
  }
  #menu-icon {
    font-size: 2rem;
  }

  /* Home Layout */
  section.home {
    padding-top: 8rem;
  }
  .home-img {
    margin-top: 4rem; 
    margin-right: 0; 
  }
  .home-img img {
    width: 65vw;
  }
  
  /* Home Text */
  .home-content h1 {
    font-size: 2.8rem; 
  }
  .home-content h3 {
    font-size: 1.6rem; 
  }
  .home-content .home-intro {
    font-size: 1.4rem; 
    max-width: 100%;
  }

  .social-media {
    margin-left: 1rem;
    margin-bottom: -1rem;
  }
  .social-media a {
    width: 3.2rem; 
    height: 3.2rem; 
    margin-left: 0.8rem;
    font-size: 1.8rem; 
  }
  .btn {
    font-size: 1.4rem; 
    padding: 0.8rem 2rem;
  }

  /* About Section */
  .about-img img {
    width: 45vw;
    margin-top: 2rem; 
    margin-bottom: 2rem;
  }
  .about-content h3 {
    font-size: 2rem; 
  }
  .about-content p {
    font-size: 1.35rem; 
    text-align: center; 
  }

  /* Stat Boxes */
  .stat-box {
    min-width: 0;
    flex-basis: 90px; 
    flex-grow: 1; 
    padding: 1rem;
  }
  .stat-box h3 {
    font-size: 2.2rem; 
  }
  .stat-box p {
    font-size: 1.1rem; 
  }

  /* Services Card */
  .services-box {
    padding: 2rem;
  }
  .services-box h3 {
    font-size: 1.8rem; 
  }
  .services-box p {
    font-size: 1.3rem;
  }
  .services-box li {
    font-size: 1.3rem;
  }

  /* Portfolio Card */
  .portfolio-container {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .portfolio-box {
    padding: 0 !important; 
  }
  .portfolio-content {
    padding: 1.5rem; 
  }
  .portfolio-box h4 {
    font-size: 1.8rem; 
  }
  .portfolio-box p {
    font-size: 1.3rem;
  }
  .explore-more-btn {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
  }

  /* Contact Form */
  .contact-container {
    padding: 1.5rem;
  }
  .contact form .input-box input,
  .contact form textarea {
    font-size: 1.4rem; 
  }
  .contact form textarea {
    height: 20rem;
  }
  .email-link {
    font-size: 1.4rem; 
  }

  .footer-bottom p {
    font-size: 1rem;
  }
  .footer-branding h3 {
    font-size: 1.5rem; 
  }

  /* --- REPORT MOBILE SIZING (Specific Improvements) --- */
  .report-title {
      font-size: 2.0rem !important;
  }
  .report-subtitle {
      font-size: 1.6rem !important;
  }
  .project-content p, 
  .report-section p {
      font-size: 1.3rem !important;
      text-align: left !important; /* Ensure left align */
  }
  .recommendation-box h4 {
      font-size: 1.5rem !important;
  }
  .kpi-card span {
      font-size: 1.6rem !important;
  }
  .feature-list li {
      font-size: 1.3rem !important;
  }
}

@media (max-width: 391px) {
  section {
    padding: 5rem 4%; 
  }
  .heading {
    font-size: 2.4rem; 
  }
  .home-content h1 {
    font-size: 2.4rem;
  }
  .home-content h3 {
    font-size: 1.4rem;
  }
  .social-media a {
    margin-left: 0.1rem;
    font-size: 1.6rem;
  }
  .btn {
    font-size: 1.2rem;
  }
  .contact form textarea {
    height: 15rem;
  }
  .contact form .btn {
    margin-top: 1.3rem;
    font-size: 1.2rem;
  }
  .footer-bottom p {
    font-size: 0.8rem;
  }
  .footer-iconTop a i {
    font-size: 1rem;
  }
}