/* 🔹 Responsive Adjustments */
@media (max-width: 1300px) {
  .skills-section,
  .about-section,
  .clients-section {
    padding: 0 3%;
  }
  .about-text {
    max-width: 600px;
  }
}
@media (max-width: 1200px) {
  .hero-text .line1,
  .hero-text .line2 {
    font-size: 4rem;
  }

  .about-text .hi {
    font-size: 3rem;
  }

  .about-text .role {
    font-size: 1.5rem;
  }

  .portfolio-text h2 {
    font-size: 2.5rem;
  }

  .portfolio-grid {
    gap: 1rem;
  }
}
.mobile-nav-footer {
  display: none; /* hidden by default */
}
@media (max-width: 900px) {
  .mobile-nav-footer {
    display: flex;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .mobile-nav-footer .qr-code {
    width: 120px;
    height: auto;
    opacity: 0.9;
  }

  .mobile-nav-footer .email {
    font-size: 0.9rem;
    color: #111;
    opacity: 0.8;
  }
  /* Navigation compact */
  .rect-color-picker-x {
    display: none !important;
  }
  .mobile-color-trigger {
    display: none !important;
  }
  .burger {
    display: flex;
  }
  .portfolio-grid {
    width: 80%;
  }

  .nav-top {
    padding: 0.4rem 1rem;
    width: 100%;
    left: 0;
    transform: none;
    top: 0;
    border-radius: 0;
  }

  #nav-menu {
    position: fixed;
    top: 0; /* 👈 start from top edge instead of 60px */
    left: 0;
    width: 100%;
    height: 100vh; /* 👈 ensures it covers the full screen */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateY(-100%); /* 👈 hidden state moves full height up */
    transition: transform 0.4s ease;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* make sure it sits above the rest */
  }

  /* When menu is active (open) */
  #nav-menu.active {
    transform: translateY(0);
  }

  #nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 5rem 0; /* give breathing space below burger */
    padding: 0;
    list-style: none;
  }

  #nav-menu ul li a {
    font-size: 1rem;
    color: #111;
    text-decoration: none;
    font-weight: 500;
  }

  #nav-menu ul li a:hover {
    color: #555;
  }

  /* Hero text smaller */
  .hero-text .line1,
  .hero-text .line2 {
    font-size: 4rem;
  }

  /* Center sections */
  .about-section,
  .skills-section,
  .clients-section {
    display: flex;
    flex-direction: column; /* keep text stacking naturally */
    justify-content: flex-start; /* 👈 align vertically at top */
    align-items: center; /* keep horizontally centered */
    text-align: center;
    padding: 2rem 5% 2rem; /* 👈 top padding gives breathing space under nav */
    box-sizing: border-box;
  }

  .about-text,
  .skills-text,
  .clients-text {
    max-width: 95%;
  }

  .design-port-wrap .card-grid {
    grid-template-columns: repeat(3, 1fr); /* always 3 columns */

    justify-items: center;
  }

  .design-port-wrap .card {
    width: 100%;
    max-width: 160px; /* shrink slightly for tablet */
    height: auto;
  }

  /* Input and form scaling */
  input,
  textarea {
    font-size: 0.9rem;
  }

  .contact-text p {
    font-size: 0.85rem;
  }
}

@media (max-width: 700px) {
  /* Nav into two lines if needed */
  .nav-top nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Hero text smaller still */
  .hero-text .line1,
  .hero-text .line2 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .about-text .hi {
    font-size: 2.2rem;
  }
  .about-text .role {
    font-size: 1.2rem;
  }
  .about-text .desc {
    font-size: 1rem;
  }

  /* Stack form checkboxes */
  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .design-port-wrap .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .design-port-wrap .card {
    max-width: 120px;
  }

  /* Portfolio item headings smaller */
  .portfolio-item h3 {
    font-size: 1.5rem;
  }

  /* Clients logos smaller */
  .client-logo img {
    max-height: 40px;
    padding: 0 20px;
  }

  .portfolio-text h2 {
    font-size: 2rem;
  }
  .portfolio-text p {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .contact-section {
    padding: 10% 5%;
  }

  .contact-form {
    max-width: 100%;
  }

  /* Buttons */
  .prev-btn,
  .next-btn {
    display: none; /* hide arrows on mobile */
  }
}

@media (max-width: 500px) {
  /* Remove overlay on very small screens */
  .overlay {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .hero-text .line1,
  .hero-text .line2 {
    font-size: 3rem;
  }

  .about-section,
  .skills-section,
  .clients-section {
    padding: 0 3%;
  }
  .skills-text h2 {
    font-size: 2.2rem;
  }
  .skills-text p {
    font-size: 0.9rem;
  }
  .clients-text h2 {
    font-size: 2.2rem;
  }
  .clients-text p {
    font-size: 0.9rem;
  }
  .portfolio-text h2 {
    font-size: 2.2rem;
  }
  .portfolio-text p {
    font-size: 0.9rem;
  }
  .about-text,
  .skills-text,
  .clients-text,
  .portfolio-text {
    margin-top: 50px;
  }
  .about-text .desc {
    font-size: 0.9rem;
  }

  .contact-text h2 {
    font-size: 1.8rem;
  }

  .contact-text p {
    font-size: 0.9rem;
  }

  .design-port-wrap .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .design-port-wrap .card {
    max-width: 90px;
  }

  .portfolio-item h3 {
    font-size: 1.2rem;
  }

  .wrap-controls {
    flex-direction: column; /* stack vertically */
    align-items: center;
    height: 90%; /* let content adjust */
    width: 100%; /* full width on mobile */
    gap: 20px;
  }

  .con-left,
  .con-right {
    height: 100px;
    width: 100%; /* stretch full width */
    flex-direction: row; /* their items stay side by side */
    justify-content: center;
  }

  .wpra-clr {
    width: 60px; /* keep card size */
  }
}
@media (max-width: 400px) {
  .clients-text h2 {
    font-size: 2rem;
  }
  .about-text,
  .clients-text {
    margin-top: 20px;
  }
  .git-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
  }
  .about-text .desc {
    font-size: 0.8rem;
  }
  .about-text .line {
    margin: 0.5rem 0;
  }
}
