.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,
.custom-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;
    display: inline-block !important;
}

.navbar-other .btn::before,
.custom-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,
.custom-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,
.custom-btn:hover::before {
    transform: scaleX(1) !important;
    transform-origin: left !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);
}

.pop-up-btn {
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease !important;
}

.pop-up-btn.animate {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.aligned-container {
    padding: 0 148px !important;
}

@media (max-width: 991.98px) {
    .aligned-container {
        padding: 0 20px !important;
    }

    .team-member-circle {
        width: 100% !important;
        max-width: 350px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto !important;
    }

    .feature-card {
        height: auto !important;
        min-height: 250px !important;
        margin-bottom: 30px !important;
        top: 0 !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    }

    .feature-card .mb-3 {
        opacity: 1 !important;
        max-height: 100px !important;
        transform: none !important;
        margin-bottom: 1rem !important;
    }

    .feature-card .card-text {
        opacity: 1 !important;
        height: auto !important;
        transform: none !important;
        overflow: visible !important;
    }

    .feature-card h4 {
        padding-top: 0 !important;
    }

    .feature-row {
        min-height: auto !important;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 40px !important;
        line-height: 52px !important;
    }

    .what-we-do-container {
        background-image: none !important;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .responsive-p {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }

    .responsive-p br {
        display: none;
    }

    .meet-the-team-row {
        gap: 30px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .mission-img,
    .bottom-text,
    .bottom-heading {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
    }

    .mission-text {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        text-align: left !important;
    }

    .mission-btn {
        margin-bottom: 40px !important;
    }
}

.team-member-circle {
    width: 358.45px;
    height: 358.45px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.team-member-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 181, 230, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.team-member-circle:hover {
    box-shadow: 0 0 0 15px rgba(61, 181, 230, 0.2);
    transform: scale(1.02);
}

.team-member-circle:hover .team-member-overlay {
    opacity: 1;
}

.team-member-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.team-member-circle:hover .team-member-socials {
    transform: translateY(0);
}

.team-member-socials a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.team-member-socials a:hover {
    background: #fff;
    color: #3db5e6;
}

.team-member-info {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.team-member-circle:hover .team-member-info {
    transform: translateY(0);
}

.team-member-info h4 {
    font-family: 'roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 5px;
    color: #fff;
}

.team-member-info p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.feature-card {
    padding: 40px 30px;
    transition: all 0.4s ease;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    height: 247.9px;
    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: 300px;
}

.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);
}

@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;
}

.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;
    }
}