/* Google Fonts - Tajawal */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* --- Variables --- */
:root {
    /* Colors */
    --primary-color: #0F172A;
    /* Dark Navy - like Sadanare/Sodasyat dark themes */
    --secondary-color: #C0A062;
    /* Gold/Metallic - Premium feel */
    --accent-color: #F8FAFC;
    /* Light Gray/White */
    --text-color: #334155;
    --text-light: #64748B;
    --white: #FFFFFF;
    --black: #000000;
    --bg-light: #F1F5F9;

    /* Spacing */
    --header-height: 90px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo-img {
    height: 160px;
    width: auto;
    object-fit: contain;
    max-width: 400px;
    position: absolute;
    top: -20px;
    right: 0;
    /* Drop Logic */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b08d4e;
    /* Darker gold */
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #eee;
}

/* --- Header --- */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    right: 0;
    /* RTL usually starts right */
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle,
.nav-close,
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 0;
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    /* Background Image Removed - Replaced by Video */
    /* background: url(...) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.input-group i {
    color: var(--secondary-color);
}

.search-select {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    color: var(--text-color);
    background: transparent;
    cursor: pointer;
}

.search-btn {
    min-width: 150px;
}

/* --- Stats --- */
.stats {
    padding: 3rem 0;
    background: var(--white);
    margin-top: -3rem;
    /* Overlap effect */
    position: relative;
    z-index: 20;
}

.stats-container {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 1rem;
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: var(--text-light);
    font-weight: 700;
}

/* --- Project Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.project-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* Stronger shadow */
}

.project-img-holder {
    height: 220px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    /* Ensure image zoom stays inside */
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Smoother slower transition */
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

.badge.new {
    background-color: var(--secondary-color);
}

.badge.sold {
    background-color: #ef4444;
}

.project-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-location i {
    color: var(--secondary-color);
    margin-left: 0.3rem;
}

.project-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-color);
}

.project-features i {
    color: var(--text-light);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 0.8rem;
    /* Slide arrow */
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--secondary-color);
    color: var(--white);
}

