html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

section {
    padding: 25px 0;
}

img {
    max-width: 100%;
    height: auto;
}

[data-aos] {
    visibility: hidden;
}

[data-aos].aos-animate {
    visibility: visible;
}

/* header */
.language-selector {
    background-color: #0d6efd;
    color: white;
    border: none;
    font-weight: bold;
}

.language-selector:hover {
    background-color: #0d6efd;
    color: white;
    border: none;
    font-weight: bold;
}

.language-selector.show {
    background-color: #0d6efd;
    color: white;
    border: none;
    font-weight: bold;
}

.language-menu {
    background-color: #0d6efd;
}

.language-item {
    color: white;
}

.language-item:hover {
    background-color: #0b5ed7;
    color: white;
}

.navbar {
    background-color: #0d6efd !important;  
    box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand {
    border-right: 1px solid #ddd;
    padding-right: 15px;
}

.navbar-nav .nav-link {
    position: relative;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link.active {
    color: #f8f9fa;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #f8f9fa;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #f8f9fa;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #f8f9fa;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=UTF8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        color: white;
        text-decoration: none;
    }
    .navbar-nav .nav-link.active {
        color: #f8f9fa;
        font-weight: bold;
    }
    .navbar-nav .nav-link.active::after {
        width: 0;
    }
    .navbar-nav .nav-link::after {
        width: 0;
    }
    .navbar-nav .nav-link:hover::after {
        width: 0;
    }
}

/* hero */
.hero {
    position: relative;
    z-index: 2;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-bg.png');
    background-position: center;
    background-size: cover;
    z-index: -1;
    animation: zoomIn 20s linear infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(10 31 63 / 75%);
    z-index: -1;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.discover-btn {
    font-size: 1.1rem;
    padding: 10px 30px;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discover-btn:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

/* about us */
.aboutus {
    background-color: #f8f9fa;
}

.video-full-height {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgb(255, 255, 255);
}

.responsive-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stat {
    background-color: #0a1f3f;
}

.stat-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-right: 10px;
}

.stat-text {
    margin-top: 10px;
    font-size: 1rem;
    color: #a4b5c6;
}

/* main */
.apartment-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    position: relative !important;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.house {
    background-color: #0a1f3f;
}

.house-text {
    font-size: 1rem;
    color: #a4b5c6;
}

/* contact */
.contact {
    background-color: #f8f9fa;
}

.contact input.form-control,
.contact textarea.form-control {
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact input.form-control:focus,
.contact textarea.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

.contact textarea.form-control {
    height: 230px;
}

.contact .form-floating label {
    color: #6c757d;
    font-weight: 400;
}

.contact .form-floating label:focus,
.contact .form-floating label:hover {
    color: #495057;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.alert-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* footer */
.footer {
    background: #0a1f3f;
    color: #ffffff;
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-about {
    color: #a4b5c6;
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: #0d6efd;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a4b5c6;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #0d6efd;
    transform: translateX(5px);
}

.footer-info {
    color: #a4b5c6;
    margin-bottom: 12px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #a4b5c6;
}

/* top button */
.to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    animation: popup 0.5s ease-out;
}

.to-top-btn:hover {
    background-color: #0b5ed7;
    transform: scale(1.1);
}

.to-top-btn i {
    font-size: 1.2rem;
}

@keyframes popup {
    0% {
        transform: scale(0); 
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}