/* ============================================
   Modern Real Estate Website Styles
   ============================================ */

:root {
    /* White, Gold & Navy Blue Palette - Matching Logo */
    --primary-color: #d4af37;            /* Rich gold */
    --secondary-color: #1a2b4d;          /* Navy blue (كحلي) */
    --accent-color: #f4d35e;             /* Soft gold highlight */
    --background-dark: #1a2b4d;          /* Navy blue backdrop */
    --background-mid: #2a3d5f;           /* Lighter navy */
    --background-light: #ffffff;          /* Pure white */
    --card-light: #ffffff;               /* Card base - white */
    --text-color: #1a2b4d;               /* Primary text - navy */
    --text-muted: #5a6784;               /* Muted text */
    --text-light: #ffffff;               /* Text on dark backgrounds - white */
    --dark-color: #1a2b4d;               /* Navy blue */
    --border-color: rgba(26, 43, 77, 0.15);
    --white: #ffffff;
    --gold: #d4af37;
    --navy: #1a2b4d;
    --shadow: 0 18px 35px -28px rgba(26, 43, 77, 0.25);
    --shadow-lg: 0 28px 55px -30px rgba(26, 43, 77, 0.35);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f4d35e 50%, #b98f1a 100%);
    --navy-gradient: linear-gradient(140deg, #1a2b4d 0%, #2a3d5f 70%, #1a2b4d 100%);
}

html {
  font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #ffffff;
    background-attachment: fixed;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: #ffffff !important;
    backdrop-filter: blur(18px);
    box-shadow: 0 2px 15px rgba(26, 43, 77, 0.1);
    transition: all 0.35s ease;
    padding: 1.1rem 0;
    border-bottom: 2px solid var(--gold);
}

.navbar.scrolled {
    padding: 0.65rem 0;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(26, 43, 77, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy) !important;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img,
.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    max-width: 250px;
    transition: all 0.3s ease;
    filter: none;
}

.navbar-brand:hover img,
.navbar-brand:hover .logo-img {
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600;
    color: var(--navy) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--gold) !important;
}

.nav-link.btn-link {
    color: var(--navy) !important;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link.btn-link:hover {
    color: var(--gold) !important;
    transform: scale(1.05);
}

.nav-link.btn-link i {
    transition: transform 0.3s ease;
}

.nav-link.btn-link:hover i {
    transform: rotate(15deg);
}

.nav-link.active {
    color: var(--gold) !important;
}

.navbar-toggler {
    border-color: var(--navy);
    color: var(--navy);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 43, 77, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 43, 77, 0.25);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: var(--navy-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
    isolation: isolate;
    border-bottom: 3px solid var(--gold);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0, 0, 0, 0) 45%);
    filter: blur(60px);
    z-index: 1;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0) 55%),
        url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:rgba(212,175,55,0.15);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(212,175,55,0);stop-opacity:0" /></linearGradient></defs><path d="M0 120 Q100 40 200 120 T400 120" stroke="url(%23grad)" stroke-width="4" fill="none"/></svg>') repeat;
    background-size: cover, 400px 400px;
    opacity: 0.4;
    animation: patternMove 25s linear infinite;
    z-index: 1;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

@keyframes pulseGlow {
    from {
        opacity: 0.25;
        transform: scale(0.95);
    }
    to {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    background: var(--gold-gradient);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    color: var(--dark-color);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--gold-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
    color: var(--dark-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: all 0.45s ease;
}

.btn-primary:hover::before {
    left: 125%;
}

.btn-outline-light {
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline-light:hover {
    background: var(--gold-gradient);
    color: var(--dark-color);
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-outline-light::before,
.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: all 0.45s ease;
}

.btn-outline-light:hover::before,
.btn-outline-primary:hover::before {
    left: 120%;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: var(--primary-color);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary:hover {
    background: var(--gold-gradient);
    color: var(--dark-color);
    transform: translateY(-2px);
    border-color: transparent;
}

/* ============================================
   Property Cards
   ============================================ */

.property-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(26, 43, 77, 0.15);
    background: #ffffff;
    border: 2px solid rgba(26, 43, 77, 0.1);
    backdrop-filter: blur(10px);
    height: 100%;
    transform: translateY(0);
    color: var(--text-color);
}

.property-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    border-color: var(--gold);
}

.property-card:hover::before {
    opacity: 1;
}

.property-card .card-body {
    position: relative;
    z-index: 2;
    color: var(--text-color);
}

.property-card-img {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.property-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: saturate(1.05);
}

.property-card:hover .property-card-img img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-gradient);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: var(--shadow);
}