.service-title {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: 6rem 0;
    color: var(--white);
    text-align: center;
    background-color: #1a2d3d;
    /* Fallback dark background */
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1560518883-ce09059ee971?q=80&w=1500&auto=format&fit=crop') no-repeat center center/cover;
    opacity: 0.3;
    z-index: 0;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-desc {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-content {
    position: relative;
    z-index: 1;
}


/* --- Footer --- */
.footer {
    background-color: #0f172a;
    /* Main dark color */
    color: #94a3b8;
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #1e293b;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    color: var(--secondary-color);
}

.footer-desc {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.footer-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 1rem;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    margin-right: 0.3rem;
}

.footer-contact li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 0.3rem;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-logo .logo-img {
    height: 170px;
    width: auto;
    position: static;
    top: auto;
    right: auto;
    max-width: 100%;
    margin-bottom: 1rem;
}

/* --- Animations --- */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.center-btn {
    text-align: center;
    margin-top: 2rem;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden right for RTL */
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        padding: 4rem 2rem;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-toggle,
    .nav-close,
    .mobile-menu-btn {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
    }

    .sm-hidden {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-logo,
    .social-links,
    .footer-contact li {
        justify-content: center;
    }

    /* Mobile Menu Button */
    .mobile-only-btn {
        display: block !important;
        /* Force show on mobile */
        width: 100%;
        text-align: center;
        margin-top: 2rem;
        /* Reduced spacing to align higher */
        margin-bottom: 2rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    /* Ensure Nav Content Scrolable if too tall */
    .nav {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
}

/* Hide mobile button on desktop */
@media (min-width: 769px) {
    .mobile-only-btn {
        display: none !important;
    }
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-holder {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.about-img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: bounce 3s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.about-badge span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.about-badge p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 0.2rem;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.a-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.a-feature i {
    color: var(--secondary-color);
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    /* Ensure no underline */
    padding: 0.5rem;
    /* Add touch target padding */
    border-radius: 0.5rem;
    transition: var(--transition);
}

.info-item:hover {
    background-color: var(--bg-light);
    transform: translateX(-5px);
    /* Subtle slight movement */
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.info-item:hover .info-icon {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    transition: var(--transition);
}

.info-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.map-embed {
    border-radius: 1rem;
    overflow: hidden;
    margin-top: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(192, 160, 98, 0.1);
}

textarea.form-input {
    resize: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -2rem;
        animation: none;
        /* Simplify on mobile */
    }

    .about-features {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* --- Enhanced Scroll Animations --- */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-up.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left */
.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-left.active-reveal {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right */
.animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-right.active-reveal {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Up */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-scale.active-reveal {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Smooth Hover Effects for Cards */
.project-card,
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Hover Animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Link Underline Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Image Zoom on Hover */
.project-img-holder {
    overflow: hidden;
}

.project-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

/* Icon Bounce */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.service-icon:hover i {
    animation: iconBounce 0.5s ease;
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(192, 160, 98, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(192, 160, 98, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(192, 160, 98, 0);
    }
}

.cta .btn-primary {
    animation: pulse 2s infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {

    .animate-up,
    .animate-left,
    .animate-right {
        transform: translateY(30px) !important;
    }

    .animate-up.active-reveal,
    .animate-left.active-reveal,
    .animate-right.active-reveal {
        transform: translateY(0) !important;
    }

    /* Reduce animation duration on mobile for better performance */
    .animate-up,
    .animate-left,
    .animate-right,
    .animate-scale {
        transition-duration: 0.4s;
    }

    /* Disable pulse on mobile to save battery */
    .cta .btn-primary {
        animation: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.logo-img {
    height: 170px;
    width: auto;
    object-fit: contain;
    max-width: 400px;
    position: absolute;
    top: -30px;
    right: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* --- Sodasyat Card Design --- */
.sodasyat-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* Aspect ratio for portrait cards like screenshot */
    aspect-ratio: 3/4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    direction: rtl;
    /* Arabic */
    background: #000;
}

.sodasyat-card .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sodasyat-card:hover .card-image {
    transform: scale(1.1);
}

/* Gradient Overlay */
.sodasyat-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0.6) 60%,
            rgba(0, 0, 0, 0.9) 100%);
    transition: background 0.3s;
}

.sodasyat-card:hover .card-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 20%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.95) 100%);
}

/* Badge (Top Right) */
.sodasyat-card .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(30, 41, 59, 0.7);
    /* translucent dark */
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* Heart Icon (Top Left) */
.sodasyat-card .card-heart {
    position: absolute;
    top: 15px;
    left: 15px;
    /* Use transparent white icon or outline? Screenshot shows white outline heart */
    color: #fff;
    font-size: 1.4rem;
    z-index: 30;
    cursor: pointer;
    transition: transform 0.2s;
}

.sodasyat-card .card-heart:hover {
    transform: scale(1.1);
}

/* Content Container */
.sodasyat-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Price Section */
.sodasyat-card .card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.sodasyat-card .card-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.sodasyat-card .card-currency {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Installment */
.sodasyat-card .card-installment {
    font-size: 0.95rem;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Location */
.sodasyat-card .card-location {
    font-size: 1rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f1f5f9;
}

/* Hover Details (The part that appears) */
.sodasyat-card .card-hover-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-top: 0;
}

.sodasyat-card:hover .card-hover-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.sodasyat-card .detail-feature {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
}

.sodasyat-card .detail-feature i {
    width: 20px;
    text-align: center;
}

/* --- Details Page Enhancements for Mobile --- */

/* Feature Rows (List of amenities) created by JS */
.feature-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.feature-row i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.feature-row span {
    color: #333;
    font-weight: 500;
}

/* --- Details Page Desktop Styles --- */
.details-content {
    margin-top: 2rem;
}

.details-desc {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.details-desc h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.details-desc h3 {
    color: var(--primary-color);
}

.details-desc p {
    color: var(--text-color);
    line-height: 1.9;
}

.details-desc ul {
    padding-right: 1.5rem;
    list-style: disc;
}

.details-desc ul li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {

    /* Layout Reordering: Sidebar (Price) before Description */
    .details-content {
        display: flex !important;
        flex-direction: column;
    }

    .details-sidebar {
        order: -1;
        margin-bottom: 2rem;
    }

    /* Transform Features List into Grid */
    .key-facts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem !important;
    }

    .feature-row {
        border-bottom: none;
        background: #f8fafc;
        /* Light background for card-like feel */
        padding: 0.8rem;
        border-radius: 8px;
        font-size: 0.85rem;
        justify-content: flex-start;
        border: 1px solid #f1f5f9;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .feature-row i {
        font-size: 1rem;
        width: 20px;
    }

    /* Improve Gallery Layout */
    .gallery-grid {
        display: flex !important;
        flex-direction: column;
        height: auto !important;
        gap: 0.8rem !important;
    }

    .gallery-main {
        height: 280px !important;
        width: 100% !important;
        border-radius: 12px;
    }

    .gallery-side {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        height: auto !important;
        gap: 0.8rem !important;
    }

    .gallery-side>div {
        height: 140px !important;
        border-radius: 12px;
    }
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    border: 2px solid #25D366;
}


.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

/* Contact Section Relayout - Reverted to Vertical (Map Bottom) */
/* Contact Section Relayout - Side by Side (Fixed Map Width) */
.contact-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-embed {
    width: 450px;
    height: 250px;
    /* Natural iframe height */
    flex-shrink: 0;
    /* Prevent map from shrinking */
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .map-embed {
        width: 100%;
        height: auto;
        min-height: 250px;
    }
}

/* --- Lightbox Gallery --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    display: block;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 1001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   MOBILE RESPONSIVENESS - MEDIA QUERIES
   ============================================ */
/* Tablet and below (768px) */
@media (max-width: 768px) {

    /* Header adjustments */
    .header {
        height: 70px;
        padding: 0.75rem 0;
    }

    .logo-img {
        height: 100px !important;
        top: -15px !important;
    }

    /* Hero section */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Search box - stack vertically */
    .search-form {
        flex-direction: column !important;
        gap: 0.75rem;
    }

    .input-group {
        width: 100% !important;
    }

    .search-btn {
        width: 100% !important;
        height: 50px;
    }

    /* Sections padding */
    .section {
        padding: 3rem 0;
    }

    /* Grid layouts */
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* About section */
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }

    /* Contact section */
    .contact-wrapper {
        flex-direction: column;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo .logo-img {
        height: 90px !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {

    /* Header */
    .header {
        height: 60px;
    }

    .logo-img {
        height: 80px !important;
        top: -10px !important;
    }

    /* Hero */
    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .search-btn {
        height: 48px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Stats */
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Footer logo */
    .footer-logo .logo-img {
        height: 70px !important;
    }

    /* Spacing */
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   MOBILE RESPONSIVENESS - MEDIA QUERIES
   ============================================ */
/* Tablet and below (768px) */
@media (max-width: 768px) {

    /* Header adjustments */
    .header {
        height: 70px;
        padding: 0.75rem 0;
    }

    .logo-img {
        height: 100px !important;
        top: -15px !important;
    }

    /* Hero section */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Search box - stack vertically */
    .search-form {
        flex-direction: column !important;
        gap: 0.75rem;
    }

    .input-group {
        width: 100% !important;
    }

    .search-btn {
        width: 100% !important;
        height: 50px;
    }

    /* Sections padding */
    .section {
        padding: 3rem 0;
    }

    /* Grid layouts */
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* About section */
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }

    /* Contact section */
    .contact-wrapper {
        flex-direction: column;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo .logo-img {
        height: 90px !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {

    /* Header */
    .header {
        height: 60px;
    }

    .logo-img {
        height: 80px !important;
        top: -10px !important;
    }

    /* Hero */
    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .search-btn {
        height: 48px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Stats */
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Footer logo */
    .footer-logo .logo-img {
        height: 70px !important;
    }

    /* Spacing */
    .container {
        padding: 0 1rem;
    }
}