.navbar-nav .nav-link {
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #3db5e6 !important;
    opacity: 0.7;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: #3db5e6 !important;
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: #3db5e6 !important;
    opacity: 0.7;
}

.navbar-other .btn {
    background: transparent !important;
    border-color: #3db5e6 !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    transition: color 0.4s ease, border-color 0.4s ease !important;
}

.navbar-other .btn::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: #919191 !important;
    transform: scaleX(0) !important;
    transform-origin: right !important;
    transition: transform 0.4s ease !important;
    z-index: -1 !important;
}

.navbar-other .btn:hover {
    background: transparent !important;
    color: #fff !important;
    border-color: #919191 !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    transition: none !important;
}

.navbar-other .btn:hover::before {
    transform: scaleX(1) !important;
    transform-origin: left !important;
}

.contact-form button[type="submit"]:hover {
    background-color: #919191 !important;
    color: white !important;
}

.footer-menu-link {
    position: relative;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #3db5e6;
    transition: width 0.3s ease, left 0.3s ease;
}

.footer-menu-link:hover {
    color: #3db5e6 !important;
}

.footer-menu-link:hover::after {
    width: 100%;
    left: 0;
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0 20px !important;
        height: auto !important;
    }

    .navbar-brand img {
        width: 120px !important;
        height: auto !important;
    }

    .top-bar {
        display: none !important;
    }
}

.custom-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.85);
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 10000;
}

.aligned-container {
    padding: 0 148px !important;
}

