/* ======= Responsive Design ======= */

/* Tablets (768px and below) */
@media (max-width: 768px) {
  header {
    padding: 0 2rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    width: 180px;
  }

  .logo img {
    margin-top: 20px;
    height: 80px;
    margin-bottom: 10px;
  }

  nav ul {
    display: none; /* Hide main nav links on mobile */
  }

  nav a {
    font-size: 1rem;
  }

  .overlay {
    padding: 2rem;
    width: 70%;
  }

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

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

  .btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

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

  .about-left,
  .about-right {
    width: 100%;
  }

  .about-left h2 {
    font-size: 1.6rem;
  }

  .about-left .description {
    font-size: 1.1rem;
  }

  /* ✅ Show hamburger on mobile */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
  }

  .hamburger span {
    height: 3px;
    width: 25px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  /* ✅ Mobile nav styling */
  .mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav.active {
    display: flex;
  }
}


/* Phones (480px and below) */
@media (max-width: 480px) {
  header {
    padding: 0 1rem;
    height: 100px;
    position: fixed;
    background-color: white; /* ✅ Add background color here */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Optional: subtle shadow */
    z-index: 999;
  }

  .logo {
    width: 140px;
  }

  .logo img {
    margin-top: 50px;
    height: 180px;
    margin-bottom: 10px;
  }

  nav {
    display: none; /* Hide main nav */
  }

  /* Hamburger Icon */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 25px;
    width: 30px;
    cursor: pointer;
    position: absolute;
    top: 40px;
    right: 20px;
    z-index: 10001;
  }

  .hamburger span {
    height: 30px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: 0.4s ease;
  }

  /* Animate to Cancel (X) */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Slide-in Mobile Nav */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 50%;
    background: #ffffffee;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    z-index: 9999;
    padding: 3rem 2.5rem;
  }

  .mobile-nav.active {
    right: 0;
  }

  .mobile-nav ul {
    list-style: none;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
  }

  .mobile-nav ul li a:hover {
    color: #0b5ed7;
  }

  /* Other responsive styles */
  .overlay h1 {
    font-size: 1.5rem;
  }

  .overlay p {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .sticky-contact-icons a {
    padding: 12px;
    font-size: 1.2rem;
  }

  .about-left h2 {
    font-size: 1.4rem;
  }

  .about-left .description {
    font-size: 1rem;
  }

  .slider-controls button {
    padding: 0.5rem;
    font-size: 1rem;
  }

  #about {
    scroll-margin-top: 100px; /* Adjust this value as needed */
    padding-top: 20px; /* Optional: adds spacing visually too */
  }

  .testimonial-section .section-subtitle,
  .testimonial-section .section-title {
    margin-top: 4rem; /* Adjust spacing as needed */
  }
}
