* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #f7f3ea 0%, #efe7d6 100%);
    padding: 14px;
}

.main-header,
.background,
.about-us,
.carousel-section,
.estimate-section,
.projects-section,
.footer {
    margin-bottom: 16px;
}

div,
section,
header,
footer,
nav,
main,
article {
    border-radius: 18px;
    overflow: hidden;
}

.main-header,
.header-right,
.lang-switcher {
    overflow: visible !important;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    margin: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

    .nav-menu a {
        text-decoration: none;
        font-size: 16px;
        color: #001f3f;
        font-weight: 500;
    }

        .nav-menu a:hover {
            color: #b89b63;
        }

.header-right,
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    margin-left: 14px;
}

.lang-select {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.contact-btn {
    background: #d3b17e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s;
}

    .contact-btn:hover {
        background: #b89b63;
    }

.background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70vh;
    width: 100%;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(231, 181, 181);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 35px;
    min-width: 100px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18);
    text-align: center;
    text-shadow: 0 4px 18px rgba(0,0,0,0.9);
}

    .content h1,
    .content p {
        animation: colorShift 14s linear infinite;
    }

.about-us {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    color: #000;
    padding: 50px 20px;
    font-size: 24px;
    margin-top: 0;
    border-radius: 0 0 14px 14px;
    width: 100%;
    box-shadow: 0 18px 50px rgba(0,0,0,0.10), 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .about-us::before {
        content: "";
        position: absolute;
        top: -22px;
        left: 0;
        width: 100%;
        height: 22px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.10), transparent);
        pointer-events: none;
    }

    .about-us:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    }

.about-us-content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.about-text {
    width: 50%;
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .about-text h2 {
        margin-bottom: 18px;
        letter-spacing: 1px;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.7;
        max-width: 500px;
        max-height: 0;
        overflow-y: auto;
        padding-right: 10px;
        opacity: 0;
        transform: translateY(10px);
        scrollbar-width: none;
        -ms-overflow-style: none;
        transition: max-height 1.4s ease, opacity 1.2s ease, transform 1.2s ease;
    }

        .about-text p::-webkit-scrollbar {
            display: none;
        }

        .about-text p.reveal {
            max-height: calc(1.7em * 6);
            opacity: 1;
            transform: translateY(0);
        }

        .about-text p.fadeOut {
            opacity: 0;
            transform: translateY(10px);
        }

.photo-gallery {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-right: 5%;
}

.photo-box {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    .photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        cursor: zoom-in;
    }

.photo-1 {
    width: 100%;
    height: 140px;
}

.photo-2 {
    width: 100%;
    height: 180px;
}

.photo-3 {
    width: 100%;
    height: 220px;
    margin-top: -30px;
}

.photo-4 {
    width: 100%;
    height: 140px;
}

.carousel-section {
    background: #fff;
    padding: 60px 5%;
    text-align: center;
}

.services-header {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.services-title {
    font-family: inherit;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin: 0;
    color: #111;
    text-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

    .services-title::after {
        content: "";
        display: block;
        width: 300px;
        height: 4px;
        margin: 12px auto 0;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, #d3b17e, transparent);
        box-shadow: 0 6px 18px rgba(211,177,126,0.35);
    }

.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 5%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.carousel-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.project-name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    background: rgba(0,0,0,0.35);
}

.projects-section {
    background: #fff;
    padding: 60px 5%;
    text-align: center;
}

.projects-header h2 {
    font-family: inherit;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    color: #111;
    text-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

    .projects-header h2::after {
        content: "";
        display: block;
        width: 300px;
        height: 4px;
        margin: 12px auto 0;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, #d3b17e, transparent);
        box-shadow: 0 6px 18px rgba(211,177,126,0.35);
    }

.projects-header p {
    font-size: 16px;
    color: #444;
    max-width: 700px;
    margin: 0 auto 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

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

    .project-card img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .project-card h3 {
        font-size: 18px;
        margin: 15px;
    }

    .project-card p {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin: 0 15px 15px;
        transition: max-height 0.45s ease, opacity 0.35s ease;
    }

    .project-card:hover p {
        max-height: 260px;
        opacity: 1;
    }

.footer {
    background-color: #111;
    color: #fff;
    padding: 20px 5%;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-copy {
    max-width: 900px;
    line-height: 1.6;
}

.footer p {
    margin: 0;
    font-size: 14px;
    color: #aaa;
}

.footer-note {
    display: block;
    margin-top: 6px;
    color: #cfcfcf;
    font-size: 13px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

    .footer-links a {
        color: #d3b17e;
        text-decoration: none;
        font-weight: 600;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

    .footer-links .dot {
        color: #666;
    }

.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: #222;
        transition: background 0.3s;
    }

        .social-links a:hover {
            background-color: #555;
        }

    .social-links img {
        width: 20px;
        height: 20px;
    }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .lightbox img {
        max-width: 90%;
        max-height: 85%;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    }

    .lightbox .close {
        position: absolute;
        top: 25px;
        right: 40px;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.menu-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 9998;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(85vw, 320px);
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateX(-110%);
    transition: 0.28s ease;
    z-index: 9999;
    padding: 18px;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mobile-menu-title {
    margin: 0;
    font-weight: 800;
    color: #001f3f;
}

.close-menu {
    border: none;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #001f3f;
}

.mobile-menu a {
    display: block;
    padding: 14px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #001f3f;
    font-weight: 600;
}

    .mobile-menu a:hover {
        background: rgba(211,177,126,0.18);
    }

.m-contact {
    margin-top: 10px;
    background: #d3b17e;
    color: #fff !important;
    text-align: center;
}

.mobile-lang {
    margin: 18px 0 10px;
}

.mobile-menu.open {
    transform: translateX(0);
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

@keyframes colorShift {
    0% {
        color: #ffffff;
    }

    8% {
        color: #d3b17e;
    }

    16% {
        color: #7fd3ff;
    }

    24% {
        color: #b8ffb0;
    }

    32% {
        color: #ffb3b3;
    }

    40% {
        color: #ffd580;
    }

    48% {
        color: #c7a6ff;
    }

    56% {
        color: #80ffe6;
    }

    64% {
        color: #ff9de1;
    }

    72% {
        color: #9effa1;
    }

    80% {
        color: #8fbaff;
    }

    90% {
        color: #ffe27a;
    }

    100% {
        color: #ffffff;
    }
}

@media (min-width: 1200px) {
    .carousel-container {
        justify-content: center;
        overflow-x: visible;
        padding: 0;
    }
}

@media (max-width: 900px) {
    .header-right {
        gap: 8px;
    }

    .lang-select {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }

    .menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .lang-switcher {
        display: none;
    }

    .about-text {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
    }

    .photo-gallery {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .photo-1, .photo-2, .photo-3, .photo-4 {
        width: 90%;
        margin-top: 0 !important;
    }

    .carousel-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        flex-direction: row;
        align-items: stretch;
        padding: 0;
    }

    .carousel-item {
        flex: 0 0 85% !important;
        width: auto !important;
        height: 200px;
        margin-bottom: 20px;
        scroll-snap-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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