:root {
    /* Colors */
    --color-primary: #178d80;
    --color-secondary: #bbd015;
    --color-accent: #e2ff00;
    --color-text-dark: #3f3f3f;
    --color-text-light: #ffffff;
    --color-text-gray: #5e5e5e;
    --color-text-placeholder: #929292;
    --color-background-light: #ffffff;
    --color-background-gray: #f5f5f5;
    --color-black: #000000;
    --color-border: #c7c7c7;

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* --- BASE & RESET --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 140px;
    padding-right: 140px;
}

/* --- UTILITY CLASSES --- */
.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 30px;
    color: var(--color-text-dark);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    color: var(--color-text-dark);
    max-width: 800px;
    margin: 0 auto 50px;
}

.title-decorator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.title-decorator span {
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 30px;
}

.title-decorator span:first-child {
    width: 210px;
}

.title-decorator span:last-child {
    width: 70px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 54px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-outline-dark {
    border: 2px solid var(--color-text-dark);
    color: var(--color-text-dark);
}

.btn-outline-dark:hover {
    background-color: var(--color-text-dark);
    color: var(--color-background-light);
}

.btn-outline-light {
    border: 2px solid var(--color-text-light);
    color: var(--color-text-light);
}

.btn-outline-light:hover {
    background-color: var(--color-text-light);
    color: var(--color-text-dark);
}

/* --- HEADER --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--color-background-gray);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.header__logo img {
    width: 232px;
}

.header__contact {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 20px;
    color: var(--color-black);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 850px;
    background: url('assets/images/hero-background.png') no-repeat center center/cover;
    padding-top: 50px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero__content {
    color: var(--color-text-light);
    max-width: 700px;
    display: flex;
    margin-top: -50px;
    flex-direction: column;
    min-height: 100%;
    justify-content: space-between;
}

.hero__title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 50px;
    line-height: 1.3;
}

.hero__subtitle {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 25px;
    line-height: 1.4;
    max-width: 690px;
    margin-bottom: 0;
}

.hero__awards {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px 32px;
    border-radius: 60px;
    margin-top: 180px;
    color: var(--color-text-dark);
}

.hero__award-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    color: var(--color-text-dark);
}

.hero__award-item img {
    width: 53px;
    height: 53px;
}

.hero__form-container {
    background-color: var(--color-background-light);
    border-radius: 15px;
    padding: 30px 40px;
    width: 100%;
    max-width: 555px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero__form h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    margin-bottom: 25px;
}

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

.form-group label {
    font-size: 10px;
    display: block;
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 37px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    padding: 0 12px;
    font-size: 10px;
}

.form-group input::placeholder,
.form-group select {
    color: var(--color-text-placeholder);
}

.hero__form button {
    width: 100%;
    height: 37px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.form-guarantee {
    font-size: 10px;
    color: var(--color-text-gray);
    text-align: center;
    margin-top: 15px;
}

/* --- OVERVIEW SECTION --- */
.overview {
    background-color: var(--color-background-gray);
}

.overview .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.overview__image {
    flex-shrink: 0;
}

.overview__image img {
    width: 670px;
    height: 411px;
    border-radius: 20px;
    object-fit: cover;
}

.overview__content {
    max-width: 690px;
}

.overview__content .section-title,
.overview__content .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.overview__content .title-decorator {
    justify-content: flex-start;
}

.overview__text {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.56;
    margin-bottom: 40px;
}

/* --- TRUSTED CLIENTS --- */
.clients .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clients__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px;
    width: 100%;
    max-width: 1280px;
    margin-bottom: 30px;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.client-item img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.clients__footer-text {
    font-family: var(--font-primary);
    font-size: 18px;
}

/* --- WHY US SECTION --- */
.why-us {
    background: url('assets/images/why-us-background.png') no-repeat center center/cover;
    color: var(--color-text-light);
}

.why-us .section-title,
.why-us .section-subtitle {
    color: var(--color-text-light);
}

.why-us .title-decorator span {
    background-color: var(--color-text-light);
}

.why-us__features {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    width: 100%;
    min-height: 186px;
    padding: 20px;
    text-align: center;
    color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-card__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.feature-card__title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.39;
}

.why-us__cta-text {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.why-us .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .why-us__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- EXPERTISE SECTION --- */
.expertise .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expertise__carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: calc(100vw - 280px);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 1600px) {
    .expertise__carousel-wrapper {
        max-width: calc(100vw - 160px);
    }
}

@media (max-width: 1200px) {
    .expertise__carousel-wrapper {
        max-width: calc(100vw - 80px);
    }
}

@media (max-width: 768px) {
    .expertise__carousel-wrapper {
        max-width: calc(100vw - 40px);
    }
}

.carousel-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--color-secondary);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.expertise__slider {
    width: 100%;
    overflow: hidden;
    flex: 1;
}

.expertise__slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.expertise-slide {
    flex: 0 0 360px;
    max-width: 360px;
}

.expertise-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D9D9D9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: var(--color-primary);
}

/* --- CHALLENGES SECTION --- */
.challenges {
    background-color: var(--color-background-gray);
}

.challenges .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.challenges__list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    max-width: 1200px;
}

