﻿body {
}


@media (max-width: 480px) {
    .custom-offcanvas {
        width: 100%; /* Full width on mobile */
        height: 50vh !important;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .overlay-card {
        padding: 15px; /* Even smaller padding */
        margin: 10px 0; /* Adjust margin further */
    }

        .overlay-card h2 {
            font-size: 1.6rem; /* Even smaller title font */
        }

        .overlay-card p {
            font-size: 1.1rem; /* Smaller paragraph font */
        }

    .header-right {
        gap: 10px;
        /*display: none;*/
    }

    .search-item {
        /*width: 120px;*/
        display: none !important;
    }

    .logo-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .contact-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .golden-black-form h2 {
        font-size: 24px;
    }

    .golden-black-form .btn {
        width: 100%;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }

    .about-text {
        font-size: 0.9rem;
    }
    /* Keep hover effect for all devices */
    .about-content:hover {
        transform: translateX(0) scale(1.05); /* Keep the hover effect */
        color: #8a753b; /* Keep the color change */
    }

    .about-content h2:hover,
    .about-content .about-text:hover {
        color: #8a753b; /* Keep the hover effect for text */
    }

    .image-carousel-wrapper .image-selection-container {
        flex-direction: column;
        align-items: stretch;
    }

    .image-carousel-wrapper .image-option {
        height: 80px;
    }

    .image-carousel-wrapper .read-more {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    /* Ensure the "Read More" button is always visible on very small devices */
    .image-carousel-wrapper .read-more {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .rotating-section .title {
        font-size: 1.5rem;
    }

    .rotating-section .subtitle {
        font-size: 0.9rem;
    }

    .rotating-section .icon {
        font-size: 1.2rem;
    }

    .rotating-section .rectangle-wrapper {
        width: 100%;
    }

    .rotating-section .rotating-rectangle img {
        max-height: 180px;
    }

    .industrysec2-left p {
        font-size: 1rem;
    }

    .industrysec2 {
        padding: 60px 20px !important;
    }

    .shiva-text .shiv-line {
        font-size: 2rem;
    }

    .shiva-text .description-line {
        font-size: 1.2rem;
    }

    .small-image {
        width: 100%;
    }
}


/* Responsive Styles */
@media (max-width: 768px) {
    .custom-offcanvas {
        width: 75% !important;
        height: 60vh !important;
    }

    .contact-btn .contact-text {
        display: none; /* Hide text on smaller screens */
    }

    .contact-btn .contact-icon {
        display: inline-block !important; /* Show the icon */
    }

    .hero-overlay {
        padding-left: 5%; /* Less padding on the left for smaller screens */
    }

    .overlay-card {
        max-width: 100%; /* Allow the card to expand fully */
        padding: 20px; /* Reduce padding */
        margin: 10px 0; /* Adjust margin for smaller screens */
        right: 5%; /* Move card slightly to the right */
    }

        .overlay-card h2 {
            font-size: 2rem; /* Smaller font size for headers */
        }

        .overlay-card p {
            font-size: 1.3rem; /* Adjust paragraph font size */
        }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }



    .dropdown {
        position: relative; /* Back to relative for mobile */
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        padding: 0;
    }

    .dropdown-container {
        flex-direction: column;
        padding: 0;
    }

    .dropdown-column {
        padding: 10px 15px;
        margin-bottom: 10px;
    }

        .dropdown-column h4 {
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

    .dropdown.active .dropdown-menu {
        max-height: 1500px;
    }

    .dropdown-item {
        padding: 8px 10px;
        color: white;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-img {
        height: 300px;
    }

    .about-content h2 {
        font-size: 2rem;
    }


    .about-text {
        font-size: 1rem;
    }

    .about-button {
        padding: 10px 25px;
    }
    /* Keep hover effect for all devices */
    .about-content:hover {
        transform: translateX(0) scale(1.05); /* Keep the hover effect */
        color: #8a753b; /* Keep the color change */
    }

    .about-content h2:hover,
    .about-content .about-text:hover {
        color: #8a753b; /* Keep the hover effect for text */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title h2,
    /*.about-content h2,*/
    .cta h2 {
        font-size: 2rem;
    }

    .header-container {
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
    }

    .logo {
        order: 1;
    }

    .logo-title {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .header-right {
        order: 2;
        /*display: none;*/
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #090707;
        flex-direction: column;
        padding: 20px;
        transition: all 0.3s;
        overflow-y: auto;
        z-index: 101;
    }

        .nav-menu.active {
            left: 0;
            margin-top: 11px;
        }

    .nav-item {
        width: 100%;
        margin-bottom: 10px;
    }


    /*.right-section {
        margin-right: 10px;
    }*/

    .flag img {
        width: 28px;
    }

    .search-item.active .search-input {
        display: none !important;
    }

    .search-item {
        /*width: 120px;*/
        display: none !important;
    }

    .golden-black-form {
        width: 90% !important;
        padding: 25px 20px;
    }

    .aboutcontainer {
        padding: 0 15px; /* Maintain standard padding */
        max-width: 90%; /* Slightly reduced max-width for tablets */
    }

    .service-section-wrapper .container-fluid {
        padding: 0 15px;
    }

    .service-section-wrapper .zoom-image {
        height: auto;
        max-width: 100%;
    }

    .rotating-section {
        flex-direction: column;
        text-align: center;
    }

        .rotating-section .left-side,
        .rotating-section .right-side {
            padding: 0;
            margin-bottom: 20px;
            width: 100%;
        }

        .rotating-section .rectangle-wrapper {
            width: 90%;
            height: auto;
        }

        .rotating-section .rotating-rectangle img {
            max-height: 200px;
        }

        .rotating-section .title {
            font-size: 1.8rem;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .rotating-section .subtitle {
            font-size: 0.95rem;
        }

        .rotating-section .icon {
            font-size: 1.4rem;
            margin-bottom: 10px;
        }

    .features-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        grid-gap: 30px;
        overflow-x: hidden;
        scroll-snap-type: none;
        padding-bottom: 0;
    }

    .feature-card {
        flex: 0 0 auto;
        margin-right: 0;
        scroll-snap-align: none;
        flex-direction: column; /* Stack image and text vertically */
        align-items: stretch; /* Stretch content to card width */
    }

    .feature-image-container {
        max-height: none; /* Allow image to take necessary height */
        margin-bottom: 15px;
    }

    .custom-section .content-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .custom-section .text-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .custom-section .image-container {
        order: -1;
        margin-bottom: 30px;
        flex: 0 0 80%;
    }

    .image-carousel-wrapper .image-option {
        height: 100px;
    }

    .image-carousel-wrapper .image-carousel-content h2 {
        font-size: 1.8rem;
    }

    /* Full Description is hidden by default on small screens */
    .image-carousel-wrapper .full-description {
        display: none !important;
    }

    /* Show Read More button */
    .image-carousel-wrapper .read-more {
        display: none;
        width: 100%;
        text-align: center;
        margin-top: 10px;
        padding: 10px;
    }

    /* Show Read More button on hover */
    .image-carousel-wrapper .image-option:hover .read-more {
        display: inline-block;
    }

    /* Remove hover effect on mobile */
    .image-carousel-wrapper .image-option:hover .full-description {
        display: none; /* Disable hover effect on mobile */
    }

    /* Show text overlay by default on mobile, and make sure it's properly aligned */
    .image-carousel-wrapper .image-option .text-overlay {
        position: static;
        padding: 10px;
        background: rgba(0, 0, 0, 0.6);
    }

    /* Full Description Button */
    .image-carousel-wrapper .full-description.show {
        display: block;
        opacity: 1;
        visibility: visible;
        padding: 20px;
    }

    .whoweare {
        padding-left: 20px;
    }

        .whoweare h2 {
            font-size: 26px;
        }

        .whoweare p {
            font-size: 16px;
        }

    .main-slide-container {
        flex-direction: column;
    }

    .slidecard {
        width: 80% !important;
    }

    .slide {
        flex-direction: column;
        align-items: center;
    }

    .text-panel {
        order: -1;
        margin-bottom: 15px;
    }

    .industrysec1 .image-card {
        flex: 1 1 100%;
        height: auto; /* Let the image dictate height */
        aspect-ratio: 4 / 3; /* Keeps aspect ratio */
    }

        .industrysec1 .image-card img {
            height: 100%;
            object-fit: cover;
        }

    .industrysec1 .overlay.static {
        bottom: 10px;
        left: 10px;
    }

        .industrysec1 .overlay.static h3 {
            font-size: 1.2rem;
            margin-bottom: 4px;
        }

        .industrysec1 .overlay.static p {
            font-size: 0.9rem;
        }

    .industrysec1 .read-more {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    #shivakarma-tabs {
        padding: 15px;
    }

    .timeline-step {
        flex-direction: column;
        padding-left: 40px;
    }

    .icon-wrapper {
        width: 30px;
        height: 30px;
    }

    .tabs-container {
        flex-direction: column;
        text-align: center;
    }

    .tabs-headings {
        align-items: center;
    }

    .industrysec2-container {
        flex-direction: column;
        align-items: center;
    }

    .industrysec2-left, .industrysec2-right {
        flex: 1 1 100%;
        text-align: center;
    }

    .shiva-text .shiv-line {
        font-size: 2.5rem;
    }

    .shiva-text .description-line {
        font-size: 1.4rem;
    }

    .small-images {
        flex-direction: column;
        align-items: center;
    }

    .small-image {
        width: 80%;
        margin-bottom: 10px;
    }
    /*.industrysec3 {
        padding: 60px 15px;
    }

    .industrysec3-container {
        padding: 0 15px;
    }

    .industrysec3-heading {
        font-size: 1.8rem;
        padding-bottom: 40px;
    }

    .industrysec3-wrapper {
        flex-direction: column;
        padding: 0;
    }

    .industrysec3-left,
    .industrysec3-right {
        max-width: 100%;
        width: 100%;
    }

    .industrysec3-list li {
        font-size: 0.95rem;
        padding: 14px 16px;
    }*/
    .golden-black-form-container {
        flex-direction: column;
    }

    .form-image-section,
    .golden-black-form {
        flex: 1 1 100%;
    }

    .form-image-section {
        height: 200px;
    }
}


@media (max-width: 1024px) {
    .nav-menu {
        gap: 15px;
    }

    .right-section {
        gap: 10px;
    }

    .aboutcontainer {
        padding: 0 15px; /* Maintain standard padding */
        max-width: 90%; /* Slightly reduced max-width for tablets */
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        padding: 10px;
    }

    .search-item.active .search-input {
        display: none !important;
    }

    .search-item {
        /*width: 120px;*/
        display: none !important;
    }

    .custom-offcanvas {
        width: 50% !important;
        height: 60vh !important;
    }

    .service-section-wrapper .feature-item {
        padding: 20px;
        margin-bottom: 30px;
    }

        .service-section-wrapper .feature-item h4 {
            font-size: 1.2rem;
        }

        .service-section-wrapper .feature-item p {
            font-size: 0.95rem;
        }

    .service-section-wrapper .btn-read-more {
        font-size: 14px;
        padding: 8px 20px;
    }
}



@media (max-width: 576px) {
    .custom-offcanvas {
        width: 100% !important;
        height: 50vh !important;
    }

    .service-section-wrapper {
        padding-top: 50px;
    }

        .service-section-wrapper .feature-item h4 {
            font-size: 1.1rem;
        }

        .service-section-wrapper .feature-item p {
            font-size: 0.9rem;
        }

    .main-slide-container {
        flex-direction: column;
    }

    .slidecard {
        width: 90% !important;
    }

    .slide {
        flex-direction: column;
        align-items: center;
    }

    .text-panel {
        order: -1;
        margin-bottom: 10px;
    }
}
/* Media query for smaller screens */




/* For smaller screens like mobile */
@media (max-width: 767px) {
    .aboutcontainer {
        padding: 0 23px; /* Less padding for smaller screens */
        max-width: 100%; /* Ensure full width for small devices */
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
        max-width: 100%;
    }

    .btn-primary {
        padding: 10px 25px;
    }

    .industrysec3 {
        padding: 60px 15px;
    }

    .industrysec3-container {
        padding: 0 15px;
    }

    .industrysec3-heading {
        font-size: 1.8rem;
        padding-bottom: 40px;
    }

    .industrysec3-wrapper {
        flex-direction: column;
        padding: 0;
    }

    .industrysec3-left,
    .industrysec3-right {
        max-width: 100%;
        width: 100%;
    }

    .industrysec3-list li {
        font-size: 0.95rem;
        padding: 14px 16px;
    }
}
/* For larger tablets and smaller desktop (Landscape iPads, smaller desktops) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .aboutcontainer {
        padding: 0 20px; /* More padding for medium screens */
        max-width: 1100px; /* Max width slightly reduced for medium screens */
    }

    .main-slide-container {
        flex-direction: row;
    }

    .slidecard {
        width: 30% !important;
    }

    .slide {
        flex-direction: row;
        align-items: center;
    }

    .text-panel {
        order: 1;
        margin-bottom: 10px;
    }
}

/* For large desktops */
@media (min-width: 1281px) {
    .aboutcontainer {
        padding: 0 30px; /* More padding for larger screens */
        max-width: 1300px; /* Retain original max-width */
    }

    .main-slide-container {
        flex-direction: row;
    }

    /* .slidecard {
        width: 25% !important;
    }*/

    .slide {
        flex-direction: row;
        align-items: flex-start;
    }

    .text-panel {
        order: 1;
        margin-bottom: 0;
    }
}

@media (max-width: 1200px) {
    .rotating-section {
        flex-direction: column;
        text-align: center;
    }

        .rotating-section .left-side,
        .rotating-section .right-side {
            padding: 0;
            margin-bottom: 20px;
            width: 100%;
        }

        .rotating-section .rectangle-wrapper {
            width: 80%;
            height: auto;
        }

        .rotating-section .rotating-rectangle {
            height: auto;
        }

            .rotating-section .rotating-rectangle img {
                height: auto;
                max-height: 250px;
                width: 100%;
            }

        .rotating-section .title {
            font-size: 2rem;
        }

        .rotating-section .subtitle {
            font-size: 1rem;
            padding: 0 10px;
        }

        .rotating-section .icon {
            font-size: 1.5rem;
        }

    .industrysec1 .image-card {
        flex: 1 1 calc(50% - 20px);
        height: 350px; /* Reduce height */
    }


    /* For small to medium screens (tablets, small desktops) */
    @media (max-width: 1024px) and (min-width: 768px) {
        .main-slide-container {
            flex-direction: column;
        }

        .slidecard {
            width: 60% !important;
        }

        .slide {
            flex-direction: column;
            align-items: center;
        }

        .text-panel {
            order: -1;
            margin-bottom: 20px;
        }

        .industrysec3 {
            padding: 80px 20px;
        }

        .industrysec3-container {
            padding: 0 20px;
        }

        .industrysec3-heading {
            font-size: 2.2rem;
            padding-bottom: 50px;
        }

        .industrysec3-wrapper {
            flex-direction: row;
            padding: 0 20px;
            gap: 24px;
        }

        .industrysec3-left,
        .industrysec3-right {
            flex: 1 1 100%;
            max-width: 100%;
        }

        .industrysec3-list li {
            font-size: 1rem;
        }
    }



    @media (max-width: 575.98px) {
        .shivakarma-tabs-nav .nav-link {
            flex: 1 1 100%;
            text-align: center;
        }
    }
}
/* Responsive Layout for Tablets and Larger Screens */
/*@media (min-width: 1200px) {
    .industrysec3-wrapper {
        padding: 0 65px;
    }

    .industrysec3-heading {
        font-size: 2.8rem;
    }

    .industrysec3-list li {
        font-size: 1.05rem;
    }
}*/
@media (min-width: 1200px) {
    .industrysec3-wrapper {
        padding: 0 65px;
    }

    .industrysec3-heading {
        font-size: 2.8rem;
    }

    .industrysec3-list li {
        font-size: 1.05rem;
    }
}
