:root {
    --primary-color: #ffffff;
    --accent-color: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-arabic: 'Readex Pro', sans-serif;
    --font-arabic-kufam: 'Kufam', sans-serif;
    --transition-speed: 0.3s;


}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d;
    color: var(--primary-color);
    font-family: var(--font-heading);
    overflow-x: hidden;
}

header.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 4rem;
    pointer-events: none;
    /* Let clicks pass through if needed, except for links */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease;
}

header.header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    position: relative;
}

.logo {
    order: 2;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    pointer-events: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.text-gold { color: #EFBF04; }
.text-white { color: #ffffff; }

.nav {
    display: flex;
    order: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-family: var(--font-arabic-kufam);
    font-weight: 400;
    transition: color var(--transition-speed);
}

.nav a:hover {
    color: #ffffff;
}

.glass-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 1rem 2.5rem;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: var(--font-arabic);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    order: 1;
}

.hero-cta-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-family: var(--font-arabic-kufam);
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    transition: all var(--transition-speed);
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.hero-cta-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.hero-scroll-container {
    height: 100vh;
    position: relative;
    z-index: 1;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly dim for text readability */
}

#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
}

.word-create,
.word-space {
    font-family: var(--font-arabic);
    font-weight: 600;
    font-size: 8rem;
    line-height: 1;
}

.word-your {
    font-family: var(--font-arabic-kufam);
    font-weight: 500;
    font-size: 6rem;
    margin: -1rem 0;
    opacity: 0.95;
    letter-spacing: 0;
}

.word-in {
    font-family: inherit;
    font-weight: inherit;
}

.page-content {
    position: relative;
    z-index: 20;
    background-color: #0d0d0d;
    padding-top: 2rem;
}

/* Mobile Responsive */



/* Interactive Rooms Section */
.interactive-rooms-section {
    position: relative;
    z-index: 20;
    background-color: #0d0d0d;
    padding: 10rem 4rem;
    overflow: hidden;
}

#rooms-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.cinematic-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.cinematic-overlay {
    position: absolute;
    inset: 0;
    /* Dark gradient overlay to ensure text readability overlaying the image */
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.6) 100%);
    z-index: 5;
}

.rooms-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.rooms-content {
    flex: 1;
    max-width: 500px;
}

.rooms-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: var(--font-arabic-kufam);
}

.rooms-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 300;
    min-height: 100px;
    transition: opacity 0.3s ease;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all var(--transition-speed);
}

.explore-btn:hover {
    background: #ffffff;
    color: #000000;
}

