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: 1400px;
}

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;
}

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%;
}

#hero {
    background: url('Images/pic1.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    background-attachment: fixed;
    /* Parallax Effect */
}


.hero-content {
    max-width: 700px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 25px 50px;
    transition: background-color 0.3s ease;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #8C8C8C;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background: #555;
    transform: scale(1.05);
}

.section {
    padding: clamp(50px, 10vw, 100px) 0;
    background: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    transition: opacity 1s ease, transform 1s ease;
}

.section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #8C8C8C;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #666;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease, transform 1s ease;
}

.section-header.visible h2,
.section-header.visible p {
    opacity: 1;
    transform: translateY(0);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 140%;
    text-align: center;
}

#aboutt {
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-top: 0;
    margin-bottom: clamp(40px, 5vw, 80px);
}

#about {
    padding-bottom: 0 !important;
    margin-bottom: 90px;
}

@media (max-width: 480px) {
    .about-image img {
        content: url('Images/pic4.jpg');
    }
}

.about-image {
    width: 100%;
    max-width: 100%;
    max-height: 850px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.006);
    border-radius: 10px;
    width: 20%;
    max-width: 600px;
    z-index: 2;
}

.about-text p {
    font-size: 1.3em;
    color: #fff;
    line-height: 1.6;
}

#apartments {
    background: #f9f9f9;
    padding: clamp(50px, 10vw, 100px) 0;
}

.apartment-feature {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.apartment-feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.apartment-images {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
}

.apartment-images .large-image {
    width: 90%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apartment-images .large-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.apartment-info {
    padding: 20px;
    max-width: 500px;
    text-align: left;
    border-left: 2px solid #8C8C8C;
    padding-left: clamp(20px, 5vw, 80px);
    background: #f9f9f9;
}

.apartment-info h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 20px;
    color: #333;
}

.title-line {
    border: none;
    height: 2px;
    background: #8C8C8C;
    margin: 40px 0;
    width: clamp(100px, 50%, 435px);
}

.apartment-info p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}

.apartment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#amenities {
    position: relative;
    padding: clamp(50px, 10vw, 100px) 0;
    color: #fff;
    z-index: 1;
    overflow: hidden;
    /* To ensure the pseudo-element is contained within the section */
}

.amenities-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    position: relative;
    z-index: 2;
    /* Ensure content appears above the background */
}

.amenities-list.visible {
    opacity: 1;
    transform: translateY(0);
}

.amenity {
    text-align: center;
    width: 18%;
    margin-bottom: 30px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.amenity i {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    /* Adjust icon color for contrast */
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.amenity h3 {
    font-size: 1.4em;
    color: #fff;
    /* Adjust text color for contrast */
    font-weight: 500;
}

.amenity:hover {
    transform: translateY(-3px);
    color: #ccc;
    /* Slight color change on hover */
}

.amenity:hover i {
    color: #ccc;
    /* Slight color change on hover */
}


/* Button */
.btnCon {
    display: inline-block;
    padding: 15px 30px;
    background: #8C8C8C;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btnCon:hover {
    background: #555;
    transform: scale(1.03);
}

#map {
    background: #ededed;
    padding: 50px 0;
}

iframe {
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    width: 80%;
    max-width: 1000px;
    transition: transform 0.3s ease;
}

iframe:hover {
    transform: scale(1.02);
}

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;
    flex-wrap: wrap;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.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;
    flex: 1;
    justify-content: flex-end;
}

.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;
    width: 100%;
}

.footer-logo p {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    color: #f0f0f0;
}






/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        padding: 40px;
    }

    .apartment-info {
        padding-left: 60px;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        width: 70%;
    }
}

@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;
    }

    .hero-content {
        padding: 30px 60px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.5em;
    }

    #hero {
        padding: 100px 0;
    }

    .apartment-feature {
        flex-direction: column;
        text-align: center;
        max-width: 85%;
        width: 100%;
    }

    .apartment-info {
        max-width: 100%;
        width: 100%;
        padding-left: 40px;
        border-left: none;
        margin-bottom: 100px;
        padding-top: 0;
    }


    .about-text {
        width: 80%;
    }

    .amenity {
        width: 45%;
    }


    iframe {
        width: 100%;
    }


    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: 90px;
    }

    .footer-contact-info,
    .footer-social-icons {
        flex: none;
        justify-content: center;
        margin-bottom: 15px;
        /* Adds spacing between elements */
    }

    .footer-contact-info {
        align-items: center;

    }

    .footer-logo {
        margin-top: 20px;
    }

}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .apartment-images .large-image {
        width: 100%;
    }

    .apartment-info h2 {
        font-size: 1.5em;
    }

    .amenity {
        width: 100%;
    }
}

.parallax-section {
    position: relative;
    height: 46vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
    url('Images/ap2.jpg') no-repeat center center/cover;
display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-attachment: fixed;
    /* Parallax Effect */
}

.parallax-content {
    z-index: 2;
    /* background-color: rgba(0, 0, 0, 0.667); */
    padding: 35px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.parallax-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}

.parallax-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.6;
    color: #fff;
}

/* Ensure Parallax Works on Phones */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: fixed;
        /* Ensure parallax stays fixed on mobile */
        height: auto;
        /* Adjust height based on content */
        min-height: 50vh;
        /* Ensure the section has enough height */
        background-size: cover;
    }

    .parallax-content {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
    }

    .parallax-content h2 {
        font-size: 1.8rem;
    }

    .parallax-content p {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .parallax-section {
        background-attachment: fixed;
        /* Ensure parallax effect stays on small screens */
        height: auto;
        /* Adjust to fit content */
        min-height: 50vh;
        /* Ensure the section has enough height */
        background-size: cover;
    }

    .parallax-content {
        padding: 10px;
        max-width: 95%;
    }

    .parallax-content h2 {
        font-size: 1.5rem;
    }

    .parallax-content p {
        font-size: 1rem;
    }
}


/* Apartments for Rent Section */
#apartments-intro {
    background-color: rgba(0, 0, 0, 0);
    padding: 70px 0;
    text-align: center;
}

.apartments-intro-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.parallax-section2 {
    position: relative;
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
            url('Images/image.png') no-repeat center center/cover;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-attachment: fixed;
    /* Parallax Effect */
}

#apartments-intro p{
    font-size: 1.8rem;
    margin-bottom: 60px;
}

#apartments-intro p::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #ffba08;
    position: absolute;
    left: 50%;
    margin-top: 75px;
    transform: translateX(-50%);
    border-radius: 2px;
}

.apartment-types {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    max-width: 800px;
}

.apartment-types li {
    font-size: 1.2rem;
    color: white;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    line-height: 1.5;
}

.apartment-types li:last-child {
    border-bottom: none;
}


@media (max-width: 768px) {

    #apartments-intro {
        padding: 45px 0;
        width: 100%;
    }
}




/* 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;
    }
}