.property-price {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
    text-shadow: 0 8px 18px rgba(212, 175, 55, 0.25);
}

.property-location {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.property-feature i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 5rem 0;
    position: relative;
    color: var(--text-color);
}

.section.bg-light,
.section.bg-white {
    background: #ffffff;
    color: var(--text-color);
}

.section.bg-light .section-title,
.section.bg-white .section-title {
    color: var(--dark-color);
}

.section.bg-light .section-subtitle,
.section.bg-white .section-subtitle {
    color: var(--text-light);
    opacity: 0.75;
}

.section:not(.bg-light):not(.bg-white) .card-title,
.section:not(.bg-light):not(.bg-white) .lead {
    color: var(--text-color);
}

.stats-section {
    background: var(--navy-gradient);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 55%),
        url('data:image/svg+xml,<svg width="140" height="140" xmlns="http://www.w3.org/2000/svg"><path d="M0 140 L140 0" stroke="rgba(212,175,55,0.08)" stroke-width="2"/><path d="M70 140 L210 0" stroke="rgba(212,175,55,0.06)" stroke-width="2"/></svg>') repeat;
    background-size: cover, 280px 280px;
    opacity: 0.45;
    z-index: 1;
    animation: patternMove 30s linear infinite;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-section h2 {
    color: var(--primary-color);
}

.stats-section .display-4 {
    font-size: 3.2rem;
    font-weight: 800;
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.stats-section p.fs-5 {
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.3px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: inherit;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: inherit;
    opacity: 0.75;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ============================================
   Developer Cards
   ============================================ */

.developer-card {
    text-align: center;
    padding: 2rem;
    border-radius: 22px;
    background: #ffffff;
    border: 2px solid rgba(26, 43, 77, 0.1);
    box-shadow: 0 8px 25px rgba(26, 43, 77, 0.15);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    color: var(--text-color);
}

.developer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.12), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.developer-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    border-color: var(--gold);
}

.developer-card:hover::after {
    opacity: 1;
}

.developer-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid;
    border-image: var(--gold-gradient) 1;
    transition: transform 0.4s ease;
    box-shadow: 0 15px 25px -18px rgba(212, 175, 55, 0.75);
    position: relative;
    z-index: 1;
}

.developer-card:hover .developer-logo {
    transform: scale(1.1);
    box-shadow: 0 22px 40px -25px rgba(212, 175, 55, 0.85);
}

/* ============================================
   Blog Cards
   ============================================ */

.blog-card {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(26, 43, 77, 0.15);
    transition: all 0.4s ease;
    height: 100%;
    background: #ffffff;
    border: 2px solid rgba(26, 43, 77, 0.1);
    position: relative;
    color: var(--text-color);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    border-color: var(--gold);
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.1);
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(26, 43, 77, 0.2);
    border: 2px solid rgba(26, 43, 77, 0.15);
    color: var(--text-color);
}

.form-control {
    border: 2px solid rgba(26, 43, 77, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--text-color);
}

.contact-form label {
    color: var(--text-color);
    font-weight: 600;
}

.form-control::placeholder {
    color: rgba(90, 103, 132, 0.65);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    background: #ffffff;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--navy-gradient);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
    position: relative;
    border-top: 3px solid var(--gold);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Loading Spinner
   ============================================ */

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Additional Gold & Black Theme Elements
   ============================================ */

.bg-gold {
    background: var(--gold-gradient) !important;
    color: var(--dark-color) !important;
}

.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gold {
    border-color: var(--primary-color) !important;
}

.card-header {
    background: var(--navy);
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 180px;
}

.dropdown-menu li {
    width: 100%;
    list-style: none;
}

.dropdown-menu form {
    width: 100%;
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
  position: relative;
    z-index: 1;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.dropdown-item.active {
    background: var(--gold-gradient);
    color: var(--dark-color);
    font-weight: 700;
}

.dropdown-item.active:hover {
    background: var(--gold-gradient);
    color: var(--dark-color);
    filter: brightness(1.05);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .property-card-img {
        height: 200px;
    }
    
    .navbar-brand img,
    .logo-img {
        height: 35px;
    }
}

/* ============================================
   RTL Support
   ============================================ */

[dir="rtl"] .property-features {
    direction: rtl;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}