.rooms-wheel-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.wheel-rotate-container {
    width: 600px;
    height: 600px;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.rooms-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.wheel-slice {
    cursor: pointer;
}

.slice-path {
    transition: fill 0.3s, stroke 0.3s;
}

.slice-text {
    font-size: 5px;
    fill: rgba(255, 255, 255, 0.5);
    font-family: var(--font-arabic);
    pointer-events: none;
    transition: fill 0.3s, font-weight 0.3s;
}

.wheel-slice:hover .slice-path {
    fill: rgba(255, 255, 255, 0.08);
}

.wheel-slice.active .slice-path {
    fill: rgba(255, 255, 255, 0.15);
    /* Sleek highlight color matching theme */
    stroke: #ffffff;
    stroke-width: 0.8;
}

.wheel-slice.active .slice-text {
    fill: #ffffff;
    font-weight: 600;
    font-size: 5.5px;
}

/* Add a glowing radial gradient behind the active (top) slice for illumination */
.focus-indicator {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Projects & Team Layouts */
.page-header {
    padding: 8rem 4rem 3rem;
    text-align: left;
}

.page-title {
    font-size: 6rem;
    font-weight: 500;
    line-height: 0.9;
    margin-bottom: 2rem;
    text-align: right;
    font-family: var(--font-arabic-kufam);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    padding: 0 4rem 5rem;
}

.card {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    transform: scale(0.98);
}

/* Card Background Image */
.card-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%); /* Fallback glow */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.card:hover .card-bg {
    transform: scale(1.05);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.card-subtitle {
    font-size: 0.8rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Services Layout */
.services-container {
    padding: 0 0 5rem;
    display: flex;
    flex-direction: column;
}

/* Focus-Dim Effect */
.services-container:hover .expertise-item {
    opacity: 0.3;
}

.expertise-item {
    position: relative;
    width: 100%;
    padding: 3.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
}

.expertise-item:hover {
    opacity: 1 !important;
}

.expertise-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-bg-target {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.05);
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.expertise-item:hover .hover-bg-target {
    opacity: 1;
    transform: scale(1);
}

.hover-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    mix-blend-mode: multiply;
}

.expertise-text {
    position: relative;
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
    mix-blend-mode: difference;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-item:hover .expertise-text {
    transform: translateX(-20px);
    /* Subtle shift in RTL */
}

.service-title {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-arabic-kufam);
    margin: 0;
    line-height: 1.2;
}

.service-number {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: var(--font-heading);
    color: #ffffff;
    z-index: 10;
    mix-blend-mode: difference;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.expertise-item:hover .service-number {
    opacity: 1;
}

.service-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-arabic);
    font-weight: 300;
    max-width: 700px;
}

@media (max-width: 768px) {
    .services-container {
        padding: 0 2rem 5rem;
    }

    .expertise-item {
        padding: 2.5rem 0;
        grid-template-columns: 1fr;
        /* Stack number, title, and desc */
        gap: 1rem;
    }

    .service-title {
        font-size: 2.2rem;
    }

    .expertise-item:hover .expertise-text {
        transform: none;
        /* Disable shift on mobile for better space utility */
    }

    .service-number {
        font-size: 1.2rem;
        opacity: 0.5;
        /* Keep visible on mobile without hover */
    }
}


/* Team Grid Modifications */
.team-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

.team-portrait {
    aspect-ratio: 4 / 5;
    margin-bottom: 1.5rem;
}

.team-card {
    text-align: center;
    margin-bottom: 4rem;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.team-role {
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.6;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 10rem 2rem 3rem;
    }

    .page-title {
        font-size: 3.5rem;
    }

    .grid-container {
        padding: 0 2rem 5rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Contact Section Layout */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4rem 5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-arabic-kufam);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 1rem 0;
    font-family: var(--font-arabic);
    transition: border-color var(--transition-speed);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #ffffff;
}

.form-group select option {
    background-color: #111;
    color: #fff;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 2rem;
    background: #ffffff;
    border: none;
    padding: 1.2rem 4rem;
    font-size: 1.2rem;
    font-family: var(--font-arabic-kufam);
    cursor: pointer;
    border-radius: 50px;
    transition: transform var(--transition-speed);
    text-decoration: none;
    color: #000000;
}

.submit-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 2rem 5rem;
    }

    .submit-btn {
        align-self: stretch;
    }
}