@media (max-width: 991.98px) {
    .aligned-container {
        padding: 0 20px !important;
    }

    .contact-form-container {
        padding: 20px !important;
        margin-top: 0 !important;
    }

    .map-container {
        height: 350px !important;
        margin-top: 20px !important;
    }

    .contact-form {
        height: auto !important;
    }

    .form-control {
        height: 40px !important;
        padding: 10px !important;
        font-size: 14px !important;
    }

    textarea.form-control {
        height: 90px !important;
        padding: 10px !important;
        font-size: 14px !important;
    }

    button[type="submit"] {
        height: 45px !important;
        padding: 10px !important;
        font-size: 13px !important;
    }

    .form-label {
        font-size: 13px !important;
        line-height: 20px !important;
    }

    h2 {
        font-size: 28px !important;
        line-height: 36px !important;
        margin-bottom: 15px !important;
    }

    .feature-card {
        height: auto !important;
        min-height: 200px !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
    }

    .feature-card .mb-3 {
        opacity: 1 !important;
        max-height: none !important;
        transform: none !important;
        margin-bottom: 15px !important;
    }

    .feature-card .card-text {
        opacity: 1 !important;
        height: auto !important;
        transform: none !important;
        overflow: visible !important;
        margin-bottom: 0 !important;
    }

    .feature-card h4 {
        padding-top: 0 !important;
        font-size: 18px !important;
        line-height: 24px !important;
        margin-bottom: 10px !important;
    }

    .feature-card i {
        font-size: 35px !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 767.98px) and (min-width: 576px) {
    .contact-form-container {
        padding: 25px !important;
    }

    .map-container {
        height: 400px !important;
    }

    .row {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .col-lg-6 {
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }

    .feature-card {
        height: auto !important;
        min-height: 180px !important;
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .feature-card .mb-3 {
        opacity: 1 !important;
        max-height: none !important;
        transform: none !important;
        margin-bottom: 10px !important;
    }

    .feature-card .card-text {
        opacity: 1 !important;
        height: auto !important;
        transform: none !important;
        overflow: visible !important;
        margin-bottom: 0 !important;
    }

    .feature-card h4 {
        padding-top: 0 !important;
        font-size: 16px !important;
        line-height: 22px !important;
        margin-bottom: 8px !important;
    }

    .feature-card i {
        font-size: 30px !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 575.98px) {
    .contact-form-container {
        padding: 20px !important;
    }

    .map-container {
        height: 300px !important;
    }

    h2 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .form-control {
        height: 45px !important;
        padding: 12px !important;
        font-size: 16px !important;
    }

    textarea.form-control {
        height: 100px !important;
        padding: 12px !important;
        font-size: 16px !important;
    }

    button[type="submit"] {
        height: 50px !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .form-label {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    .feature-card {
        height: auto !important;
        min-height: 160px !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    .feature-card .mb-3 {
        opacity: 1 !important;
        max-height: none !important;
        transform: none !important;
        margin-bottom: 8px !important;
    }

    .feature-card .card-text {
        opacity: 1 !important;
        height: auto !important;
        transform: none !important;
        overflow: visible !important;
        margin-bottom: 0 !important;
    }

    .feature-card h4 {
        padding-top: 0 !important;
        font-size: 15px !important;
        line-height: 20px !important;
        margin-bottom: 6px !important;
    }

    .feature-card i {
        font-size: 25px !important;
        margin-bottom: 6px !important;
    }
}

.custom-modal.active {
    display: flex;
}

.modal-content-container {
    background-color: white;
    width: 1100px;
    height: 461px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-left {
    flex: 0 0 550px;
    padding: 90px 100px 50px 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-left h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #333;
    margin-bottom: 25px;
}

.modal-left p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

.contact-info {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
    cursor: pointer;
}

.info-item:hover {
    color: #3db5e6;
}

.info-item i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.social-icons a {
    color: #333;
    font-size: 22px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: #3db5e6;
    transform: translateY(-5px);
}

.modal-right {
    flex: 0 0 550px;
    background-size: cover;
    background-position: center;
    padding: 100px;
    padding-bottom: 55px;
    height: 100%;
    right: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.modal-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 32px;
    height: 32px;
    background-color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-modal:hover {
    color: #3db5e6;
}

.modal-form {
    width: 100%;
    position: relative;
    z-index: 2;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 10px 25px;
    margin-bottom: 10px;
    border: none;
    background-color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #333;
}

.modal-form textarea {
    resize: none;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: #999;
}

.modal-form button {
    width: 100%;
    padding: 12px;
    background-color: #3db5e6;
    color: #333;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0px;
}

.modal-form button:hover {
    color: white;
}

@media (max-width: 991.98px) {
    .modal-content-container {
        flex-direction: column;
        width: 90%;

        height: 90vh;
        overflow-y: auto;
    }

    .modal-left,
    .modal-right {
        flex: 0 0 auto;
        width: 100%;
        padding: 30px;
    }

    .modal-left h2 {
        font-size: 24px;
    }

    .hero {
        height: auto !important;
    }

    .hero>div {
        height: 600px !important;
    }

    .welcome-text {
        top: 15% !important;
        font-size: 24px !important;
        white-space: normal !important;
        width: 90% !important;
    }

    .hero-icon {
        top: 25% !important;
    }

    .hero-icon img {
        width: 100px !important;
        height: auto !important;
    }

    .hero h1 {
        font-size: 40px !important;
        line-height: 52px !important;
    }
}

.footer-menu-link {
    position: relative;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3db5e6;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.footer-menu-link:hover {
    color: #3db5e6 !important;
}

.footer-menu-link:hover::after {
    transform: scaleX(1);
}

.feature-card {
    padding: 20px 18px 20px 35px;
    transition: all 0.4s ease;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-radius: 4px;
    text-align: left;
    position: relative;
    top: 0;
    overflow: visible;
}

.feature-card .mb-3 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    height: auto;
    max-height: 100px;
}

.feature-card:hover .mb-3 {
    opacity: 0;
    transform: translateY(-15px);
    max-height: 0;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.feature-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    top: -10px;
    border-bottom: 3px solid #3db5e6;
}

.feature-row {
    min-height: 200px;
}

.feature-card h4 {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover h4 {
    text-align: left;
    width: 100%;
    padding-top: 20px;
}

.feature-card .card-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #838383;
    font-weight: 400;
    line-height: 1.8;
    margin: 15px 0 0;
    text-align: left;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
    height: 0;
    overflow: hidden;
}

.feature-card:hover .card-text {
    opacity: 1;
    height: auto;
    transform: translateY(0);
    margin-bottom: 0;
}

.fadeInUp {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fadeInUp.animate {
    opacity: 1;
    transform: translateY(0);
}