/* ----------------------------- */
/* Optimized Media Queries CSS */
/* ----------------------------- */

/* Tablet View */
@media screen and (max-width: 1024px) {
  .about h2 {
    font-size: 2.4rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .testimonial blockquote {
    font-size: 1.2rem;
  }

  .stat-box h3 {
    font-size: 2rem;
  }

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

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

/* Mobile View - Nav & General Adjustments */
@media screen and (max-width: 768px) {
  /* Hide desktop nav */
  #desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .menu-links {
    position: fixed;
    top: 10vh;
    right: 0;
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 1rem;
    list-style: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    z-index: 999;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6);
  }

  .menu-links.open {
    max-height: 500px;
    padding: 1rem 0;
    overflow-y: auto;
    display: flex;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.6);
  }

  .menu-links a i {
  margin-right: 0.5rem;
  color: rgb(255, 255, 255);
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

  .about-row {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    max-width: 100%;
    margin-top: 1rem;
  }

  .unique-cards,
  .service-cards {
    flex-direction: column;
    gap: 1.5rem;
    display: flex;
    align-items: center;
  }

  .card {
    max-width: 90%;
    padding: 1.5rem;
    font-size: 1rem;
    margin: 0 auto;
  }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .about h2 {
    font-size: 2.2rem;
  }

  .about-text,
  .about-image,
  .stat-box,
  .card {
    padding: 1rem;
    width: 100%;
  }

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

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

  .testimonial {
    padding: 2rem;
  }

  .about-cta .btn-primary {
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }

  .btn-primary {
    width: 100%;
  }

  section {
    padding: 60px 7%;
  }
}

/* Very Small Devices */
@media (max-width: 480px) {
  .about h2 {
    font-size: 2rem;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .stat-box h3 {
    font-size: 1.8rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

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

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

  .menu-links a {
    font-size: 1.2rem;
  }

  .card {
    font-size: 0.95rem;
    padding: 1.2rem;
  }
}


/* About section */

@media (max-width: 768px) {
  .founder-block-row {
    flex-direction: column;
    text-align: center;
  }

  .founder-details {
    align-items: center;
  }
}

/* Services Section */

/* SMALL DEVICES - PHONES */
@media (max-width: 480px) {
  .services-section {
    padding-top: 7rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

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

  .service-card img {
    height: 180px;
  }

  .service-card h3 {
    font-size: 1.3rem;
    margin: 0.8rem 1rem 0.5rem;
  }

  .service-card p {
    font-size: 0.95rem;
    margin: 0 1rem 1rem;
  }

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

  .cta {
    text-align: center; /* centers the button */
  }

  .cta .btn-primary {
    display: inline-block;
    width: auto;          /* don’t stretch */
    padding: 0.6rem 1rem; /* smaller padding */
    font-size: 0.9rem;    /* slightly smaller text */
  }
  
}

/* MEDIUM DEVICES - TABLETS */
@media (min-width: 481px) and (max-width: 768px) {
  .services-section {
    padding: 5rem 2rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }

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

/* CONTACT US SECTION */

@media (max-width: 992px) {
  .contact-cards {
    flex-direction: column;
  }

  .contact-card {
    width: 100%;
  }
}

/* REVIEWS SECTION */

@media (min-width: 768px) {
  .review-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================== NAVIGATION ================== */

/* Hide desktop nav on small screens, show hamburger */
@media (max-width: 768px) {
  #desktop-nav { display: none; }
  #hamburger-nav { display: flex; }
}

/* Show desktop nav on larger screens, hide hamburger */
@media (min-width: 769px) {
  #desktop-nav { display: flex; justify-content: space-between; align-items: center; }
  #hamburger-nav { display: none; }
}

/* ================== HERO SECTION ================== */
@media (max-width: 768px) {
  .gr-hero {
    margin-top: 6rem;
    padding: 0 1rem;
  }
  .gr-hero h1 {
    font-size: 1.8rem;
  }
  .gr-hero-sub {
    font-size: 1rem;
  }
  .icon-arrow {
    width: 22px;
    bottom: 3%;
  }
}

/* ================== REVIEWS GRID ================== */
/* Already using grid spans, just tighten spacing */
@media (max-width: 640px) {
  .gr-grid {
    gap: 1rem;
  }
  .gr-card {
    padding: 1rem;
  }
}

/* ================== FLOATING ACTION BUTTON ================== */
@media (max-width: 500px) {
  .gr-fab-text { display: none; }  /* show only icon on very small screens */
  .gr-fab {
    padding: 12px;
    border-radius: 50%;
  }
}

/* PROJECTS RESPONSIVE */

@media (max-width: 992px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry {
    column-count: 1;
  }
}

/* ================== FOOTER MEDIA QUERIES ================== */

/* FOOTER */

@media screen and (max-width: 768px) {
  .footer-container {
    text-align: center;
    padding: 0 1rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  #footer-socials {
    justify-content: center;
    gap: 1rem;
  }

  .footer-btn {
    display: inline-block;
    margin-top: 1rem;
  }
}

/* FOOTER LINE VERTICAL */

@media (min-width: 768px) {
  .footer-col {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
  .footer-col:last-child {
    border-right: none;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets and below */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;   /* reduce from 3 to 2 columns */
    gap: 2rem;
  }

  .footer-heading {
    font-size: 1.2rem;
    text-align: center;
  }

  .footer-btn {
    align-self: center; /* center CTA */
  }

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

/* Phones (portrait) */
@media screen and (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers all children horizontally */
    justify-content: center;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 1rem;             /* spacing between columns */
  }
  

  .footer-col {
    align-items: center;
  }

  .footer-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

.newsletter-form {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .newsletter-input {
    flex: 1;
    min-width: 0; /* prevents overflow */
  }

  .newsletter-btn {
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .footer-heading {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .footer-text,
  .newsletter-text {
    font-size: 0.85rem;
  }

  .footer-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }

  .social-links {
    gap: 0.8rem;
    font-size: 1.3rem;
  }

  .copyright {
    font-size: 0.75rem;
  }

  .footer-col {
    gap: 0.5rem;
  }

  .footer-col h2 {
    font-size: 1.3rem;
  }

}

/* ---------- Horizontal Scroll for Quick Links ---------- */
@media (max-width: 768px) {
  .footer-links {
    display: flex;
    white-space: nowrap;
    flex-wrap: nowrap;       /* prevent wrapping */
    overflow-x: auto;        /* enable horizontal scroll */
    gap: 1.5rem;
    justify-content: flex-start;
    padding: 0 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #66bb6a transparent;
  }

  .footer-links::-webkit-scrollbar {
    height: 6px;
  }
  .footer-links::-webkit-scrollbar-track {
    background: transparent;
  }
  .footer-links::-webkit-scrollbar-thumb {
    background: #66bb6a;
    border-radius: 10px;
  }
}

/* ---------- Footer Quick Links (Phones/Tablets) ---------- */
@media (max-width: 768px) {
  .footer-links {
    display: flex;
    flex-wrap: wrap;         /* allow wrapping instead of scroll */
    justify-content: center; /* center align items */
    gap: 0.8rem;             /* tighter gap */
    padding: 0.5rem 0;
    text-align: center;
  }
  .footer-links a {
    font-size: 0.85rem;
    flex: 1 1 auto;          /* allow flexible wrapping */
  }
}

