/* ========== Responsive Design For All Screen Sizes ========== */

/* Large Desktop Devices (2560px and below) */
@media (min-width: 1441px) and (max-width: 2560px) {
  .header {
    padding: 150px 10%;
  }
  .ohm-logo {
    height: 200px; /* Increased from 120px */
    max-width: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
  }

  .navbar a {
    font-size: 50px; /* Increased from 25px */
    color: #00bfff; /* Deep Sky Blue */
    text-decoration: none;
    font-weight: 800; /* Extra bold for clarity on large screens */
    margin-left: 50px; /* Increased spacing between items */
    transition: 0.3s;
  }



  .home {
    padding: 200px 16% 80px;
    flex-direction: row;
    text-align: left;
    gap: 200px;
  }

  .home-content {
    max-width: 1000px;
  }

  .home-content h1 {
    font-size: 88px;
  }

  .home-content h3 {
    font-size: 52px;
  }

  .home-content p {
    font-size: 30px;
    line-height: 1.8;
  }

  .role {
    font-size: 4.5rem;
  }

  .container {
    max-width: 2000px;
    margin: 0 auto;
  }

  .circle-container {
    width: 580px;
    height: 580px;
  }

  .social-icons {
    justify-content: flex-start;
    margin-top: 80px;
    gap: 80px;
  }

  .icon {
    width: 110px;
    height: 110px;
  }

  .icon i {
    font-size: 54px;
  }
}

/* Laptop Devices 1440px */

@media (max-width: 1440px) and (min-width: 1025px) {
   .header {
    height: 100px;
    padding: 60px 10%;
  }

  .home {
    padding: 130px 8% 30px;
    flex-direction: row; /* 🔁 SIDE-BY-SIDE */
    text-align: left;
    gap: 80px;
    justify-content: center;
    align-items: center;
  }

  .home-content {
    max-width: 600px;
    text-align: left;
  }

  .home-content h1 {
    font-size: 50px;
  }

  .home-content h3 {
    font-size: 30px;
  }

  .home-content p {
    font-size: 20px;
  }

  .role {
    font-size: 3rem; /* Adjust as needed */
  }

  .circle-container {
    margin-top: 30px;
    width: 320px;
    height: 320px;
  }

  .social-icons {
    justify-content: center;
    margin-top: 40px;
    gap: 50px;
  }

  .icon {
    width: 75px;
    height: 75px;
  }

  .icon i {
    font-size: 32px;
  }
}

/* Laptop Devices 1024px */


/* Horizontal layout for larger screens */
@media (min-width: 1024px) {
  .about-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  }

  .about-text {
    text-align: left;
    margin: 0;
  }

  .about-image img {
    width: 350px;
  }
  .about-text p {
    font-size: 1.50rem;
    padding: 0 20px;
    max-width: 550px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .header {
    padding: 20px 5%;
  }

  .home {
    flex-direction: row; /* 🔁 SIDE-BY-SIDE */
    text-align: left;
    padding: 120px 6% 30px;
    gap: 60px;
    justify-content: center;
    align-items: center;
  }

  .home-content {
    max-width: 550px;
    text-align: left;
  }

  .home-content h1 {
    font-size: 44px;
  }

  .home-content h3 {
    font-size: 26px;
  }

  .home-content p {
    font-size: 18px;
  }

  .circle-container {
    width: 280px;
    height: 280px;
    margin-top: 20px;
  }

  .social-icons {
    justify-content: center;
    margin-top: 30px;
    gap: 40px;
  }

  .icon {
    width: 70px;
    height: 70px;
  }

  .icon i {
    font-size: 30px;
  }

  
  
}

/* Tablet Devices 768px */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 2000;
    position: relative;
  }

  .navbar {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    right: 10px; /* Aligns to right side */
    /* left: 0px; */
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;

    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .navbar a {
    margin: 10px 0;
    font-size: 18px;
    color: white;
    margin-bottom: 10px;
    color: white;
    text-decoration: none;
  }

  .home {
    flex-direction: column;
    text-align: center;
    padding: 70px 5% 30px;
    gap: 30px;
    padding-top: 140px; /* Push down home content */
  }

  .home-content p {
    width: 100%;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 16px;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .home-content {
    flex-direction: column;
    gap: 30px;
  }

  .home-left,
  .home-right {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .home-right {
    align-items: center;
    text-align: center;
  }

  .circle-container {
    padding: 5px;
    width: 180px;
    height: 180px;
  }

  .profile-img {
    border-width: 0px;
  }

  .home-content h1 {
    font-size: 36px;
  }

  .home-content h3 {
    font-size: 22px;
  }

  .home-content p {
    font-size: 16px;
  }

  .icon {
    width: 55px;
    height: 55px;
  }

  .icon i {
    font-size: 24px;
  }

  .social-icons {
    justify-content: center;
    gap: 25px;
  }

  .navbar a {
    font-size: 18px;
    margin-left: 15px;
  }
  .logo img {
    width: 90px;
  }

  .role {
    font-size: 2rem;
  }
  /* ----------- contact ----------- */

  .contact-container {
    flex-direction: column; /* Stack form and info vertically */
    gap: 30px;
  }

  .contact-form,
  .contact-info {
    min-width: unset; /* Remove min-width on smaller screens */
    width: 100%; /* Take full width */
  }

  .contact-header h2 {
    font-size: 2rem;
  }
  .contact-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 5%; /* Adjust header padding for smaller screens */
    /* ADD THIS LINE for small screens */
    margin-top: 50px; /* Or adjust this value (e.g., 50px, 60px) as needed for mobile */
  }
}

/* Extra small (very small phones) 320px,375px,425px. */

@media (max-width: 480px) {
  .circle-container {
    padding: 3px;
    width: 140px;
    height: 140px;
  }

  .home-content h1 {
    font-size: 30px;
  }

  .home-content h3 {
    font-size: 18px;
  }

  .home-content p {
    font-size: 15px;
  }

  .icon {
    width: 45px;
    height: 45px;
  }

  .icon i {
    font-size: 20px;
  }
  .role {
    font-size: 1.6rem;
  }
}

/* Fine-tune for phones 430px and below */

@media (max-width: 430px) {
  .home {
    flex-direction: column;
    gap: 20px; /* smaller gap */
    padding: 120px 5% 30px;
    align-items: center;
    text-align: center;
  }

  .circle-container {
    width: 120px;
    height: 120px;
    padding: 3px;
  }

  .home-content h1 {
    font-size: 28px;
  }

  .home-content h3 {
    font-size: 16px;
  }

  .home-content p {
    font-size: 14px;
  }

  .role {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .icon i {
    font-size: 18px;
  }

  .social-icons {
    gap: 20px;
    margin-top: 20px;
  }
}

/* Fine-tune for phones 380px and below */

@media (max-width: 380px) {
  .home-content h1 {
    font-size: 26px;
  }

  .circle-container {
    width: 120px;
    height: 120px;
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .icon i {
    font-size: 18px;
  }
  .role {
    font-size: 1.4rem;
    line-height: 1.3;
  }
}
