.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;
}

.hero-buttons a {
    transition: all 0.3s ease !important;
}

.hero-buttons a:hover {
    border-color: #fff !important;
    color: #3db5e6 !important;
    background-color: #fff !important;
}

.contact-home-section button[type="submit"]:hover {
    background-color: #919191 !important;
    color: white !important;
}

.contact-home-section input::placeholder,
.contact-home-section textarea::placeholder {
    color: #b0b0b0 !important;
    opacity: 1;
}

.contact-home-section input::-webkit-input-placeholder,
.contact-home-section textarea::-webkit-input-placeholder {
    color: #b0b0b0 !important;
    opacity: 1;
}

.contact-home-section input::-moz-placeholder,
.contact-home-section textarea::-moz-placeholder {
    color: #b0b0b0 !important;
    opacity: 1;
}

.contact-home-section input:-ms-input-placeholder,
.contact-home-section textarea:-ms-input-placeholder {
    color: #b0b0b0 !important;
    opacity: 1;
}

.welcome-text,
.welcome-subtext {
    display: inline-flex !important;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.cascading-letter {
    display: inline-block;
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

.cascading-letter.animate {
    opacity: 1;
    transform: translateX(0);
}

.hero-icon {
    opacity: 0;
    transform: translate(-50%, 50px) scale(0.8) !important;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease !important;
}

.hero-icon.animate {
    opacity: 1;
    transform: translate(-50%, 50px) scale(1) !important;
}

.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;
}

.rotator-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: top;
    height: 1.2em;
    width: 100%;
}

.rotate-word {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(10px);
    width: 100%;
}

.rotate-word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotate-word.exit {
    opacity: 0;
    transform: translateY(-10px);
}

.recruitment-grid a {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

.recruitment-grid img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

@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;
    }

    .hero {
        height: auto !important;
    }

    .hero>div {
        height: 600px !important;
    }

    .welcome-text {
        top: 15% !important;
        font-size: 24px !important;
        white-space: normal !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .hero-icon {
        top: 25% !important;
    }

    .hero-icon img {
        width: 100px !important;
        height: auto !important;
    }

    .hero-text {
        top: 55% !important;
    }

    .hero-text div {
        font-size: 18px !important;
        letter-spacing: 1px !important;
    }

    .hero-buttons {
        top: 70% !important;
    }

    .hero-buttons>div {
        gap: 20px !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-buttons a {
        width: 140px !important;
        font-size: 18px !important;
        line-height: 45px !important;
    }

    .building-section {
        height: auto !important;
        padding-bottom: 40px !important;
    }

    .building-section>div:first-child {
        height: 300px !important;
    }

    .building-section h2 {
        font-size: 32px !important;
        margin-top: 20px;
        position: relative !important;
        top: 0 !important;
    }

    .building-cards {
        position: relative !important;
        top: 0 !important;
        padding: 0 20px !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 40px !important;
        margin-top: 30px !important;
        justify-content: flex-start !important;
    }

    .building-cards::-webkit-scrollbar {
        display: none;
    }

    .building-cards>div {
        width: calc(100vw - 40px) !important;
        min-width: calc(100vw - 40px) !important;
        height: auto !important;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin-bottom: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    }

    .cards-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 30px;
        padding-bottom: 20px;
    }

    .cards-dots .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #d1d1d1;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .cards-dots .dot.active {
        background-color: #333;
    }

    .recruitment-section {
        padding: 40px 20px !important;
    }

    .recruitment-grid {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .recruitment-grid a {
        width: 100% !important;
        max-width: 100% !important;
    }

    .recruitment-grid img {
        width: 100% !important;
        height: auto !important;
    }
    
    .recruitment-item {
        margin-bottom: 25px !important;
    }

    .skilled-workers-section {
        padding: 40px 20px !important;
    }

    .skilled-workers-section h6 {
        width: 100% !important;
        height: auto !important;
    }

    .contact-home-section {
        height: auto !important;
        min-height: auto !important;
    }

    .contact-home-section>img {
        position: absolute !important;
        height: 100% !important;
    }

    .contact-home-overlay {
        background-color: rgba(255, 255, 255, 0.86) !important;
    }

    .contact-home-content {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
    }

    .contact-home-section .left-section,
    .contact-home-section .right-section {
        width: 100% !important;
        padding: 40px 20px !important;
        height: auto !important;
    }

    .contact-home-section .left-section {
        padding-top: 80px !important;
    }

    .contact-home-section .left-section h3.contact-title {
        font-size: 36px !important;
        min-height: auto !important;
    }

    .contact-home-section .left-section .rotator-wrapper {
        height: 80px !important;
    }

    .contact-home-section .rotate-word {
        white-space: normal !important;
    }

    .contact-home-section .left-section p {
        width: 100% !important;
        height: auto !important;
        margin-top: 20px !important;
    }

    .contact-home-section .right-section div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .contact-home-section form input,
    .contact-home-section form textarea,
    .contact-home-section form button {
        width: 100% !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 {
    background-color: #919191 !important;
    color: white !important;
}

@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;
    }
}

.zoomIn {
    opacity: 0;
    transform: scale(0.3);
    transition: all 2.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.zoomIn.animate {
    opacity: 1;
    transform: scale(1);
}

.slideInBottom {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slideInBottom.animate {
    opacity: 1;
    transform: translateY(0);
}

.recruitment-item {
    display: block;
    position: relative;
    border-radius: 4px;
    margin-bottom: 15px;
}

.img-wrapper {
    overflow: hidden;
    border-radius: 4px;
    display: block;
    position: relative;
}

.recruitment-item img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
    transform: scale(1.1);
}

.recruitment-item:hover img {
    transform: scale(1);
    filter: blur(1px);
}

.recruitment-info {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px 80px 10px 20px;
    font-weight: 600;
    font-size: 20px;
    color: #333;
    border-radius: 4px;
    text-align: left;
    width: calc(100% - 50px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.4s ease;
    z-index: 2;
}

.recruitment-item:hover .recruitment-info {
    transform: translate(-50%, -45px);
    color: #3db5e6 !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);
}