
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top center;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.98);
}

.group:hover .dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(0.96) !important;
    animation: none !important;
}

.dropdown.open .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    animation: menuPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.dropdown.open .fa-angle-down {
    transform: rotate(180deg) !important;
}

.fa-angle-down {
    transition: transform 0.3s ease !important;
}

@keyframes menuPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.search-input {
    width: 0;
    opacity: 0;
    padding-left: 0;
    transition: all 0.3s ease;
    height: 100%;
}

.search-icon-btn {
    color: #2d2d2d;
    font-size: 18px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.search-form:hover .search-icon-btn {
    color: #4a7c59;
}

.search-form.active {
    width: 260px;
    border-color: #4a7c59;
    box-shadow: 0 4px 20px rgba(74, 124, 89, 0.2);
    cursor: default;
}

.search-form.active .search-input {
    width: 100%;
    opacity: 1;
    padding-left: 16px;
}

.search-form.active .search-icon-btn {
    color: #4a7c59;
}

.search-form.active:hover .search-icon-btn {
    color: #3b6648;
}

.card-offer {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-offer:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.card-offer img {
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-offer:hover img {
    transform: scale(1.08);
}

.card-offer .link-arrow {
    transition: all 0.3s ease;
}

.card-offer .link-arrow svg {
    transition: transform 0.3s ease;
}

.card-offer:hover .link-arrow svg {
    transform: translateX(4px);
}

.card-offer h3 {
    position: relative;
}

.card-offer h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a7c59;
    transition: width 0.4s ease;
}

.card-offer:hover h3::after {
    width: 40px;
}

.about-image-wrapper {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-image-wrapper:hover {
    transform: scale(1.01);
}

.about-image-wrapper .gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 91, 49, 0.05), rgba(27, 91, 49, 0.15));
    pointer-events: none;
}

.about-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1b5b31;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1b5b31;
    transition: width 0.3s ease;
}

.about-link:hover {
    color: #144a27;
}

.about-link:hover::after {
    width: 100%;
}

.about-link svg {
    transition: transform 0.3s ease;
}

.about-link:hover svg {
    transform: translateX(4px);
}

.btn-about {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.btn-about:hover {
    background: #1b5b31;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 91, 49, 0.25);
    box-shadow: 0 0 25px rgba(27, 91, 49, 0.35);
}

.btn-about svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-about:hover svg {
    transform: translateX(4px);
}

.btn-about:active {
    transform: scale(0.96);
}

.projects {
    background: #dcc4ae;
    padding: 100px 0;
}

.container {
    max-width: 1280px;
    margin: auto;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 14px;
    color: #5e7b59;
}

.section-title {
    font-size: 64px;
    font-weight: 400;
    color: #111;
}

.section-title em {
    font-style: italic;
    font-weight: 300;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.6s, filter 0.6s;
    width: 100%;
    display: block;
    transition: 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.expand-btn:hover {
    background: #111;
    color: white;
}

@media (max-width: 900px) {
    .gallery {
        columns: 2;
    }
    .section-title {
        font-size: 45px;
    }
}

@media (max-width: 600px) {
    .gallery {
        columns: 1;
    }
    .container {
        padding: 0 20px;
    }
    .section-title {
        font-size: 36px;
    }
}

.reveal > * {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.7s;
}

.reveal.active > * {
    opacity: 1;
    transform: none;
}

.reveal.active > *:nth-child(1) {
    transition-delay: 0.1s;
}
.reveal.active > *:nth-child(2) {
    transition-delay: 0.2s;
}
.reveal.active > *:nth-child(3) {
    transition-delay: 0.3s;
}
.reveal.active > *:nth-child(4) {
    transition-delay: 0.4s;
}
.reveal.active > *:nth-child(5) {
    transition-delay: 0.5s;
}

#heroImage {
    will-change: transform;
}

@media (max-width:767px) {

    #mainMenu {
        display:none;
        animation:menuFade .25s ease;
    }

    #mainMenu.active {
        display:flex;
    }

    .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    margin-left: 15px;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0px;
    }

    .dropdown.active .dropdown-menu{
    max-height:500px;
    }

    .dropdown.active .fa-angle-down{
    transform:rotate(180deg);
    }

    .dropdown-menu a{
    display:block;
    }
}

@keyframes menuFade{

    from{
        opacity:0;
        transform:translateY(-10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }

}