.challenge-item {
    font-family: var(--font-primary);
    font-size: 18px;
    text-align: center;
    padding: 0 20px;
    position: relative;
    max-width: 210px;
}

.challenge-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 80%;
    background-color: var(--color-text-dark);
}

.challenges__solution {
    font-family: var(--font-primary);
    font-size: 20px;
    text-align: center;
    max-width: 1070px;
}

/* --- RECENT PROJECTS --- */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 221px;
    object-fit: cover;
    display: block;
}

.project-card__info {
    background-color: rgba(238, 238, 238, 0.95);
    padding: 20px;
    padding-top: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-card:hover .project-card__info {
    transform: translateY(0);
}

.project-card__title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.project-card__location {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 10px;
    text-align: center;
    margin-bottom: 35px;
}

.project-card__tag {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 50px;
    padding: 2px 15px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.projects .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials {
    background-color: var(--color-background-gray);
}

.testimonials .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonials__slider {
    overflow: hidden;
    width: 100%;
    max-width: 712px;
    margin-bottom: 30px;
}

.testimonials__slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
    text-align: center;
}

.testimonial-slide__text {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-slide__author {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 20px;
}

.testimonials__footer {
    text-align: center;
}

.testimonials__footer-text {
    font-family: var(--font-primary);
    font-size: 15px;
    margin-bottom: 30px;
}

/* --- CTA SECTION --- */
.cta {
    background: linear-gradient(90deg, #178D80 59%, #BBD015 100%);
    color: var(--color-text-light);
    margin-bottom: 60px;
}

.cta .section-title,
.cta .section-subtitle {
    color: var(--color-text-light);
}

.cta .title-decorator span {
    background-color: var(--color-text-light);
}

.cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding-top: 50px;
    padding-bottom: 50px;
}

.footer__main {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 50px;
}

.footer__info {
    max-width: 460px;
}

.footer__logo {
    width: 232px;
    margin-bottom: 40px;
}

.footer__contact-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 25px;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.footer__contact-details {
    font-family: var(--font-secondary);
    font-size: 20px;
    line-height: 2.5;
}

.footer__contact-details a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__contact-details a:hover {
    opacity: 0.8;
}

.footer__contact-details a img {
    width: 20px;
    height: 20px;
}

.footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.footer__socials img {
    width: 20px;
    height: 20px;
}

.footer__map-container {
    position: relative;
}

.footer__map {
    width: 787px;
    height: 406px;
    border-radius: 20px;
    border: 0;
}

.footer__map-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 15px 30px;
    border-radius: 15px;
    font-family: var(--font-secondary);
    font-size: 25px;
}

.footer__bottom {
    border-top: 1px solid var(--color-secondary);
    padding: 20px 0;
}

.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 15px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1600px) {
    .container {
        padding-left: 80px;
        padding-right: 80px;
    }

    .footer__map {
        width: 600px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero .container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__awards {
        justify-content: center;
    }

    .overview .container {
        flex-direction: column;
        text-align: center;
    }

    .overview__content .section-title,
    .overview__content .section-subtitle {
        text-align: center;
    }

    .overview__content .title-decorator {
        justify-content: center;
    }

    .footer__main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__map {
        width: 100%;
        max-width: 700px;
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .expertise__carousel-wrapper {
        gap: 10px;
    }

    .expertise-slide {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle,
    .overview__text,
    .challenges__solution,
    .clients__footer-text {
        font-size: 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .header .container {
        height: 100px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .header__logo img {
        width: 180px;
    }

    .header__contact {
        font-size: 14px;
    }

    .hero {
        min-height: 1000px;
        height: auto;
        width: 100%;
        padding: 180px 0 60px;
        background: url('assets/images/hero-background-mobile.png') no-repeat center top;
        background-size: contain;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__content {
        order: 1;
        width: 100%;
    }

    .hero__form-container {
        order: 2;
        width: 100%;
    }

    .hero__awards {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        border-radius: 24px;
        width: 100%;
        max-width: 360px;
        align-self: center;
        order: 3;
        margin-top: 30px;
    }

    .hero__award-item {
        font-size: 14px;
        justify-content: center;
        text-align: center;
    }

    .hero__award-item img {
        width: 40px;
        height: 40px;
    }

    .clients__grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .project-card img {
        height: 160px;
    }

    .project-card__info {
        padding: 15px 10px 20px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .expertise__carousel-wrapper {
        gap: 8px;
    }

    .expertise-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .challenge-item {
        padding: 0 20px;
        max-width: 210px;
        width: auto;
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
        position: relative;
        font-size: 14px;
    }

    .challenge-item::after {
        display: none;
    }

    .challenge-item:nth-child(1)::after,
    .challenge-item:nth-child(3)::after {
        display: block;
        content: '';
        position: absolute;
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 80%;
        background-color: var(--color-text-dark);
    }

    .challenges__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 40px;
    }

    .challenges__list .challenge-item:last-child {
        grid-column: 1 / -1;
        max-width: 210px;
        margin: 0 auto;
    }

    .challenges__solution {
        margin-top: 40px;
    }

    .footer__bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}