/* Footer Section */
.footer {
    background-color: #050505;
    padding: 6rem 4rem 2rem;
    position: relative;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand h3 {
    font-family: var(--font-arabic-kufam);
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    font-weight: 500;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 350px;
    font-family: var(--font-arabic);
    font-weight: 300;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.links-column h4 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: var(--font-arabic-kufam);
    font-weight: 500;
    color: #ffffff;
}

.links-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.links-column a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

.links-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-family: var(--font-arabic);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-speed);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.social-links a:hover {
    color: #ffffff;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Header & Nav */
    header.header {
        padding: 1.5rem 2rem;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 1rem;
        background: rgba(20, 20, 20, 0.7);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        flex-direction: column;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav.mobile-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav ul {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }

    /* Hero Typography */
    .word-create,
    .word-space {
        font-size: 4rem;
    }

    .word-your {
        font-size: 3.2rem;
        margin: -0.5rem 0;
    }

    .hero-cta-btn {
        margin-top: 1.5rem;
        padding: 0.8rem 2.5rem;
        font-size: 1.1rem;
    }

    /* Interactive Rooms Component */
    .interactive-rooms-section {
        padding: 5rem 2rem;
    }

    .rooms-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .rooms-title {
        font-size: 2.2rem;
    }

    .rooms-description {
        min-height: auto;
        margin-bottom: 2rem;
    }

    .rooms-wheel-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .wheel-rotate-container {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .focus-indicator {
        top: -20px;
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 4rem 2rem 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Theme Toggle Switch */
.theme-toggle-wrapper {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.theme-toggle-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-arabic-kufam);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.theme-toggle-btn.active {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: fill 0.3s;
}

.theme-toggle-btn:not(.active) svg {
    fill: currentColor;
}
.theme-toggle-btn.active svg {
    fill: #000;
}

@media (max-width: 768px) {
    .theme-toggle-wrapper {
        top: 1rem;
    }
    .theme-toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ====== Page Description ====== */
.page-desc {
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    font-family: var(--font-arabic);
    margin-top: -1rem;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: right;
}

/* ====== Property Filters ====== */
.property-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem 3rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    flex: 0 0 auto;
}

.filter-group label {
    color: #EFBF04;
    font-family: var(--font-arabic-kufam);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.filter-select {
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23EFBF04' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1.2rem center;
    background-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: var(--font-arabic);
    font-size: 1rem;
    padding: 0.8rem 1.2rem 0.8rem 2.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-select:hover {
    border-color: rgba(239, 191, 4, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.filter-select:focus {
    outline: none;
    border-color: #EFBF04;
    background-color: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: #0a0a0a;
    color: #ffffff;
    font-family: var(--font-arabic);
}

.filter-reset-btn {
    background: transparent;
    border: 1px solid rgba(239, 191, 4, 0.4);
    color: #EFBF04;
    font-family: var(--font-arabic-kufam);
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-end;
    white-space: nowrap;
}

.filter-reset-btn:hover {
    background: #EFBF04;
    color: #000;
    border-color: #EFBF04;
}

.filter-reset-btn svg {
    width: 14px;
    height: 14px;
}

/* ====== Property Cards (Uniform Grid) ====== */
.properties-grid {
    /* Grid container — layout handled by Tailwind */
}

.property-card {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    display: block;
    text-decoration: none;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    min-height: 240px;
}

.property-card:hover {
    transform: scale(0.97);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.property-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover img {
    transform: scale(1.08);
}

.property-card.hidden {
    display: none;
}

@media (max-width: 640px) {
    .property-card {
        min-height: 200px;
    }
}

/* ====== Pagination ====== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem auto 0;
    flex-wrap: wrap;
    max-width: 1400px;
}

.pagination-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-arabic-kufam);
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 42px;
}

.pagination-btn:hover:not(:disabled) {
    color: #ffffff;
    border-color: #EFBF04;
}

.pagination-btn.active {
    background: #EFBF04;
    color: #000000;
    border-color: #EFBF04;
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ====== Empty State ====== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-arabic);
}

.empty-state.hidden {
    display: none;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    opacity: 0.4;
    display: block;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* ====== Project Grid ====== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem 5rem;
}

.project-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    display: block;
    text-decoration: none;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.project-card:hover {
    transform: scale(0.97);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.project-card:hover .card-overlay {
    opacity: 0.9;
}

.project-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    z-index: 2;
}

.project-card .card-subtitle {
    display: inline-block;
    color: #EFBF04;
    font-family: var(--font-arabic-kufam);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-card .card-title {
    color: #ffffff;
    font-family: var(--font-arabic-kufam);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    transition: transform 0.5s ease;
}

.project-card:hover .card-title {
    transform: translateY(-3px);
}

.project-card .card-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.8rem;
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.project-card:hover .card-meta {
    opacity: 1;
    transform: translateY(0);
}

/* Hide cards on filter */
.project-card.hidden {
    display: none;
}

/* ====== Lightbox ====== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lightbox-counter {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }
}

/* ====== Project Detail Page ====== */
.detail-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0d0d0d 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.detail-hero-content {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 4rem;
}

.detail-hero-content .detail-category {
    color: #EFBF04;
    font-family: var(--font-arabic-kufam);
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    display: block;
}

.detail-hero-content h1 {
    font-family: var(--font-arabic-kufam);
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.detail-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 4rem;
}

.detail-description {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 5rem;
    text-align: center;
}

.detail-info-item label {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-arabic);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.detail-info-item span {
    display: block;
    color: #ffffff;
    font-family: var(--font-arabic-kufam);
    font-size: 1.2rem;
    font-weight: 600;
}

.detail-gallery-title {
    font-family: var(--font-arabic-kufam);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.detail-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.detail-gallery img:hover {
    transform: scale(1.03);
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-arabic-kufam);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 2rem;
}

.detail-back:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .property-filters {
        padding: 0 2rem 2rem;
        gap: 1rem;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-reset-btn {
        width: 100%;
        justify-content: center;
        align-self: stretch;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 2rem 5rem;
        gap: 1rem;
    }

    .project-card .card-title {
        font-size: 1.2rem;
    }

    .detail-hero-content h1 {
        font-size: 2rem;
    }

    .detail-hero-content {
        padding: 0 2rem;
    }

    .detail-body {
        padding: 3rem 2rem;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
    }
}

/* ====== Landing Page (landing.html) ====== */
.landing-page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #0a0a0a;
    margin: 0;
}

.landing-header {
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(239, 191, 4, 0.15);
}

.landing-header .logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-arabic-kufam);
    font-size: 1.2rem;
    font-weight: 700;
}

.landing-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 2rem;
}

.landing-intro {
    text-align: center;
    max-width: 800px;
    padding: 1rem 1rem 0;
}

.landing-eyebrow {
    display: inline-block;
    color: #EFBF04;
    font-family: var(--font-arabic-kufam);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.landing-title {
    font-family: var(--font-arabic-kufam);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.landing-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-arabic);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin: 0;
    line-height: 1.6;
}

.landing-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1300px;
    padding: 1rem;
}

.landing-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1.5rem;
    cursor: pointer;
    background: #111;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
    transition: border-color 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-card:hover {
    border-color: #EFBF04;
    transform: scale(1.015);
}

.landing-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.landing-card:hover img {
    transform: scale(1.08);
}

.landing-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0.85;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.landing-card:hover .landing-card-overlay {
    opacity: 1;
}

.landing-card-content {
    position: absolute;
    inset: 0;
    padding: 2rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    z-index: 2;
}

.landing-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(239, 191, 4, 0.15);
    border: 1px solid rgba(239, 191, 4, 0.4);
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
    transition: all 0.4s ease;
}

.landing-card:hover .landing-card-icon {
    background: #EFBF04;
    border-color: #EFBF04;
}

.landing-card-icon svg {
    width: 26px;
    height: 26px;
    fill: #EFBF04;
    transition: fill 0.4s ease;
}

.landing-card:hover .landing-card-icon svg {
    fill: #0a0a0a;
}

.landing-card-title {
    font-family: var(--font-arabic-kufam);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.landing-card-desc {
    font-family: var(--font-arabic);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 1.5rem;
    line-height: 1.5;
    max-width: 90%;
}

.landing-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(239, 191, 4, 0.1);
    border: 1px solid #EFBF04;
    color: #EFBF04;
    font-family: var(--font-arabic-kufam);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    width: fit-content;
    transition: all 0.3s ease;
}

.landing-card:hover .landing-card-btn {
    background: #EFBF04;
    color: #0a0a0a;
}

.landing-card-btn svg {
    transition: transform 0.3s ease;
}

.landing-card:hover .landing-card-btn svg {
    transform: translateX(-4px);
}

.landing-footer {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    border-top: 1px solid rgba(239, 191, 4, 0.1);
}

.landing-footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .landing-header {
        padding: 1rem 1.5rem;
    }

    .landing-split {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .landing-card {
        aspect-ratio: 16 / 10;
    }

    .landing-card-content {
        padding: 1.5rem;
    }

    .landing-card-desc {
        max-width: 100%;
    }
}
