/* Indabuko Consulting - single site stylesheet
   Fonts (Quicksand) are loaded with <link> tags in each page head. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

/* ===========================================
   HEADER & NAVIGATION (same on every page)
   =========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 20px 100px;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header:hover,
.header.nav-open {
    background: rgba(0, 0, 0, 0.6);
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.navbar a {
    position: relative;
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    margin-left: 40px;
}

.navbar a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0%;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.navbar a:hover::before,
.navbar a:focus-visible::before,
.navbar a[aria-current="page"]::before {
    width: 100%;
}

/* Hamburger button - only shown on small screens */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Keyboard focus ring for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #4ECDC4;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: #4ECDC4;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
}

.skip-link:focus {
    top: 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

section {
    display: flex;
    justify-content: center;
    align-items:center;
    flex-direction: column;
    min-height: 100vh;
    background: #1F242D;
}

h1 {
    font-size: 60px;
    color:#fff
}

p {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

/* Add padding to all sections to account for fixed header */
section {
    padding-top: 100px !important;
}

/* Override any specific page styles */
.carousel {
    padding-top: 0 !important;
}

.sec-1 {
    position: relative;
    background-image: url("hero-building.webp");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding-top: 100px !important;
}

.sec-1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.sec-1 p,
.sec-1 .autoShow {
    color: #fff ;
    font-size: 40px;
}

.companyName span {
    font-size: 6em;
    color: white;
    font-weight: bold;
    opacity: 0;
    animation: drop 0.1s linear forwards;
}

/* Company name is the page <h1>; keep it sized from the section, not the h1 rules */
.sec-1 .companyName {
    font-size: 16px !important;
    font-weight: normal;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Each word stays together so the name only wraps between words */
.companyName .word {
    white-space: nowrap;
    font-size: 1em !important;
    opacity: 1;
    animation: none;
}

.sec-1 .companyName span[style] {
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes drop {
    0% {
        transform: translateY(-200px) scaleY(0.9);
    }
    5% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(0px) scaleY(1);
        opacity: 1;
    }
    65% {
        transform: translateY(-17px) scaleY(0.9);
    }
    75% {
        transform: translateY(-22px) scaleY(0.9);
    }
    100% {
        transform: translateY(0px) scaleY(1);
        opacity: 1;
    }
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.logo-container img.fade-in-image {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
    max-width: 675px;
    height: auto;
    width: auto;
    z-index: 10;
    position: relative;
    display: block;
    transition: transform 0.1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scroll-rotate {
    transition: transform 0.1s linear;
}

.paragraph-wrapper {
    max-width: 1600px;
    width: 95%;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.paragraph-wrapper p {
    font-size: 20px !important;
    line-height: 1.3 !important;
    text-align: center;
    color: #fff;
    font-weight: 400;
}

@keyframes fadeTextIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paragraph-wrapper p {
    opacity: 0;
    animation: fadeTextIn 1s ease forwards;
    animation-delay: 1.5s;
    font-size: 30px;
    line-height: 1.8;
    text-align: center;
    color: #fff;
    font-weight: 400;
}

.sec-2 {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 20px 80px 20px !important;
    min-height: 100vh;
}

.sec-2 h1 {
    font-size: 60px;
    color: #154c79;
    margin-bottom: 60px;
    text-align: center;
}

.ab_main_container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.ab_con1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    justify-items: center;
}

.ab_con1_s1:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 2;
}

.ab_con1_s1:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 2;
}

/* Product cards use the same look as the Home page service boxes:
   icon and title first, description revealed on hover or keyboard focus */
.ab_con1_s1 {
    position: relative;
    overflow: hidden;
    width: 280px;
    height: 320px;
    margin: 10px;
    background: linear-gradient(135deg, #154c79 0%, #1e6091 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Same four gradients as the service boxes, repeating every four cards */
.ab_con1_s1:nth-child(4n+2) {
    background: linear-gradient(135deg, #154c79 0%, #2874a6 100%);
}

.ab_con1_s1:nth-child(4n+3) {
    background: linear-gradient(135deg, #154c79 0%, #3085bd 100%);
}

.ab_con1_s1:nth-child(4n+4) {
    background: linear-gradient(135deg, #154c79 0%, #3498db 100%);
}

.ab_con1_s1:hover,
.ab_con1_s1:focus {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.product-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transform: translate(0, 0) scale(1);
    transition: all 0.8s ease;
}

.ab_con1_s1 i {
    font-size: 4em;
    color: #fff;
    margin-bottom: 20px;
}

.ab_con1_s1 .product-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 1px;
}

.product-description {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 40px);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px) scale(0.95);
    transition: all 0.8s ease;
}

.ab_con1_s1:hover .product-front,
.ab_con1_s1:focus .product-front {
    opacity: 0;
    transform: translate(0, -20px) scale(0.95);
}

.ab_con1_s1:hover .product-description,
.ab_con1_s1:focus .product-description {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
}



/* Responsive design */
@media (max-width: 768px) {
    .ab_con1 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }

    .ab_con1_s1:nth-child(4) {
        grid-column: 1 / 2;
        grid-row: 3;
    }

    .ab_con1_s1:nth-child(5) {
        grid-column: 2 / 3;
        grid-row: 3;
    }

    .ab_con1_s1 {
        width: 100%;
        max-width: 280px;
    }

    .sec-2 h2 {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .ab_con1 {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .ab_con1_s1:nth-child(4),
    .ab_con1_s1:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
    }

    .ab_con1_s1 {
        width: 95%;
        height: 280px;
        padding: 20px 15px;
    }

    .ab_con1_s1 i {
        font-size: 3em;
    }

    .product-title {
        font-size: 16px;
    }

    .sec-2 h2 {
        font-size: 32px;
    }
}

.sec-3 {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 100px !important;
}

.sec-3 h2 {
    margin-top: 1px;
    margin-bottom: 180px;
    font-size: 60px;
    color: #154c79;
}

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

.about_us_box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 500px;
    margin: 10px;
    border: 3px solid #333;
    background-color: #154c79;
    height: 1000px;
    padding: 20px;
}


.about_us_box h2 {
    font-size: 35px;
    color: #fff;
    height: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding-top: 20px;
    margin-bottom: 20px;
}

.about_us_box p {
    font-size: 30px;
    color:#fff;
}

/* Services Container with Double Height Boxes */
.services-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.service-box {
    background-color: #154c79;
    border-radius: 15px;
    height: 800px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.service-box:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.service-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: white;
}

.service-heading {
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 1;
    transition: all 0.8s ease;
    letter-spacing: 1px;
    transform: translate(0, 0) scale(1);
}

.service-description {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 400;
    opacity: 0;
    transition: all 0.8s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px) scale(0.95);
    width: calc(100% - 60px);
}

.service-box:hover .service-heading {
    opacity: 0;
    transform: translate(0, -20px) scale(0.95);
}

.service-box:hover .service-description {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
}

/* Individual box styling for variety */
.service-box:nth-child(1) {
    background: linear-gradient(135deg, #154c79 0%, #1e6091 100%);
}

.service-box:nth-child(2) {
    background: linear-gradient(135deg, #154c79 0%, #2874a6 100%);
}

.service-box:nth-child(3) {
    background: linear-gradient(135deg, #154c79 0%, #3085bd 100%);
}

.service-box:nth-child(4) {
    background: linear-gradient(135deg, #154c79 0%, #3498db 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    .service-box {
        height: 700px;
    }

    .service-heading {
        font-size: 24px;
    }

    .service-description {
        font-size: 16px;
    }

    .service-content {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .service-box {
        height: 600px;
    }

    .service-heading {
        font-size: 20px;
    }

    .service-description {
        font-size: 14px;
    }

    .service-content {
        padding: 20px;
    }
}

/* Optimized Section 4 - Things we think you should know about us */
.sec-4 {
    display: flex;
    background: #4ECDC4;
    width: 100%;
    padding-top: 80px !important; /* Reduced from 100px */
    padding-bottom: 40px; /* Added bottom padding */
}

.sec-4 h2 {
    font-size: 60px !important; /* Reduced from default */
    margin-bottom: 30px; /* Reduced spacing */
    color: #fff;
}

.to_know_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 95%;
    max-width: 1400px; /* Reduced from 1800px */
    margin: 0 auto;
    padding: 20px; /* Reduced from 40px */
    min-height: 600px; /* Reduced from 1000px */
    position: relative;
}

.to_know_container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background-attachment: fixed;
}

.to_know, .to_know_points, .to_know_paragraph {
    position: relative;
    z-index: 2;
}

.to_know_points, .to_know_points1 {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px; /* Reduced from 30px */
    margin-bottom: 20px; /* Added margin */
}

.to_know_points p, .to_know_points1 p {
    color: #ffffff;
    font-size: 16px; /* Reduced font size */
    line-height: 1.4;
    margin: 0;
}

.to_know_img {
    width: 100%;
    height: 400px; /* Reduced from 800px */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0; /* Reduced from 40px */
    z-index: 2;
    position: relative;
    margin: 20px 0; /* Added margin */
}

.to_know_img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px; /* Added border radius for better look */
}

.box1, .box2, .box3, .box4, .box5, .box6 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px; /* Reduced from 20px */
}

.to_know_paragraph {
    max-width: 1000px; /* Reduced from 1400px */
    width: 95%;
    margin: 20px auto 0 auto; /* Reduced from 40px */
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: auto; /* Removed fixed height */
}

.to_know_paragraph p {
    font-size: 18px; /* Reduced font size */
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .sec-4 h2 {
        font-size: 28px !important;
    }
    
    .to_know_container {
        min-height: 400px;
        padding: 15px;
    }
    
    .to_know_points, .to_know_points1 {
        flex-direction: column;
        gap: 15px;
    }
    
    .to_know_img {
        height: 250px;
    }
    
    .to_know_points p, .to_know_points1 p {
        font-size: 14px;
    }
    
    .to_know_paragraph p {
        font-size: 16px;
    }
    
    .box1, .box2, .box3, .box4, .box5, .box6 {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .sec-4 h2 {
        font-size: 24px !important;
    }
    
    .to_know_container {
        min-height: 350px;
    }
    
    .to_know_img {
        height: 200px;
    }
}



.v_m_container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 2500px;
    margin:10px;
    min-height: 1000px;
}

.vision_box {
    margin:10px;
}

.mission_box {
    margin:10px;
}







/* Scroll-reveal only where the browser supports scroll-driven animations;
   elsewhere content is simply shown */
@supports (animation-timeline: view()) {
    .autoShow {
        animation: autoShowAnimation both;
        animation-timeline: view(70% 5%);
    }
}

@keyframes autoShowAnimation {
    from {
        opacity: 0;
        transform: translateY(200px) scale(0.3);
    }
    to {
        opacity: 1;
        transform: translateY(0)  scale(1);
    }
}

/* About Section */
.about {
    background-color: #4ECDC4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFFFFF;
    padding: 180px 20px 80px 20px !important;
    text-align: center;
}

.about h1 {
    color: #FFFFFF;
}

.about p {
    color: #FFFFFF;
}

.know_the_director {
    background-color: #1F2937;
    padding: 180px 20px 80px 20px !important;
    color: #fff;
}

.know_the_director h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
    color: #fff;
}

.directorcontainer {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: stretch;
}

.image-container {
    flex: 0 0 40%;
    min-width: 300px;
    max-width: 100%;
    height: auto;
    display: flex;
    align-items: stretch;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.director-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.director-description p {
    font-size: 20px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 16px;
}

/* Responsive: Stack image above text on smaller screens */
@media (max-width: 768px) {
    .directorcontainer {
        flex-direction: column;
        align-items: center;
    }

    .image-container, .director-description {
        width: 100%;
        max-width: 100%;
    }
}

.vision {
    background-color: #4ECDC4;
    color: #F8F9FA;
    padding: 180px 20px 80px 20px !important;
    text-align: center;
}

.vision h2 {
    font-size: 60px;
    color: #FFFFFF;
}

.vision p {
    color: #FFFFFF;
}

/* Mission Section */
.mission {
    background-color: #2C3E50;
    color: #EAEAEA;
    padding: 180px 20px 80px 20px !important;
    text-align: center;
}

.mission h2 {
    font-size: 60px;
    color: #FFFFFF;
}

.mission p {
    color: #FFFFFF;
}

.container {
    width: 90%;
    background: #fff;
    border-radius: 6px;
    padding: 40px;
    margin: 40px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container .content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

/* Each contact item block */
.content .details {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Icon styles */
.content .details i {
    font-size: 28px;
    color: #027f88;
    margin-bottom: 10px;
}

/* Title of each block (Address, Phone, etc.) */
.content .details .topic {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000;
}

/* Text under each topic */
.content .details .text-one,
.content .details .text-two {
    font-size: 20px;
    color: #333;
}

/* Link icons (Facebook, LinkedIn) */
.content .details a {
    text-decoration: none;
    color: #027f88;
    font-size: 24px;
    margin-top: 5px;
}

.content .details a:hover {
    color: #0ef;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .container .content {
        flex-direction: column;
        align-items: center;
    }
}

.image-container {
    max-width: 1000px;
    max-height: 2500px;
    overflow: hidden;
    margin: 20px auto;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sec-2 .ab_main_container .ab_con1 {
    display: flex;
    justify-content: center;
    align-items:center;
    flex-direction:row;
}

.contact-title {
    color: white;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 2px;
}

.form-container {
    background: white;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

.form-title {
    color: #666;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #888;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    background: #f0f0f0;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #e8e8e8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #4ECDC4;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #44B09E;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    margin-top: 40px;
}

/* Hide Web3Forms elements that aren't needed for the design */
.h-captcha {
    margin-bottom: 20px;
}

input[type="checkbox"][name="botcheck"] {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-title {
        font-size: 36px;
    }

    .form-container {
        padding: 30px;
        margin: 0 10px;
    }

    .form-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 28px;
    }

    .form-container {
        padding: 25px;
    }
}



/* ===========================================
   SERVICES PAGE - CAROUSEL & DETAIL SECTIONS
   =========================================== */
/* carousel */
.carousel{
    width: 100%;
    height: 100vh;
    margin-top: -50px;
    overflow: hidden;
    position: relative;
}

.carousel .list .item{
    width: 180px;
    height: 250px;
    position: absolute;
    top: 80%;
    transform: translateY(-70%);
    left: 70%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background-position: 50% 50%;
    background-size: cover;
    z-index: 100;
    transition: 1s;
}

/* Dark overlay for carousel items */
.carousel .list .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Adjust opacity: 0.5 = lighter, 0.7 = darker */
    z-index: 1;
}

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.carousel .list .item:nth-child(3){
    left: 67%;
}

.carousel .list .item:nth-child(4){
    left: calc(67% + 200px);
}

.carousel .list .item:nth-child(5){
    left: calc(67% + 400px);
}

.carousel .list .item:nth-child(6){
    left: calc(67% + 600px);
}

.carousel .list .item:nth-child(n+7){
    left: calc(67% + 800px);
    opacity: 0;
}

.list .item .content{
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    width: 400px;
    text-align: left;
    color: #fff;
    display: none;
    z-index: 2; /* Ensure content appears above overlay */
}

.list .item:nth-child(2) .content{
    display: block;
}

.content .title{
    font-size: 60px;
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;
    line-height: 1;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Enhanced readability */
}

.content .name{
    font-size: 60px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
    text-shadow: 3px 4px 4px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content .des{
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 20px;
    margin-left: 5px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.9s 1 forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Enhanced readability */
}

.content .btn{
    margin-left: 5px;
    opacity: 0;
    animation: animate 1s ease-in-out 1.2s 1 forwards;
}

.content .btn button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #fff;
}

.content .btn button:nth-child(1){
    margin-right: 15px;
}

.content .btn button:nth-child(2){
    background: transparent;
    color: #4ECDC4;
    border: 2px solid #fff;
    transition: 0.3s;
}

.content .btn button:nth-child(2):hover{
    background-color: #4ECDC4;
    color: #fff;
    border-color: #4ECDC4;
}

@keyframes animate {
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* next prev arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.arrows button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4ECDC4;
    color: #fff;
    border: none;
    outline: none;
    font-size: 25px;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}

.arrows button:hover{
    background: #fff;
    color: #000;
}

@media screen and (max-width: 999px){

    .list .item .content{
        left: 50px;
    }

    .content .title, .content .name{
        font-size: 70px;
    }

    .content .des{
        font-size: 16px;
    }
}

@media screen and (max-width: 690px){
    .list .item .content{
        top: 40%;
    }

    .content .title, .content .name{
        font-size: 45px;
    }

    .content .btn button{
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Content Sections Styles */
.content-sections {
    width: 100%;
}

.content-sections .section-item {
    width: 100%;
    height: 100vh;
    position: relative;
    background-position: 50% 50%;
    background-size: cover;
}

/* Dark overlay for content sections */
.content-sections .section-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Adjust opacity as needed */
    z-index: 1;
}

.content-sections .section-item .content {
    position: absolute;
    top: 50%;
    left: 100px;
    transform: translateY(-50%);
    width: 400px;
    text-align: left;
    color: #fff;
    display: block;
    z-index: 2; /* Ensure content appears above overlay */
}

.content-sections .section-item .content .title {
    font-size: 60px;
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;
    line-height: 1;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Enhanced readability */
}

.content-sections .section-item .content .name {
    font-size: 60px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
    text-shadow: 3px 4px 4px rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.content-sections .section-item .content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 20px;
    margin-left: 5px;
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Enhanced readability */
}

/* Enhanced text shadow for better readability on lists */
.content-sections .section-item .content .points ul {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.content-sections .section-item .content .points li {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: #fff;
    margin-bottom: 8px;
    font-size: 18px;
}

/* Responsive styles for sections */
@media screen and (max-width: 999px) {
    .content-sections .section-item .content {
        left: 50px;
    }

    .content-sections .section-item .content .title,
    .content-sections .section-item .content .name {
        font-size: 70px;
    }

    .content-sections .section-item .content .des {
        font-size: 30px;
    }
}

@media screen and (max-width: 690px) {
    .content-sections .section-item .content {
        top: 40%;
    }

    .content-sections .section-item .content .title,
    .content-sections .section-item .content .name {
        font-size: 45px;
    }
}


.btn-link {
    padding: 10px 20px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-link:hover {
    background: #14ff72cb;
    color: #fff;
    border-color: #14ff72cb;
}

/* Add this to ensure proper scroll positioning with fixed header */
.section-item {
    scroll-margin-top: 50px;
}

/* Quick fix for 1366x768 - add to styles.css */
@media screen and (max-width: 1366px) {
    .companyName span { font-size: 3em !important; }
    .logo-container img.fade-in-image { max-width: 300px !important; }
    .paragraph-wrapper p { font-size: 18px !important; }
    
    /* Make all h1 headings smaller */
    h1 { font-size: 45px !important; }
    .sec-2 h1 { font-size: 45px !important; }
    .sec-3 h2 { font-size: 45px !important; }
    .sec-4 h2 { font-size: 45px !important; }
    .about h1 { font-size: 45px !important; }
    .vision h2 { font-size: 45px !important; }
    .mission h2 { font-size: 45px !important; }
    .know_the_director h2 { font-size: 35px !important; }
    .contact-title { font-size: 35px !important; }
    
    /* Make service boxes smaller */
    .service-box { 
        height: 600px !important;
    }
    
    .service-heading { 
        font-size: 24px !important;
    }
    
    .service-description { 
        font-size: 18px !important;
    }
    
    /* Reduce container spacing */
    .services-container {
        gap: 20px !important;
        padding: 20px 0 !important;
    }
    
    /* Reduce section padding */
    .sec-3 {
        padding-top: 80px !important;
    }
    
    /* Make gap much smaller between heading and service boxes */
    .sec-3 h2 {
        margin-bottom: 10px !important;
    }
    
    /* Condense "Things we think you should know about us" section */
    .sec-4 {
        padding-top: 60px !important;
        padding-bottom: 30px !important;
    }
    
    .sec-4 h2 {
        font-size: 35px !important;
        margin-bottom: 15px !important;
    }
    
    .to_know_container {
        min-height: 400px !important;
        padding: 10px !important;
    }
    
    .to_know_img {
        height: 200px !important;
        margin: 10px 0 !important;
    }
    
    .to_know_points p, .to_know_points1 p {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    
    .to_know_paragraph p {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin: 10px 0 !important;
    }
    
    .to_know_points, .to_know_points1 {
        margin-bottom: 10px !important;
    }
    
    .box1, .box2, .box3, .box4, .box5, .box6 {
        padding: 10px !important;
    }
    
    /* Make About section paragraph text smaller */
    .about p {
        font-size: 16px !important; /* Reduced from 20px */
        line-height: 1.5 !important; /* Tighter line spacing */
    }

    .know_the_director p {
        font-size: 16px !important;
    }
    
    .vision p {
        font-size: 16px !important;
    }

    .mission p {
        font-size: 16px !important;
    }
    
    /* Make contact form smaller */
    .contact-section {
        padding: 80px 20px 40px 20px !important; /* Reduced from 120px 20px 60px 20px */
    }
    
    .contact-title {
        font-size: 32px !important; /* Reduced from 48px */
        margin-bottom: 25px !important; /* Reduced from 40px */
    }
    
    .form-container {
        padding: 30px !important; /* Reduced from 50px */
        max-width: 400px !important; /* Reduced from 500px */
    }
    
    .form-title {
        font-size: 20px !important; /* Reduced from 24px */
        margin-bottom: 25px !important; /* Reduced from 40px */
    }
    
    .form-group {
        margin-bottom: 18px !important; /* Reduced from 25px */
    }
    
    .form-group label {
        font-size: 14px !important; /* Reduced from 16px */
        margin-bottom: 5px !important; /* Reduced from 8px */
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px !important; /* Reduced from 15px */
        font-size: 14px !important; /* Reduced from 16px */
    }
    
    .form-group textarea {
        min-height: 100px !important; /* Reduced from 120px */
    }
    
    .submit-btn {
        padding: 12px !important; /* Reduced from 15px */
        font-size: 16px !important; /* Reduced from 18px */
        margin-top: 8px !important; /* Reduced from 10px */
    }
    
    /* Condense services sections content */
    .content-sections .section-item .content {
        left: 60px !important; /* Reduced from 100px */
        width: 350px !important; /* Reduced from 400px */
    }
    
    .content-sections .section-item .content .title {
        font-size: 40px !important; /* Reduced from 60px */
        line-height: 1.1 !important; /* Tighter line height */
    }
    
    .content-sections .section-item .content .des {
        font-size: 16px !important; /* Reduced from 20px */
        margin-top: 8px !important; /* Reduced from 10px */
        margin-bottom: 15px !important; /* Reduced from 20px */
        line-height: 1.4 !important; /* Tighter line spacing */
    }
    
    .content-sections .section-item .content .points ul {
        margin-top: 10px !important;
    }
    
    .content-sections .section-item .content .points li {
        font-size: 14px !important; /* Reduced from 18px */
        margin-bottom: 4px !important; /* Reduced from 8px */
        line-height: 1.3 !important; /* Tighter line spacing */
    }
    
    /* Condense carousel sections content */
    .carousel .list .item .content {
        left: 60px !important; /* Reduced from 100px */
        width: 350px !important; /* Reduced from 400px */
    }
    
    .carousel .list .item .content .title {
        font-size: 40px !important; /* Reduced from 60px */
        line-height: 1.1 !important; /* Tighter line height */
    }
    
    .carousel .list .item .content .des {
        font-size: 16px !important; /* Reduced from 20px */
        margin-top: 8px !important; /* Reduced from 10px */
        margin-bottom: 15px !important; /* Reduced from 20px */
        line-height: 1.4 !important; /* Tighter line spacing */
    }
    
    .carousel .list .item .content .name {
        font-size: 40px !important; /* Reduced from 60px */
        line-height: 1.1 !important; /* Tighter line height */
    }
}

@media screen and (min-width: 1367px) and (max-width: 1440px) {
    .companyName span { font-size: 3.5em !important; }
    .logo-container img.fade-in-image { max-width: 350px !important; }
    .paragraph-wrapper p { font-size: 20px !important; }
    
    /* Make all h1 headings slightly larger than 1366x768 */
    h1 { font-size: 50px !important; }
    .sec-2 h1 { font-size: 50px !important; }
    .sec-3 h2 { font-size: 50px !important; }
    .sec-4 h2 { font-size: 50px !important; }
    .about h1 { font-size: 50px !important; }
    .vision h2 { font-size: 50px !important; }
    .mission h2 { font-size: 50px !important; }
    .know_the_director h2 { font-size: 40px !important; }
    .contact-title { font-size: 38px !important; }
    
    /* Make service boxes slightly larger */
    .service-box { 
        height: 650px !important;
    }
    
    .service-heading { 
        font-size: 26px !important;
    }
    
    .service-description { 
        font-size: 19px !important;
    }
    
    /* Container spacing */
    .services-container {
        gap: 22px !important;
        padding: 25px 0 !important;
    }
    
    .sec-3 {
        padding-top: 85px !important;
    }
    
    .sec-3 h2 {
        margin-bottom: 12px !important;
    }
    
    /* "Things we think you should know about us" section */
    .sec-4 {
        padding-top: 65px !important;
        padding-bottom: 35px !important;
    }
    
    .sec-4 h2 {
        font-size: 40px !important;
        margin-bottom: 18px !important;
    }
    
    .to_know_container {
        min-height: 450px !important;
        padding: 12px !important;
    }
    
    .to_know_img {
        height: 230px !important;
        margin: 12px 0 !important;
    }
    
    .to_know_points p, .to_know_points1 p {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    
    .to_know_paragraph p {
        font-size: 17px !important;
        line-height: 1.5 !important;
        margin: 12px 0 !important;
    }
    
    .to_know_points, .to_know_points1 {
        margin-bottom: 12px !important;
    }
    
    .box1, .box2, .box3, .box4, .box5, .box6 {
        padding: 12px !important;
    }
    
    /* About section paragraphs */
    .about p {
        font-size: 17px !important;
        line-height: 1.6 !important;
    }

    .know_the_director p {
        font-size: 17px !important;
    }
    
    .vision p {
        font-size: 17px !important;
    }

    .mission p {
        font-size: 17px !important;
    }
    
    /* Contact form */
    .contact-section {
        padding: 90px 20px 45px 20px !important;
    }
    
    .contact-title {
        font-size: 36px !important;
        margin-bottom: 28px !important;
    }
    
    .form-container {
        padding: 35px !important;
        max-width: 430px !important;
    }
    
    .form-title {
        font-size: 22px !important;
        margin-bottom: 28px !important;
    }
    
    .form-group {
        margin-bottom: 20px !important;
    }
    
    .form-group label {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 13px !important;
        font-size: 15px !important;
    }
    
    .form-group textarea {
        min-height: 110px !important;
    }
    
    .submit-btn {
        padding: 13px !important;
        font-size: 17px !important;
        margin-top: 9px !important;
    }
    
    /* Services sections content */
    .content-sections .section-item .content {
        left: 70px !important;
        width: 380px !important;
    }
    
    .content-sections .section-item .content .title {
        font-size: 45px !important;
        line-height: 1.2 !important;
    }
    
    .content-sections .section-item .content .des {
        font-size: 17px !important;
        margin-top: 9px !important;
        margin-bottom: 17px !important;
        line-height: 1.5 !important;
    }
    
    .content-sections .section-item .content .points li {
        font-size: 15px !important;
        margin-bottom: 5px !important;
        line-height: 1.4 !important;
    }
    
    /* Carousel sections content */
    .carousel .list .item .content {
        left: 70px !important;
        width: 380px !important;
    }
    
    .carousel .list .item .content .title {
        font-size: 45px !important;
        line-height: 1.2 !important;
    }
    
    .carousel .list .item .content .des {
        font-size: 17px !important;
        margin-top: 9px !important;
        margin-bottom: 17px !important;
        line-height: 1.5 !important;
    }
    
    .carousel .list .item .content .name {
        font-size: 45px !important;
        line-height: 1.2 !important;
    }
}

/* Quick fix for 1536x864 - REDUCED SERVICES SECTION SIZES */
@media screen and (min-width: 1441px) and (max-width: 1536px) {
    .companyName span { font-size: 4em !important; }
    .logo-container img.fade-in-image { max-width: 400px !important; }
    .paragraph-wrapper p { font-size: 22px !important; }
    
    /* Make all h1 headings medium size */
    h1 { font-size: 52px !important; }
    .sec-2 h1 { font-size: 52px !important; }
    .sec-3 h2 { font-size: 52px !important; }
    .sec-4 h2 { font-size: 52px !important; }
    .about h1 { font-size: 52px !important; }
    .vision h2 { font-size: 52px !important; }
    .mission h2 { font-size: 52px !important; }
    .know_the_director h2 { font-size: 42px !important; }
    .contact-title { font-size: 40px !important; }
    
    /* Make service boxes medium size */
    .service-box { 
        height: 700px !important;
    }
    
    .service-heading { 
        font-size: 28px !important;
    }
    
    .service-description { 
        font-size: 20px !important;
    }
    
    /* Container spacing */
    .services-container {
        gap: 25px !important;
        padding: 30px 0 !important;
    }
    
    .sec-3 {
        padding-top: 90px !important;
    }
    
    .sec-3 h2 {
        margin-bottom: 15px !important;
    }
    
    /* "Things we think you should know about us" section */
    .sec-4 {
        padding-top: 70px !important;
        padding-bottom: 40px !important;
    }
    
    .sec-4 h2 {
        font-size: 42px !important;
        margin-bottom: 20px !important;
    }
    
    .to_know_container {
        min-height: 500px !important;
        padding: 15px !important;
    }
    
    .to_know_img {
        height: 280px !important;
        margin: 15px 0 !important;
    }
    
    .to_know_points p, .to_know_points1 p {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    
    .to_know_paragraph p {
        font-size: 18px !important;
        line-height: 1.5 !important;
        margin: 15px 0 !important;
    }
    
    .to_know_points, .to_know_points1 {
        margin-bottom: 15px !important;
    }
    
    .box1, .box2, .box3, .box4, .box5, .box6 {
        padding: 15px !important;
    }
    
    /* About section paragraphs */
    .about p {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }

    .know_the_director p {
        font-size: 18px !important;
    }
    
    .vision p {
        font-size: 18px !important;
    }

    .mission p {
        font-size: 18px !important;
    }
    
    /* Contact form */
    .contact-section {
        padding: 100px 20px 50px 20px !important;
    }
    
    .contact-title {
        font-size: 40px !important;
        margin-bottom: 32px !important;
    }
    
    .form-container {
        padding: 40px !important;
        max-width: 460px !important;
    }
    
    .form-title {
        font-size: 23px !important;
        margin-bottom: 32px !important;
    }
    
    .form-group {
        margin-bottom: 22px !important;
    }
    
    .form-group label {
        font-size: 15px !important;
        margin-bottom: 7px !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px !important;
        font-size: 15px !important;
    }
    
    .form-group textarea {
        min-height: 115px !important;
    }
    
    .submit-btn {
        padding: 14px !important;
        font-size: 17px !important;
        margin-top: 10px !important;
    }
    
    /* Services sections content - REDUCED SIZES TO PREVENT OVERFLOW */
    .content-sections .section-item .content {
        left: 70px !important; /* Reduced from 80px */
        width: 380px !important; /* Reduced from 420px */
    }
    
    .content-sections .section-item .content .title {
        font-size: 42px !important; /* Reduced from 50px */
        line-height: 1.1 !important; /* Tighter line height */
    }
    
    .content-sections .section-item .content .des {
        font-size: 16px !important; /* Reduced from 18px */
        margin-top: 8px !important; /* Reduced from 10px */
        margin-bottom: 15px !important; /* Reduced from 18px */
        line-height: 1.4 !important; /* Tighter line spacing */
    }
    
    .content-sections .section-item .content .points li {
        font-size: 14px !important; /* Reduced from 16px */
        margin-bottom: 4px !important; /* Reduced from 6px */
        line-height: 1.3 !important; /* Tighter line spacing */
    }
    
    /* Carousel sections content - REDUCED SIZES TO PREVENT OVERFLOW */
    .carousel .list .item .content {
        left: 70px !important; /* Reduced from 80px */
        width: 380px !important; /* Reduced from 420px */
    }
    
    .carousel .list .item .content .title {
        font-size: 42px !important; /* Reduced from 50px */
        line-height: 1.1 !important; /* Tighter line height */
    }
    
    .carousel .list .item .content .des {
        font-size: 16px !important; /* Reduced from 18px */
        margin-top: 8px !important; /* Reduced from 10px */
        margin-bottom: 15px !important; /* Reduced from 18px */
        line-height: 1.4 !important; /* Tighter line spacing */
    }
    
    .carousel .list .item .content .name {
        font-size: 42px !important; /* Reduced from 50px */
        line-height: 1.1 !important; /* Tighter line height */
    }
}

/* Quick fix for 1600x900 - REDUCED SERVICES SECTION SIZES */
@media screen and (min-width: 1537px) and (max-width: 1600px) {
    .companyName span { font-size: 4.5em !important; }
    .logo-container img.fade-in-image { max-width: 450px !important; }
    .paragraph-wrapper p { font-size: 24px !important; }
    
    /* Make all h1 headings larger */
    h1 { font-size: 55px !important; }
    .sec-2 h1 { font-size: 55px !important; }
    .sec-3 h2 { font-size: 55px !important; }
    .sec-4 h2 { font-size: 55px !important; }
    .about h1 { font-size: 55px !important; }
    .vision h2 { font-size: 55px !important; }
    .mission h2 { font-size: 55px !important; }
    .know_the_director h2 { font-size: 45px !important; }
    .contact-title { font-size: 42px !important; }
    
    /* Make service boxes larger */
    .service-box { 
        height: 750px !important;
    }
    
    .service-heading { 
        font-size: 29px !important;
    }
    
    .service-description { 
        font-size: 21px !important;
    }
    
    /* Container spacing */
    .services-container {
        gap: 28px !important;
        padding: 35px 0 !important;
    }
    
    .sec-3 {
        padding-top: 95px !important;
    }
    
    .sec-3 h2 {
        margin-bottom: 18px !important;
    }
    
    /* "Things we think you should know about us" section */
    .sec-4 {
        padding-top: 75px !important;
        padding-bottom: 45px !important;
    }
    
    .sec-4 h2 {
        font-size: 45px !important;
        margin-bottom: 22px !important;
    }
    
    .to_know_container {
        min-height: 550px !important;
        padding: 18px !important;
    }
    
    .to_know_img {
        height: 320px !important;
        margin: 18px 0 !important;
    }
    
    .to_know_points p, .to_know_points1 p {
        font-size: 17px !important;
        line-height: 1.5 !important;
    }
    
    .to_know_paragraph p {
        font-size: 19px !important;
        line-height: 1.6 !important;
        margin: 18px 0 !important;
    }
    
    .to_know_points, .to_know_points1 {
        margin-bottom: 18px !important;
    }
    
    .box1, .box2, .box3, .box4, .box5, .box6 {
        padding: 18px !important;
    }
    
    /* About section paragraphs */
    .about p {
        font-size: 19px !important;
        line-height: 1.7 !important;
    }

    .know_the_director p {
        font-size: 19px !important;
    }
    
    .vision p {
        font-size: 19px !important;
    }

    .mission p {
        font-size: 19px !important;
    }
    
    /* Contact form */
    .contact-section {
        padding: 110px 20px 55px 20px !important;
    }
    
    .contact-title {
        font-size: 44px !important;
        margin-bottom: 35px !important;
    }
    
    .form-container {
        padding: 45px !important;
        max-width: 480px !important;
    }
    
    .form-title {
        font-size: 23px !important;
        margin-bottom: 35px !important;
    }
    
    .form-group {
        margin-bottom: 24px !important;
    }
    
    .form-group label {
        font-size: 15px !important;
        margin-bottom: 7px !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px !important;
        font-size: 15px !important;
    }
    
    .form-group textarea {
        min-height: 118px !important;
    }
    
    .submit-btn {
        padding: 14px !important;
        font-size: 18px !important;
        margin-top: 10px !important;
    }
    
    /* Services sections content - REDUCED SIZES TO PREVENT OVERFLOW */
    .content-sections .section-item .content {
        left: 75px !important; /* Reduced from 90px */
        width: 400px !important; /* Reduced from 450px */
    }
    
    .content-sections .section-item .content .title {
        font-size: 45px !important; /* Reduced from 52px */
        line-height: 1.1 !important; /* Tighter line height */
    }
    
    .content-sections .section-item .content .des {
        font-size: 17px !important; /* Reduced from 19px */
        margin-top: 8px !important; /* Reduced from 10px */
        margin-bottom: 16px !important; /* Reduced from 19px */
        line-height: 1.4 !important; /* Tighter line spacing */
    }
    
    .content-sections .section-item .content .points li {
        font-size: 15px !important; /* Reduced from 17px */
        margin-bottom: 5px !important; /* Reduced from 7px */
        line-height: 1.3 !important; /* Tighter line spacing */
    }
    
    /* Carousel sections content - REDUCED SIZES TO PREVENT OVERFLOW */
    .carousel .list .item .content {
        left: 75px !important; /* Reduced from 90px */
        width: 400px !important; /* Reduced from 450px */
    }
    
    .carousel .list .item .content .title {
        font-size: 45px !important; /* Reduced from 52px */
        line-height: 1.1 !important; /* Tighter line height */
    }
    
    .carousel .list .item .content .des {
        font-size: 17px !important; /* Reduced from 19px */
        margin-top: 8px !important; /* Reduced from 10px */
        margin-bottom: 16px !important; /* Reduced from 19px */
        line-height: 1.4 !important; /* Tighter line spacing */
    }
    
    .carousel .list .item .content .name {
        font-size: 45px !important; /* Reduced from 52px */
        line-height: 1.1 !important; /* Tighter line height */
    }
}

/* ===========================================
   SERVICES PAGE BACKGROUND IMAGES
   =========================================== */
.bg-hr-consulting { background-image: url("hr-consulting.webp"); }
.bg-training      { background-image: url("training.webp"); }
.bg-payroll       { background-image: url("payroll.webp"); }
.bg-recruitment   { background-image: url("recruitment.webp"); }

/* Products are a list for screen readers; hide the bullets */
.ab_con1 {
    list-style: none;
}

/* Keyboard users can reveal the service descriptions the same way as hovering */
.service-box:focus .service-heading {
    opacity: 0;
    transform: translate(0, -20px) scale(0.95);
}

.service-box:focus .service-description {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
}

/* ===========================================
   RESPONSIVE: TABLETS & PHONES
   Kept last so it wins over the desktop size rules above.
   =========================================== */

/* Fixed backgrounds are not supported on phones/tablets and show a zoomed, blurry image */
@media (hover: none), (max-width: 1024px) {
    .sec-1,
    .about {
        background-attachment: scroll;
    }
}

/* Smaller image files for smaller screens */
@media (max-width: 1000px) {
    .sec-1 { background-image: url("hero-building-sm.webp"); }
    .bg-hr-consulting { background-image: url("hr-consulting-sm.webp"); }
    .bg-training      { background-image: url("training-sm.webp"); }
    .bg-payroll       { background-image: url("payroll-sm.webp"); }
    .bg-recruitment   { background-image: url("recruitment-sm.webp"); }
}

/* Home service cards: below this width four 300px cards no longer fit side by side */
@media (max-width: 1310px) {
    .services-container {
        width: 100%;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Products: let cards wrap onto new rows instead of squashing */
.sec-2 .ab_main_container .ab_con1 {
    flex-wrap: wrap;
    max-width: 100%;
    gap: 20px;
}

/* Header: hamburger menu */
@media (max-width: 860px) {
    .header {
        height: 70px;
        padding: 10px 20px;
    }

    .logo img {
        height: 44px;
    }

    .nav-toggle {
        display: flex;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px 20px;
        background: rgba(0, 0, 0, 0.85);
    }

    .header.nav-open .navbar {
        display: flex;
    }

    .navbar a {
        margin-left: 0;
        padding: 12px 0;
    }

    .navbar a::before {
        top: calc(100% - 10px);
    }
}

@media (max-width: 768px) {
    section {
        padding-top: 90px !important;
    }

    /* About page */
    .about,
    .know_the_director,
    .vision,
    .mission {
        padding: 110px 20px 60px 20px !important;
    }

    .image-container {
        min-width: 0;
        flex-basis: auto;
    }

    /* Home: headings that wrap stay centred with a side gutter */
    .sec-3 h2,
    .sec-4 h2 {
        text-align: center;
        padding: 0 16px;
    }

    /* Home: service cards fill the width with a side gutter */
    .services-container {
        width: 100%;
        padding: 20px 16px !important;
    }

    .service-box {
        height: 420px !important;
    }

    .service-box:hover,
    .ab_con1_s1:hover,
    .ab_con1_s1:focus {
        transform: none;
    }

    /* Footer */
    .container {
        width: auto;
        margin: 24px 16px;
        padding: 30px 20px;
    }

    /* Contact */
    .contact-section {
        padding: 100px 16px 40px 16px !important;
    }

    .form-container {
        margin: 0;
    }
}

/* Services page: stack the text on small or short screens */
@media (max-width: 768px), (max-height: 500px) {
    .carousel {
        margin-top: 0;
        height: 100svh;
        min-height: 560px;
    }

    .carousel .list .item .content {
        top: 90px !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
        transform: none;
    }

    .carousel .list .item .content .title {
        font-size: 30px !important;
    }

    .carousel .list .item .content .des {
        font-size: 15px !important;
    }

    .carousel .list .item:nth-child(n+3) {
        width: 90px;
        height: 125px;
        top: auto;
        bottom: 20px;
        transform: none;
        border-radius: 12px;
    }

    .carousel .list .item:nth-child(3) { left: calc(100% - 210px); }
    .carousel .list .item:nth-child(4) { left: calc(100% - 110px); }
    .carousel .list .item:nth-child(5) { left: 100%; }
    .carousel .list .item:nth-child(n+6) { left: 100%; opacity: 0; }

    .arrows {
        top: auto;
        bottom: 55px;
        left: 20px;
        right: auto;
        width: auto;
        max-width: none;
    }

    .content-sections .section-item {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 60px !important;
        justify-content: flex-start;
    }

    .content-sections .section-item .content {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 600px;
        transform: none;
    }

    .content-sections .section-item .content .title {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    .sec-1 .companyName span {
        font-size: 2.6em !important;
    }

    .sec-1 .companyName .word {
        font-size: 1em !important;
    }

    .ab_con1_s1 {
        width: 100%;
    }
}

/* Visitors who prefer less motion get content without the animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .autoShow {
        animation: none !important;
    }
}
