/* Global Styles */
body {
    font-family: "Georgia", serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #f0f4f8;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

header {
    background: rgba(140, 140, 140, 0.95);
    color: #fff;
    padding: 8px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px !important;
}

header .logo img {
    height: clamp(40px, 5vw, 60px);
    transition: transform 0.3s ease;
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

nav ul li {
    transition: transform 0.3s ease;
}

nav ul li:hover {
    transform: translateY(-3px);
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ddd;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ddd;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
    margin-left: 20px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2em;
    transition: color 0.3s ease;
    position: relative;
}

header nav a:hover {
    color: #ddd;
}

header nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ddd;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

header nav a:hover::after {
    width: 100%;
}



/* Carousel Section with Scrollbar */
.carousel-section {
    background: #fff;
    padding: 40px 0;
    position: relative;
}

.carousel-container {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory;
    gap: 10px;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #8C8C8C #f0f0f0; /* Firefox */
    width: 100%;
    height: 700px;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background-color: #8C8C8C;
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

.carousel-slide {
    min-width: 100%;
    scroll-snap-align: start;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
    display: block;
    transition: transform 0.5s ease;
}

/* Carousel Navigation Dots */
.carousel-nav {
    text-align: center;
    margin-top: 10px; /* Reduced margin for a compact look */
}

.carousel-dot {
    display: inline-block;
    width: 8px; /* Smaller dots */
    height: 8px;
    background: #8C8C8C;
    border-radius: 50%;
    margin: 0 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot:hover,
.carousel-dot.active {
    background: #555;
}

/* Details Section */
.details-section {
    background: #f7f7f7;
    padding: 60px 0;
    position: relative;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.detail-item {
    padding: 30px;
    transition: transform 0.4s ease;
    text-align: center;
}

.detail-item:hover {
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 2rem;
    color: #8C8C8C;
    margin-bottom: 15px;
}

.detail-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    height: 100vh;
    background: url('Images/ap2.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.parallax-layer {
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 60px 20px;
    border-radius: 15px;
    max-width: 80%;
    backdrop-filter: blur(5px);
    animation: fadeInUp 1s ease-in-out;
    margin-top: 60px;
}

.apartment-info {
    z-index: 2;
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 15px;
    color: #f4f4f4;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
    color: #ffba08;
    font-weight: 500;
    text-transform: uppercase;
}

.divider {
    width: 200px;
    height: 4px;
    background: #ffba08;
    margin: 0 auto 30px;
}

.description-text {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    color: #f4f4f4;
    line-height: 1.8;
}

.apartment-sizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
}


.apartment-size-item {
    font-size: 1.4rem;
    padding: 10px;
}

.size-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #f4f4f4;
    transition: background 0.3s ease, transform 0.3s ease;
}

.size-item:hover {
    background: #ffba08;
    color: #333;
    transform: translateY(-5px);
}

/* Keyframes for animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .parallax-layer {
        padding: 40px 15px;
        max-width: 90%;
        width: 85%;
    }

    .main-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .sub-title {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .description-text {
        font-size: 1.1rem !important;
    }

    .apartment-sizes {
        grid-template-columns: 1fr; /* Reverts to single-column on smaller screens */
        gap: 15px;
    }
    

    .size-item {
        width: 95%;
        text-align: center;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .parallax-layer {
        padding: 30px 10px;
        max-width: 95%;
    }

    .main-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }

    .sub-title {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
    }

    .description-text {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }

    .apartment-sizes {
        gap: 15px;
    }

    .apartment-size-item {
        font-size: 1.6rem; /* Increases font size on phone-sized screens */
    }

    .size-item {
        font-size: clamp(0.9rem, 2vw, 1rem);
        padding: 10px;
    }
}




footer {
    background: rgba(140, 140, 140, 0.95);
    color: #ffffff;
    text-align: center;
    padding: 20px 0 10px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    font-size: 1.1em;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 30%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    color: #dddddd;
}

.contact-item i {
    margin-right: 10px;
    color: #ffba08;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.contact-item a:hover {
    color: #ffba08;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: #444444;
    border-radius: 50%;
    color: #ffffff;
    text-align: center;
    font-size: 1.2em;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    background: #ffba08;
    color: #333333;
}

.social-icon.facebook:hover {
    background: #3b5998;
}

.social-icon.instagram:hover {
    background: #e4405f;
}

.footer-logo {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #444444;
}

.footer-logo p {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    color: #f0f0f0;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .logo {
        margin-left: 25px;
    }

    nav#nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #8C8C8C;
        padding: 10px 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .menu-toggle {
        margin-right: 25px;
    }

    nav#nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    nav#nav-menu ul li {
        text-align: center;
    }

    nav#nav-menu ul li a {
        color: #fff;
        font-size: 1.5em;
    }

    nav#nav-menu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .carousel-slide {
        min-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: 140px;
    }

    .footer-contact-info,
    .footer-social-icons {
        flex: none;
        justify-content: center;
        margin-bottom: 15px;
        margin-left: 60px;
        /* Adds spacing between elements */
    }

    .footer-contact-info {
        align-items: center;
    }

    .footer-logo {
        margin-top: 20px;
    }
    
}

@media (max-width: 480px) {
    .title-section .main-title {
        font-size: 2rem;
    }

    .title-section .sub-title {
        font-size: 1.2rem;
    }

    .title-section .description-text {
        font-size: 1rem;
    }

    .detail ul li {
        font-size: 1.2rem;
    }

    .detail p {
        font-size: 1.2rem;
    }
}





/* Language Toggle Styles */
.language-toggle {
    position: relative;
    cursor: pointer;
    padding: 10px;
    color: #ffffff;
    font-size: 1.3em;
}

.language-toggle i {
    font-size: 1.5em;
}

.language-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(140, 140, 140, 0.95);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.language-menu.show {
    display: block;
}

.language-menu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.language-menu a:hover {
    background-color: #555;
}

.language-menu a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .language-toggle {
        font-size: 1.5em;
    }

    .language-menu a {
        padding: 15px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .language-toggle {
        font-size: 1.5em;
    }

    .language-menu a {
        padding: 15px;
        font-size: 1.2em;
    }
}


@media (max-width: 768px) {
    .language-toggle {
        margin-left: auto;
        margin-right: 20px;
        font-size: larger;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .menu-toggle {
        margin-right: 20px;
    }
}
