/* Navbar Section */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: 0;
        width: 250px;
        height: 100vh;
        background-color: #73CCB0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transform: translateX(100vw);
        transition: transform 0.3s ease-in-out;
        z-index: 500;
        padding-top: 20px; 
    }

    .nav-menu img {
        width: 100px;
        height: auto;
        margin-bottom: 20px; 
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hamburger {
        color: var(--bg-main);
        display: flex;
        cursor: pointer;
        font-size: 24px;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }

    .hamburger.active::before {
        content: "✖"; 
    }

    .hamburger::before {
        content: "☰"; 
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
        z-index: 400;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media screen and (min-width: 769px) {
    .close-btn {
        display: none;
    }
}

/* Home Button Section */
.home-button {
    width: 173px;
    height: 46px;
    font-size: 19px;
    margin-top: 34px;
    margin-left: 50px;
    background-color: #0198CC;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .home-title {
        font-size: 27px;
        padding-top: 45px;
        padding-left: 20px;
    }
}

.home-desc {
    font-size: 30px;
    font-weight: 100;
    line-height: 1.4em;
    padding-top: 15px;
    padding-left: 50px;
}

@media (max-width: 600px) {
    .home-desc {
        font-size: 15px;
        font-weight: 300;
        padding-top: 10px;
        padding-left: 20px;
    }
}

@media (max-width: 1024px) {
    .home-button {
        width: 150px;
        height: 40px;
        font-size: 16px;
        margin-top: 25px;
        margin-left: 30px;
        border-radius: 22px;
    }
}

@media (max-width: 767px) {
    .home-button {
        width: 120px;
        height: 35px;
        font-size: 14px;
        margin-top: 20px;
        margin-left: 20px;
        border-radius: 20px;
        padding: 5px 10px;
    }
}


@media (max-width: 768px) {
    .home {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .left-div-home,
    .right-div-home {
        width: 100%;
        height: auto;
    }

    .right-div-home img {
        max-width: 90%;
        height: auto;
    }

    .home-button {
        font-size: 14px;
        padding: 8px 16px;
        border-radius: 18px;
        margin-top: 15px;
        margin-left: 20px;
    }
}

@media (max-width: 400px) {
    .home-button {
        width: 100px;
        height: 30px;
        font-size: 12px;
        padding: 5px 10px;
        margin-top: 10px;
        border-radius: 15px;
    }
}



/* About Section */
@media screen and (max-width: 1280px) {
    .about-vector-img img{
        width: 550px;
    }
}

@media screen and (max-width: 1140px) {
    .about-vector-img img {
        width: 400px;
    }
}

@media screen and (max-width: 990px) {
    .about-vector-img {
        display: none;

    }
}

@media screen and (max-width: 820px) {
    .about-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .about-title {
        order: 1;
    }

    .about-vector-img {
        order: 2;
        width: auto;
    }

    .about-img-left {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-img-left img {
        width: 200px;
        height: auto;
        border-radius: 12px;
    }

    .about-right-desc {
        order: 4;
        max-width: 600px;
    }

    .about-img-right {
        order: 5;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-img-right img {
        width: 200px;
        height: auto;
        border-radius: 12px;
    }
}

@media screen and (max-width: 768px) {
    .AboutImg {
        height: 50vh;
        border-radius: 30px 30px 0 0;
    }
}

@media screen and (max-width: 480px) {
    .AboutImg {
        height: 40vh;
        border-radius: 20px 20px 0 0;
    }
}

@media screen and (max-width: 414px) {
    .about-section {
        gap: 15px;
    }

    .about-title h1 {
        font-size: 1.8em;
    }

    .about-title p {
        font-size: 1.2em;
    }

    .about-vector-img {
        display: none;
    }

    .about-img-left img,
    .about-img-right img {
        width: 180px;
    }

    .about-right-desc p {
        font-size: 1em;
    }
}




/* Product Section */
@media (max-width: 1024px) {
    .product-img {
        max-height: 60vh;
        border-radius: 30px 30px 0 0;
    }
    .product-overlay .product-product h1 {
        font-size: 2.5em; /* Adjusted for readability */
        margin-top: 40px;
        padding: 5px; 
    }
}

@media (max-width: 768px) {
    .product-img {
        max-height: 50vh;
        border-radius: 20px 20px 0 0;
    }
    .product-overlay .product-product h1 {
        font-size: 2.2em; /* Slightly smaller for better fit */
        margin-top: 45px;
        margin-left: 30px;
        padding: 5px;
    }  
}

@media (max-width: 480px) {
    .product-img {
        max-height: 40vh;
        border-radius: 15px 15px 0 0;
    }
    .product-overlay .product-product h1 {
        font-size: 1.8em; /* Adjusted for small screens */
        margin-top: 30px;
        padding: 5px; 
    }
}

/* Contact Section */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .contact-left img {
        width: 80%;
        height: auto;
        max-width: 450px;
    }

    .contact-form {
        width: 90%;
        max-width: 500px;
    }
}

/* For Mobile Screens (480px and below) */
@media (max-width: 480px) {
    .contact-section {
        padding: 0 5%;
    }

    .contact-left img {
        width: 100%;
        max-width: 350px;
    }

    .contact-form {
        width: 100%;
        padding: 15px;
    }

    .input-field label {
        font-size: 14px;
    }

    .input-field input,
    .textarea-field textarea {
        font-size: 14px;
        padding: 8px;
    }
}


/* Second Page */

@media (max-width: 1386px) {
    .telco-title,
    .transpo-title,
    .epins-title {
        font-size: 1.8em; 
        width: 100%;
        height: auto; 
        text-align: left; 
    }

    .main-container,
    .epins-container {
        height: auto; 
        padding: 20px 0;
        transform: scaleX(-1);
    }

    .icon-img {
        width: calc(50% - 10px); 
        height: auto; 
        margin: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .icon-img img {
        width: 180px;
        height: 120px;
    }
}

@media (max-width: 760px) {
    .telco-title,
    .transpo-title,
    .epins-title {
        font-size: 1.5em; 
        width: 100%;
        padding: 10px 20px;
        height: auto;
        text-align: left;
    }


    .main-container,
    .epins-container {
        height: auto;
        padding: 20px 0;
        transform: scaleX(-1);
    }

    .icon-img {
        width: calc(50% - 10px); 
        padding: 20px;
        height: auto; 
        margin: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .icon-img img {
        width: 150px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .telco-title,
    .transpo-title,
    .epins-title {
        font-size: 1em; 
        padding-bottom: 10px;
    }

    .icon-img {
        width: 100%; 
        height: auto;
    }

    .icon-img img {
        width: 150px;
        height: 100px;
    }
}



/* Footer Section */
@media screen and (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 50px 10px 0;
    }

    .footer-left, .footer-right {
        text-align: center;
        margin: 0 auto;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-item {
        justify-content: center;
    }

    .footer-item img {
        display: none;
    }

    h3 {
        text-indent: 0;
        font-size: 1.5em;
    }

    .footer-right {
        margin: 20px 0;
        padding: 0;
    }
}

@media screen and (max-width: 768px) {
    .footer-container {
        padding: 30px 5px 0;
    }

    .footer-logo {
        width: 120px;
    }

    .footer-item img {
        height: 40px;
    }

    h3 {
        font-size: 1.3em;
    }

    p {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .footer-container {
        padding: 20px 5px 0;
    }

    .footer-logo {
        width: 100px;
    }

    .footer-item img {
        height: 30px;
    }

    h3 {
        font-size: 1.2em;
    }

    p {
        font-size: 12px;
    }

    .footer-item {
        flex-direction: column;
        align-items: center;
    }
}