@media (hover: none) and (pointer: coarse) {
    .gallery-nav:hover,
    .gallery-nav:active,
    .gallery-nav:focus,
    .gallery-nav:focus-visible {
        background-color: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Lato:wght@300;400;700;900&display=swap');

@keyframes home-heading-gradient-shift{
    0%{
        background-position: 0% 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0% 50%;
    }
}

@keyframes navbar-brand-gradient-shift{
    0%{
        background-position: 0% 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0% 50%;
    }
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
    position: relative;
}

body{
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-x: clip;
    background-color: #F5F2EF;
    max-width: 100%;
    width: 100%;
    position: relative;
}

body.home-page,
body.home-page main,
body.home-page section{
    overflow-x: clip;
}

body.home-page [data-aos="fade-left"],
body.home-page [data-aos="fade-right"] {
    transform: translate3d(0, 24px, 0);
}

body.home-page [data-aos="fade-left"].aos-animate,
body.home-page [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0);
}

main{
    flex: 1;
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-left: 14px;
    min-width: 0;
    height: 55px;
    text-decoration: none;
    cursor: pointer;
}

header{
    width: 100%;
    max-width: 100vw;
    height: 55px;
    background-color: #F5F2EF;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow-x: hidden;
    box-sizing: border-box;
}

.navbar{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #F5F2EF;
    max-width: 100vw;
    overflow-x: hidden;
}

.navbar.background{
    background: #F5F2EF;
}

header.scrolled-nav{
    background-color: #F5F2EF;
}

.navbar.scrolled-nav{
    background: #F5F2EF;
}

.logo{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 55px;
}

.logo img{
    width: auto;
    height: 44px;
    max-width: none;
    display: block;
}

.brand-name{
    font-family: "Poppins", sans-serif;
    font-size: clamp(12px, 1.15vw, 18px);
    font-weight: 700;
    color: #4A7C59;
    background: linear-gradient(120deg, #D4AF37 0%, #C3A24D 24%, #4A7C59 50%, #6D9A7A 76%, #D4AF37 100%);
    background-size: 220% 220%;
    animation: navbar-brand-gradient-shift 8s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
}

.navbar ul{
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 16px;
}

.navbar ul li{
    list-style: none;
    margin-right: 30px;

}

.navbar ul li a{
    text-decoration: none;
    color: #333333;
    font-size: large;
}

.navbar ul li a.get-in-touch {
    background-color: #4A7C59 !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
}

.navbar ul li a.get-in-touch:hover {
    background-color: #3a6048 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(74, 124, 89, 0.3) !important;
}

.navlist .dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " ▾";
    font-size: 12px;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #F5F2EF;
    padding: 8px 0;
    z-index: 1001;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
}

.dropdown-content li {
    margin-right: 0;
}

.dropdown-content li a {
    display: block;
    padding: 8px 14px;
    font-size: medium;
    white-space: nowrap;
    color: #333333;
}

.dropdown-content li a:hover {
    color: #D4AF37;
}

.dropdown.open .dropdown-content {
    max-height: 140px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-right: 20px;
}

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

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

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

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

.rightnav{
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-right: 20px;
}

.rightnav input{
    width: 140px;
    height: 35px;
    border-radius: 10px;
    border: 3px solid white;
    padding: 0 12px;
}
.rightnav button{
    width: auto;
    min-width: 50px;
    height: 30px;
    margin-left: 0;
    padding: 0 10px;
    border-radius: 10px;
    border: 3px solid white;
    cursor: pointer;
}

.text{
    background-color: red;
}

.background{
    background: rgba(0, 0, 0, 0.7) url('imgs/img.jpg');
    background-size: cover;
    background-blend-mode: darken;
}

.mainbox{
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 2000px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.firstsection{
    height: auto;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.firstsection.background{
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    background: none;
}

.firstsection.background .mainbox{
    position: relative;
    z-index: 1;
}

.firsthalf{
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    max-width: 580px;
    order: 2;
}

.home-mainbox .firsthalf{
    order: 1;
    display: grid;
    width: calc(100% - 16px);
    max-width: 1728px;
    min-height: 550px;
    grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.2fr);
    column-gap: 22px;
    row-gap: 10px;
    align-items: center;
    background-color: #FBF8F3;
    border: 1px solid #E9E3DA;
    border-radius: 44px 24px 24px 44px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    padding: 24px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.home-mainbox{
    gap: 14px;
}

.home-mainbox .firsthalf .btns{
    grid-column: 1;
    align-items: flex-start;
    justify-self: start;
}

.home-mainbox .firsthalf .pdag-hero-image{
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 22px;
    margin-bottom: 0;
    margin-top: 0;
    justify-self: stretch;
    display: block;
}

.home-mainbox .firsthalf .bigtext,
.home-mainbox .firsthalf .smalltext{
    grid-column: 1;
}

.secondhalf{
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 800px;
    order: 1;
    margin-top: 0;
    padding-left: 40px;
}

.home-mainbox .secondhalf{
    order: 2;
}

.firsthalf .btns{
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.firsthalf .btns button{
    width: fit-content;
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #4A7C59;
    border: 2px solid #4A7C59;
    cursor: pointer;
    transition: all 0.3s ease;
}

.firsthalf .btns button:hover{
    background-color: #D4AF37;
    border-color: #D4AF37;
}

.firsthalf .btns button a{
    text-decoration: none;
    color: #F5F2EF;
}

.bigtext{
    background: linear-gradient(120deg, #D4AF37 0%, #C3A24D 24%, #4A7C59 50%, #6D9A7A 76%, #D4AF37 100%);
    background-size: 220% 220%;
    animation: home-heading-gradient-shift 8s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 50px;
    gap: 9px 9px;
    font-weight: bold;
    text-shadow: none;
}

.smalltext{
    color: #333333;
    font-size: larger;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
}
.secondhalf img{
    width: 100%;
    max-width: 600px !important;
    height: auto;
    border-radius: 30px;
    margin-top: 0;
    object-fit: contain;
    object-position: center top;
}

.about-legacy{
    padding: 40px 6vw 20px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.about-legacy-inner{
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-legacy-media{
    flex: 0 0 40%;
}

.about-legacy-media img{
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.about-legacy-media .legacy-img-alternate{
    display: none;
}

.about-legacy-content{
    flex: 1;
    color: #333333;
    font-size: 15px;
}

.about-legacy-content h2{
    font-size: 28px;
    margin-bottom: 16px;
}

.about-legacy-content ul{
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    line-height: 1.6;
}

.why-choose-us{
    width: 100%;
    max-width: 100vw;
    padding: 40px 5vw;
    text-align: center;
    overflow-wrap: break-word;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.why-choose-us h2{
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.why-choose-us p{
    font-size: 12px;
    color: #333333;
    margin-top: 13px;
    max-width: 533px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.why-choose-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 33px auto 0;
    max-width: 1240px;
    align-items: stretch;
}

.why-choose-item{
    background-color: #FFFFFF;
    padding: 14px;
    border-radius: 16px;
    text-align: left;
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 14px;
    row-gap: 6px;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.why-choose-item:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    background-color: #f0f0f0;
}

.why-choose-item img{
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 0;
}

.why-choose-item h3{
    grid-column: 2;
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    margin: 0;
    line-height: 1.25;
}

.why-choose-item p{
    grid-column: 2;
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
}

.stats-band{
    width: 100%;
    max-width: 100vw;
    background-color: #4A7C59;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 30px 5vw;
    margin: 20px 0 10px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.stat-item{
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number{
    font-size: 32px;
    font-weight: 700;
    color: #F5F2EF;
}

.stat-label{
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #F5F2EF;
}

.secondhalf .pdag-hero-image{
    width: 100%;
    max-width: 600px !important;
    border-radius: 30px;
    display: block;
    margin: 0 auto;
    height: auto;
    object-fit: contain;
    object-position: center top;
}

/* Responsive image sizing for larger screens */
@media only screen and (min-width: 1400px) {
    .secondhalf{
        max-width: 1000px;
    }
    
    .secondhalf .pdag-hero-image{
        max-width: 800px !important;
    }
    
    .secondhalf img{
        max-width: 800px !important;
    }
}

@media only screen and (min-width: 1600px) {
    .secondhalf{
        max-width: 1150px;
    }
    
    .secondhalf .pdag-hero-image{
        max-width: 950px !important;
    }
    
    .secondhalf img{
        max-width: 950px !important;
    }
}

@media only screen and (min-width: 1800px) {
    .secondhalf{
        max-width: 1350px;
    }
    
    .secondhalf .pdag-hero-image{
        max-width: 1100px !important;
    }
    
    .secondhalf img{
        max-width: 1100px !important;
    }
}

@media only screen and (min-width: 2400px) {
    .secondhalf{
        max-width: 1600px;
    }
    
    .secondhalf .pdag-hero-image{
        max-width: 1300px !important;
    }
    
    .secondhalf img{
        max-width: 1300px !important;
    }
}

.mainbox{
    display: flex;
    justify-content: center;
    align-items: center;
}

.secondsection{

}

.firsthalf2 .largetext{
    font-size: 60px;
    text-align: center;
}

.clients{
    display: grid;
    margin-top: 45px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.clients .images img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.clientstext{
    text-align: center;
    font-size: 30px;
}

.clients-logos-belt{
    width: calc(100% - 10vw);
    max-width: calc(100vw - 10vw);
    margin: 0 5vw;
    padding: 40px 0;
    background-color: #ffffff;
    overflow: hidden;
    border-radius: 30px;
    box-sizing: border-box;
}

.clientale-heading{
    width: 100%;
    max-width: 100vw;
    padding: 40px 5vw;
    text-align: center;
    overflow-x: hidden;
    box-sizing: border-box;
}

.clientale-heading h2{
    font-size: 48px;
    font-weight: bold;
    color: #333333;
    margin: 0;
}

.logos-container{
    width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.logos-track{
    display: flex;
    gap: 40px;
    padding: 20px;
    animation: scroll-logos 40s linear infinite;
    width: fit-content;
}

.logo-item{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 130px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.logo-item:hover{
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.logo-item img{
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.logo-item:hover img{
    filter: grayscale(0%);
}

@keyframes scroll-logos{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-33.33%);
    }
}

.recent-projects-heading{
    width: 100%;
    max-width: 100vw;
    padding: 40px 5vw;
    text-align: center;
    margin-top: 40px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.recent-projects-heading h2{
    font-size: 48px;
    font-weight: bold;
    color: #333333;
    margin: 0;
}

.recent-projects-belt{
    width: calc(100% - 10vw);
    max-width: calc(100vw - 10vw);
    margin: 0 5vw;
    padding: 40px 0;
    background-color: #F5F2EF;
    overflow: hidden;
    border-radius: 30px;
    box-sizing: border-box;
}

.projects-container{
    width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.projects-track{
    display: flex;
    gap: 30px;
    padding: 20px;
    animation: scroll-projects 50s linear infinite;
    width: fit-content;
}

.project-item{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 280px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.project-item:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-item img{
    width: 100%;
    height: 100%;
    aspect-ratio: 400 / 280;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(0%);
}

.project-item:hover img{
    transform: scale(1.1) !important;
    filter: grayscale(100%);
}

.project-item-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.project-item-overlay h3{
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}

@keyframes scroll-projects{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-33.33%);
    }
}

.lastbtn{
    margin-top: 10vh;
    margin-bottom: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.lastbtn button{
    width: fit-content;
    background-color: #4A7C59;
    border-radius: 5px;
    padding: 10px 30px;
    border: 2px solid #4A7C59;
    transition: all 0.3s ease;
}

.lastbtn button:hover{
    background-color: #D4AF37;
    border-color: #D4AF37;
}

.lastbtn button a{
    text-decoration: none;
    color: #F5F2EF;
}

.footer-info {
    background-color: #e0e0e0;
    padding: 60px 6vw;
    color: #333333;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #D4AF37;
    font-weight: 600;
}

.footer-column p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333333;
}

.footer-contact-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(74, 124, 89, 0.18);
}

.footer-contact-card:hover .footer-contact-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, #F6E7B3 0%, #E8CD7A 100%);
    color: #333333;
}

.footer-contact-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A7C59 0%, #3a6048 100%);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.footer-contact-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.footer-contact-body a {
    color: #333333;
    text-decoration: none;
    line-height: 1.5;
    word-break: break-word;
    transition: color 0.2s ease;
}

.footer-contact-body a:hover {
    color: #4A7C59;
    text-decoration: underline;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #4A7C59;
}

.footer-map {
    flex: 1.2;
    max-width: 400px;
}

.map-container {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

footer{
    display: flex;
    flex-direction: column;
    background-color: #e0e0e0;
    min-height: 8vh;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    gap: 8px;
    padding: 15px 20px;
}

footer a {
    color: #4A7C59;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #D4AF37;
}

@media only screen and (min-width: 1200px) {
    .home-mainbox .firsthalf{
        display: grid;
        grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.2fr);
        column-gap: 22px;
        row-gap: 10px;
        align-items: center;
        width: 90%;
        max-width: 1400px;
        padding: 24px;
        border-radius: 44px 24px 24px 44px;
        margin-left: auto;
        margin-right: auto;
        min-height: auto;
    }

    .home-mainbox .firsthalf .pdag-hero-image{
        grid-column: 2;
        grid-row: 1 / span 3;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 400px;
        max-height: 500px;
        object-fit: contain;
        object-position: center top;
        border-radius: 22px;
        margin-bottom: 0;
        margin-top: 0;
        justify-self: end;
    }

    .home-mainbox .firsthalf .bigtext{
        grid-column: 1;
        font-size: 30px;
    }
    
    .home-mainbox .firsthalf .smalltext{
        grid-column: 1;
        font-size: medium;
    }

    .home-mainbox .firsthalf .btns{
        grid-column: 1;
        align-items: flex-start;
        justify-self: start;
    }
}

@media only screen and (max-width: 1199px) {
    .home-mainbox .firsthalf{
        display: flex;
        flex-direction: column;
        min-height: auto;
        grid-template-columns: none;
        align-items: flex-start;
        width: 90%;
        max-width: 90%;
        padding: 16px;
        border-radius: 28px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-mainbox .firsthalf .pdag-hero-image{
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center top;
        border-radius: 16px;
        margin-bottom: 14px;
        margin-top: 0;
        justify-self: auto;
        order: -1;
    }

    .home-mainbox .firsthalf .bigtext{
        grid-column: auto;
        font-size: 30px;
    }
    
    .home-mainbox .firsthalf .smalltext{
        grid-column: auto;
        font-size: medium;
    }

    .home-mainbox .firsthalf .btns{
        grid-column: auto;
        justify-self: auto;
    }
}

@media only screen and (max-width:1110px) {
    /* Hide grid layouts on mobile and tablet */
    .navlist {
        position: fixed;
        left: 0;
        top: 55px;
        height: calc(100vh - 55px);
        width: 100vw;
        background-color: #ffffff;
        flex-direction: column;
        padding-top: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-x: hidden;
    }

    .navlist.active {
        transform: translateX(0);
    }

    .navlist li {
        margin: 15px 0;
        text-align: center;
    }

    .navlist .dropdown {
        width: 100%;
    }

    .navlist .dropdown-content {
        position: static;
        min-width: 100%;
        padding: 0;
        background-color: transparent;
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
        overflow: hidden;
        pointer-events: none;
    }

    .navlist .dropdown.open .dropdown-content {
        max-height: 140px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navlist .dropdown-content li a {
        padding: 6px 14px;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    .navbar{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .logo-link{
        gap: 8px;
        padding-left: 10px;
        max-width: calc(100% - 52px);
    }

    .logo img{
        height: 40px;
    }

    .brand-name{
        font-size: clamp(10px, 2.2vw, 14px);
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }

    .navbar ul li{
        margin-right: 0;
    }

    .rightnav{
        display: none;
    }

    .firstsection{
        height: auto;
        padding-top: 75px;
    }

    .mainbox{
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .firsthalf{
        width: 100%;
        max-width: 90%;
        min-width: 0;
        order: 2;
        padding: 10px;
    }

    .home-mainbox .firsthalf{
        order: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 90%;
        min-height: auto;
        padding: 16px;
        border-radius: 28px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        align-items: flex-start;
    }

    .home-mainbox{
        gap: 20px;
    }

    .home-mainbox .firsthalf .btns{
        align-items: flex-start;
        justify-self: auto;
    }

    .home-mainbox .firsthalf .pdag-hero-image{
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center top;
        max-width: 100%;
        border-radius: 16px;
        margin-bottom: 14px;
        margin-top: 0;
        justify-self: auto;
    }

    .secondhalf{
        width: 100%;
        max-width: 90%;
        min-width: 0;
        order: 1;
        margin-top: 0;
        margin-bottom: 10px;
        padding-left: 0;
    }

    .home-mainbox .secondhalf{
        order: 2;
    }

    .firsthalf .btns button{
        width: fit-content;
    }

    .bigtext{
        font-size: 30px;
    }

    .smalltext{
        font-size: medium;
    }

    .secondhalf img{
        width: 100%;
        height: auto;
        margin-top: 0;
    }

    .stats-band{
        flex-direction: column;
        padding: 24px 6vw;
    }

    .why-choose-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 17px;
    }

    .why-choose-item{
        padding: 12px;
    }

    .why-choose-item img{
        width: 88px;
        height: 88px;
    }

    .why-choose-item h3{
        font-size: 18px;
    }

    .why-choose-item p{
        font-size: 15px;
    }

    .clients{
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .clients .images img{
        width: 90vw;
        height: auto;
    }

    .firsthalf2 .largetext{
        font-size: 40px;
    }

    .lastbtn button{
        width: 50%;
    }

    footer{
        height: auto;
        padding: 15px;
    }
}

/* Tablet and smaller screens - prevent text cutting */
@media only screen and (max-width: 927px) {
    .why-choose-us{
        padding: 50px 8vw;
        overflow: hidden;
    }
    
    .why-choose-us h2{
        font-size: 38px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .why-choose-us p{
        font-size: 17px;
        max-width: 100%;
        padding: 0 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .clients-logos-belt{
        padding: 50px 0;
    }

    .clientale-heading{
        padding: 30px 5vw;
    }

    .clientale-heading h2{
        font-size: 38px;
    }

    .logos-track{
        gap: 30px;
        padding: 20px;
        animation: scroll-logos 55s linear infinite;
    }

    .logo-item{
        width: 150px;
        height: 110px;
    }

    .logo-item img{
        max-height: 90px;
    }

    .recent-projects-heading{
        padding: 30px 5vw;
    }

    .recent-projects-heading h2{
        font-size: 38px;
    }

    .projects-track{
        gap: 25px;
        padding: 20px;
        animation: scroll-projects 55s linear infinite;
    }

    .project-item{
        width: 350px;
        height: 250px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-column {
        min-width: 45%;
    }
}

/* Show both images side by side between 481px - 1287px */
@media only screen and (max-width: 1287px) and (min-width: 481px) {
    .about-legacy-inner{
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .about-legacy-media{
        flex: 0 0 auto;
        width: 90%;
        max-width: 90%;
        display: flex;
        gap: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-legacy-media .legacy-img-primary,
    .about-legacy-media .legacy-img-alternate{
        display: block;
        flex: 1;
        width: 50%;
        max-height: 550px;
        height: auto;
        object-fit: fill;
        border-radius: 20px;
    }

    .about-legacy-content{
        width: 90%;
        max-width: 90%;
    }
}

/* Stack with single image below 481px */
@media only screen and (max-width: 480px) {
    .about-legacy-inner{
        flex-direction: column;
        gap: 20px;
    }

    .about-legacy-media{
        flex: 0 0 auto;
        width: 90%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-legacy-media .legacy-img-primary{
        width: 100%;
        max-height: 500px;
        height: auto;
        object-fit: fill;
        border-radius: 28px;
    }

    .about-legacy-content{
        width: 90%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile only - stack utl.png image vertically */
@media only screen and (max-width: 768px) {
    .about-legacy-inner{
        flex-direction: column;
        gap: 20px;
    }

    .about-legacy-media{
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .why-choose-us{
        padding: 27px 5vw;
    }
    
    .why-choose-us h2{
        font-size: 21px;
        word-wrap: break-word;
    }
    
    .why-choose-us p{
        font-size: 11px;
        max-width: 100%;
        padding: 0 10px;
        word-wrap: break-word;
    }

    .why-choose-grid{
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 20px;
    }

    .why-choose-item{
        padding: 10px;
        display: grid;
        grid-template-columns: 100px 1fr;
        align-items: start;
        text-align: left;
        column-gap: 12px;
        row-gap: 4px;
    }

    .why-choose-item img{
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        margin-bottom: 0;
        object-fit: contain;
    }

    .why-choose-item h3{
        grid-column: 2;
        font-size: 13px;
        margin: 0;
        width: 100%;
        justify-self: start;
        text-align: left;
    }

    .why-choose-item p{
        grid-column: 2;
        font-size: 14px;
        margin: 0;
        width: 100%;
        max-width: none;
        padding: 0;
        justify-self: start;
        text-align: left;
    }

    .clients-logos-belt{
        padding: 40px 0;
    }

    .logos-container{
        overflow-x: scroll;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .logos-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .clientale-heading{
        padding: 25px 5vw;
    }

    .clientale-heading h2{
        font-size: 28px;
    }

    .logos-track{
        gap: 20px;
        padding: 15px;
        animation: scroll-logos 50s linear infinite;
    }

    .logo-item{
        width: 130px;
        height: 100px;
    }

    .logo-item img{
        max-height: 80px;
    }

    .recent-projects-heading{
        padding: 25px 5vw;
    }

    .recent-projects-heading h2{
        font-size: 28px;
    }

    .projects-container{
        overflow-x: scroll;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-container::-webkit-scrollbar {
        display: none;
    }

    .projects-track{
        gap: 20px;
        padding: 15px;
        animation: scroll-projects 50s linear infinite;
    }

    .project-item{
        width: 300px;
        height: 200px;
    }

    .project-item-overlay h3{
        font-size: 16px;
    }

    .footer-info {
        padding: 40px 5vw;
    }

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

    .footer-column {
        min-width: 100%;
    }

    .footer-map {
        flex: 1;
    }
}

@media only screen and (max-width: 520px) {
    .logo img{
        height: 34px;
    }

    .brand-name{
        font-size: clamp(9px, 3vw, 11px);
        max-width: none;
    }
}

@media only screen and (max-width: 380px) {
    .logo-link{
        gap: 6px;
        padding-left: 6px;
        max-width: calc(100% - 48px);
    }

    .logo img{
        height: 30px;
    }

    .brand-name{
        font-size: 8.5px;
        letter-spacing: 0;
    }
}

@media only screen and (max-width: 1287px) {
    .home-page .about-legacy-content ul li:nth-child(n+6) {
        display: none;
    }
}