:root {
    --primary-color: #cbb26a;
    /* Gold */
    --primary-dark: #b09650;
    --background-dark: #1a1a1a;
    --background-light: #f9f9f9;
    --text-light: #ffffff;
    --text-dark: #333333;
    --secondary-bg: #252525;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Adjust based on actual logo aspect ratio */
    max-width: 200px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-icon {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/rowaq_hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Changed from fixed which can cause issues on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

/* Fallback background if image is missing */
.hero {
    background-color: #111;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content h3  {
    font-size: 1.5rem;
    display: block;
    margin-top: 10px;
   
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #eee;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 300;
}

.btn-main {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s, background-color 0.3s;
    margin-top: 20px;
}

.btn-main:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
    text-align: center;
}

.about-section h2,
.apartments-section h2,
.location-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.about-section h2::after,
.apartments-section h2::after,
.location-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--background-dark);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #bbb;
}

/* Apartments Section */
.apartments-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    text-align: center;
}

.section-desc {
    color: #bbb;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.apartment-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 0 10px;
}

.apartment-card {
    background-color: var(--secondary-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

/* Social Icons */
.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.social-icons span {
    color: #888;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Apartment Cover - Elegant Size */
.apartment-cover {
    height: 200px;
    /* Smaller height for elegance */
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: #333;
}

.apartment-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apartment-card:hover .apartment-cover img {
    transform: scale(1.1);
}

.overlay-cue {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.apartment-cover:hover .overlay-cue {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
    display: block;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    position: relative;
}

#lightbox-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(203, 178, 106, 0.2);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--primary-color);
    padding: 10px 0;
    font-size: 1.2rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: var(--primary-color);
    color: #000;
}

.apartment-info {
    padding: 20px;
    text-align: right;
}

.apartment-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.apartment-info p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Location Section */
.location-section {
    padding: 80px 0;
    background-color: var(--secondary-bg);
    text-align: center;
}

.location-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #fff;
}

.location-section i {
    color: var(--primary-color);
    margin-left: 10px;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1.5rem;
    border-radius: 10px;
    border: 2px solid #444;
}

/* Footer */
footer {
    background-color: #000;
    padding: 50px 0 20px;
    color: #fff;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.footer-logo p {
    color: #bbb;
    letter-spacing: 1px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info ul li i {
    color: var(--primary-color);
    margin-left: 10px;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-icon {
        display: block;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Below header */
        right: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
        display: none;
        text-align: center;
        border-top: 1px solid #333;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h1 .hero-sub-text {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .footer-content {
        text-align: center;
    }
}