/* ============================================
   Details Real Estate - Luxury Theme Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --dark: #1a1a2e;
    --charcoal: #2d2d3f;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --font-ar: 'Tajawal', 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', 'Tajawal', serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.25s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ---- Base Reset & Typography ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-ar);
    font-weight: 400;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---- Logo Images ---- */
.nav-logo {
    height: 55px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-logo-white {
    display: inline-block;
}

#navLogoColor {
    display: none;
}

.main-nav.scrolled .nav-logo-white {
    display: none;
}

.main-nav.scrolled #navLogoColor {
    display: inline-block;
}

.form-logo-img {
    height: 65px;
    width: auto;
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
}

.sidebar-logo-img {
    height: 45px;
    width: auto;
}

/* Legacy text logo fallback */
.logo-d {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1em;
    color: var(--primary);
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--gray-900);
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray-400);
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
}

.top-bar-contact a {
    color: var(--gray-400);
    font-size: 13px;
}

.top-bar-contact a:hover {
    color: var(--white);
}

.top-bar-contact a i {
    margin-left: 6px;
    font-size: 11px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: var(--gray-400);
    font-size: 13px;
}

.top-bar-social a:hover {
    color: var(--primary-light);
}

.lang-switch {
    color: var(--gray-300) !important;
    font-weight: 600;
    font-size: 13px;
    padding: 2px 12px;
    border: 1px solid var(--gray-600);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.lang-switch:hover {
    color: var(--white) !important;
    border-color: var(--primary);
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
    margin-top: 37px;
}

.main-nav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    margin-top: 0;
}

.main-nav .navbar-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 3px;
}

.main-nav.scrolled .navbar-brand {
    color: var(--gray-900);
}

.main-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition-fast);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--white);
}

.main-nav.scrolled .nav-link {
    color: var(--gray-700);
}

.main-nav.scrolled .nav-link:hover,
.main-nav.scrolled .nav-link.active {
    color: var(--gray-900);
}

.btn-nav-cta {
    color: var(--white) !important;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-nav-cta:hover {
    background: var(--white);
    color: var(--gray-900) !important;
    border-color: var(--white);
}

.main-nav.scrolled .btn-nav-cta {
    color: var(--gray-900) !important;
    border-color: var(--gray-900);
}

.main-nav.scrolled .btn-nav-cta:hover {
    background: var(--gray-900);
    color: var(--white) !important;
}

/* Custom Hamburger */
.navbar-toggler {
    border: none;
    padding: 8px;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

.main-nav.scrolled .navbar-toggler-bar {
    background: var(--gray-900);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,30,0.75) 0%, rgba(10,10,30,0.55) 50%, rgba(10,10,30,0.70) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 500px;
}

.btn-hero-cta {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-hero-cta:hover {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Hero Form */
.hero-form-wrapper {
    background: rgba(30,30,50,0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 35px;
}

.hero-form-header {
    margin-bottom: 25px;
}

.hero-form-header .form-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.hero-form-header h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}

/* Glass Inputs */
.glass-input {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: var(--white) !important;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-family: var(--font-ar);
}

.glass-input::placeholder {
    color: rgba(255,255,255,0.5) !important;
}

.glass-input:focus {
    background: rgba(255,255,255,0.12) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.15) !important;
    outline: none;
}

.glass-input option {
    background: var(--gray-800);
    color: var(--white);
}

/* Submit Button */
.btn-form-submit {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: var(--font-ar);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-form-submit:hover {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
}

/* Validation */
.glass-input.is-invalid {
    border-color: #ef4444 !important;
}

.form-error-msg {
    color: #fca5a5;
    font-size: 12px;
    margin-top: 4px;
}

/* ============================================
   Statistics Section
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-geometric {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/pat.png') center/cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.stats-heading {
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 15px;
}

.stats-desc {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.8;
}

.stat-card {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Section Common
   ============================================ */
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--gray-900);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 16px;
    line-height: 1.8;
    max-width: 600px;
}

.section-header {
    margin-bottom: 40px;
}

/* Swiper Nav Buttons */
.swiper-nav-btns {
    display: flex;
    gap: 10px;
}

.swiper-nav-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--gray-300);
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-700);
    font-size: 14px;
}

.swiper-nav-btn:hover {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
}

/* Luxury Button */
.btn-luxury {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-luxury:hover {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
    transform: translateY(-2px);
}

/* ============================================
   Amenities Section
   ============================================ */
.amenities-section {
    padding: 100px 0 80px;
    background: var(--white);
}

.amenities-slider-wrapper {
    padding: 0 20px;
}

.amenities-swiper {
    overflow: visible;
    padding: 10px 0;
}

.amenity-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.amenity-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.amenity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.amenity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.amenity-overlay i {
    font-size: 22px;
    opacity: 0.9;
}

.amenity-overlay h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   Visual CTA Section
   ============================================ */
.visual-cta-section {
    padding: 20px 40px;
}

.visual-cta-container {
    position: relative;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.visual-cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.visual-cta-title {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 25px;
    max-width: 700px;
}

.btn-visual-cta {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-visual-cta:hover {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   Projects Section
   ============================================ */
.projects-section {
    padding: 100px 0 80px;
    background: var(--white);
}

.projects-slider-wrapper {
    padding: 0 20px;
}

.projects-swiper {
    overflow: visible;
}

.projects-swiper .swiper-slide {
    width: 280px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projects-swiper .swiper-slide-active,
.projects-swiper .swiper-slide:hover {
    width: 400px;
}

.project-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.project-image {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(50,50,50,0.85);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.rtl-layout .project-badge {
    right: auto;
    left: 20px;
}

.project-name {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.project-hover-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-hover-content,
.swiper-slide-active .project-hover-content {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

.project-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.btn-project-cta {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-project-cta:hover {
    background: var(--white);
    color: var(--gray-900);
}

/* ============================================
   Unit Models Section
   ============================================ */
.units-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.units-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.unit-tab {
    padding: 12px 28px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-ar);
}

.unit-tab:hover {
    color: var(--gray-800);
}

.unit-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.unit-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.unit-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.unit-specs {
    list-style: none;
    padding: 0;
}

.unit-specs li {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.unit-specs li:last-child {
    border-bottom: none;
}

.unit-specs li strong {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 15px;
}

.unit-specs li span {
    color: var(--gray-600);
    font-size: 15px;
}

.unit-floorplan {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.unit-floorplan img {
    max-height: 400px;
    object-fit: contain;
}

.floorplan-placeholder {
    color: var(--gray-400);
    text-align: center;
}

.floorplan-placeholder i {
    margin-bottom: 15px;
    color: var(--gray-300);
}

.floorplan-placeholder p {
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   Final CTA / Booking Section
   ============================================ */
.final-cta-section {
    position: relative;
    padding: 100px 0 0;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.final-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.final-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20,20,40,0.75);
}

.final-cta-section .container {
    position: relative;
    z-index: 2;
}

.final-form-wrapper {
    background: rgba(30,30,50,0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 60px;
}

.final-form-header {
    margin-bottom: 25px;
}

.final-form-header .form-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.final-form-header h3 {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

/* Dark Glass Inputs */
.glass-input-dark {
    background: rgba(255,255,255,0.06) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 0 !important;
    color: var(--white) !important;
    padding: 14px 4px;
    font-size: 14px;
    transition: var(--transition-fast);
    font-family: var(--font-ar);
}

.glass-input-dark::placeholder {
    color: rgba(255,255,255,0.5) !important;
}

.glass-input-dark:focus {
    background: rgba(255,255,255,0.08) !important;
    border-bottom-color: var(--primary) !important;
    box-shadow: none !important;
    outline: none;
}

.glass-input-dark option {
    background: var(--gray-800);
    color: var(--white);
}

.btn-form-submit-dark {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: var(--font-ar);
    display: inline-flex;
    align-items: center;
}

.btn-form-submit-dark:hover {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-geometric {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/pat.png') center/cover no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--gray-400);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.footer-heading {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 15px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.rtl-layout .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--primary-light);
    font-size: 16px;
    margin-top: 4px;
    min-width: 20px;
}

.footer-contact li strong {
    display: block;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.footer-contact li span,
.footer-contact li a {
    color: var(--gray-400);
    font-size: 14px;
}

.footer-contact li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    background: var(--gray-900);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.rtl-layout .back-to-top {
    left: auto;
    right: 30px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ============================================
   Form Alert Messages
   ============================================ */
.form-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.form-alert.success {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
}

.form-alert.error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991.98px) {
    .top-bar {
        display: none;
    }
    
    .main-nav {
        margin-top: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
    }
    
    .main-nav .navbar-brand {
        color: var(--gray-900);
    }
    
    .main-nav .nav-link {
        color: var(--gray-700);
        padding: 10px 0 !important;
    }
    
    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: var(--primary);
    }
    
    .nav-logo-white {
        display: none !important;
    }
    
    #navLogoColor {
        display: inline-block !important;
    }
    
    .navbar-toggler-bar {
        background: var(--gray-900);
    }
    
    .btn-nav-cta {
        color: var(--gray-900) !important;
        border-color: var(--gray-900);
        margin-top: 10px;
        display: inline-block;
    }
    
    .hero-section {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-form-wrapper {
        padding: 25px;
    }
    
    .visual-cta-section {
        padding: 20px 15px;
    }
    
    .visual-cta-container {
        height: 350px;
    }
    
    .projects-swiper .swiper-slide,
    .projects-swiper .swiper-slide-active,
    .projects-swiper .swiper-slide:hover {
        width: 280px !important;
    }
    
    .project-hover-content {
        max-height: 200px;
        opacity: 1;
    }
    
    .amenity-image {
        height: 300px;
    }
    
    .final-form-wrapper {
        padding: 25px;
    }
    
    .swiper-nav-btns {
        margin-top: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-form-wrapper {
        padding: 20px;
    }
    
    .unit-tab {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .visual-cta-container {
        height: 280px;
    }
    
    .visual-cta-title {
        font-size: 1.5rem;
    }
    
    .project-image {
        height: 320px;
    }
    
    .amenity-image {
        height: 260px;
    }
    
    .stat-card {
        padding: 20px 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .site-footer {
        padding: 50px 0 20px;
    }
}

/* ---- AOS Override for smoother feel ---- */
[data-aos] {
    transition-duration: 800ms !important;
}

/* ---- LTR Layout Adjustments ---- */
.ltr-layout .hero-subtitle {
    direction: ltr;
}

.ltr-layout .btn-hero-cta i,
.ltr-layout .btn-luxury i,
.ltr-layout .btn-visual-cta i,
.ltr-layout .btn-form-submit i,
.ltr-layout .btn-form-submit-dark i,
.ltr-layout .btn-project-cta i,
.ltr-layout .btn-nav-cta i {
    transform: rotate(180deg);
}

/* ============================================
   Enhanced Luxury Details
   ============================================ */

/* Smooth page load */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Image loading animation */
img {
    opacity: 0;
    transition: opacity 0.6s ease;
}

img.loaded,
img[src] {
    opacity: 1;
}

/* Enhanced button hover animations */
.btn-hero-cta,
.btn-visual-cta,
.btn-luxury,
.btn-form-submit,
.btn-form-submit-dark,
.btn-nav-cta {
    position: relative;
    overflow: hidden;
}

.btn-hero-cta::before,
.btn-visual-cta::before,
.btn-luxury::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-hero-cta:hover::before,
.btn-visual-cta:hover::before,
.btn-luxury:hover::before {
    width: 300%;
    height: 300%;
}

/* Arrow animation on hover */
.btn-hero-cta i,
.btn-visual-cta i,
.btn-luxury i,
.btn-form-submit i,
.btn-form-submit-dark i,
.btn-project-cta i,
.btn-nav-cta i {
    transition: transform 0.3s ease;
}

.rtl-layout .btn-hero-cta:hover i,
.rtl-layout .btn-visual-cta:hover i,
.rtl-layout .btn-luxury:hover i,
.rtl-layout .btn-form-submit:hover i,
.rtl-layout .btn-form-submit-dark:hover i,
.rtl-layout .btn-project-cta:hover i,
.rtl-layout .btn-nav-cta:hover i {
    transform: translateX(-4px);
}

.ltr-layout .btn-hero-cta:hover i,
.ltr-layout .btn-visual-cta:hover i,
.ltr-layout .btn-luxury:hover i,
.ltr-layout .btn-form-submit:hover i,
.ltr-layout .btn-form-submit-dark:hover i,
.ltr-layout .btn-project-cta:hover i,
.ltr-layout .btn-nav-cta:hover i {
    transform: rotate(180deg) translateX(-4px);
}

/* Enhanced project card expansion */
.project-card {
    transform-origin: center bottom;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.65));
    pointer-events: none;
    transition: var(--transition);
}

.project-card:hover .project-image::after {
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.75));
}

/* Glassmorphism enhancement for hero form */
.hero-form-wrapper {
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
}

.hero-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
}

/* Enhanced stat cards with number glow */
.stat-number {
    text-shadow: 0 0 20px rgba(255,255,255,0.15);
}

/* Units section tab indicator animation */
.unit-tab {
    position: relative;
}

.unit-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.unit-tab.active::after,
.unit-tab:hover::after {
    width: 100%;
}

/* Enhanced floorplan area */
.unit-floorplan {
    position: relative;
    overflow: hidden;
}

.unit-floorplan::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(13,148,136,0.03), transparent 70%);
    pointer-events: none;
}

/* Footer geometric animation */
.footer-geometric::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.footer-geometric::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 5%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

/* Smooth scroll indicator for hero */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    z-index: 3;
    animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Enhanced top bar transition */
.top-bar {
    transition: transform 0.3s ease;
}

/* Navbar shadow on scroll enhancement */
.main-nav.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}

/* Visual CTA parallax-like effect */
.visual-cta-img {
    transition: transform 8s ease;
}

.visual-cta-container:hover .visual-cta-img {
    transform: scale(1.05);
}

/* Amenity card shine effect */
.amenity-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    z-index: 1;
    transition: left 0.8s ease;
}

.amenity-card:hover .amenity-image::before {
    left: 150%;
}

/* Form focus glow animation */
@keyframes inputGlow {
    0% { box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
    50% { box-shadow: 0 0 0 5px rgba(13,148,136,0.15); }
    100% { box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
}

.glass-input:focus,
.glass-input-dark:focus {
    animation: inputGlow 2s ease infinite;
}

/* Section spacing harmony */
.amenities-section,
.projects-section {
    padding-bottom: 100px;
}

/* Back-to-top enhanced */
.back-to-top {
    font-size: 16px;
}

.back-to-top:hover {
    box-shadow: 0 4px 20px rgba(13,148,136,0.4);
}

/* Success modal animation */
.success-check i {
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Stats section geometric enhanced */
.stats-geometric::before {
    content: '';
    position: absolute;
    top: -50px;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.stats-geometric::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 15%;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Loading skeleton placeholder */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile-specific luxury touches */
@media (max-width: 991.98px) {
    .hero-section::after,
    .hero-section::before {
        display: none;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .amenities-section,
    .projects-section {
        padding: 60px 0;
    }
    
    .units-section {
        padding: 60px 0;
    }
    
    .final-cta-section {
        min-height: auto;
        padding: 60px 0 0;
    }
}

@media (max-width: 575.98px) {
    .hero-form-wrapper {
        border-radius: var(--radius-md);
    }
    
    .final-form-wrapper {
        border-radius: var(--radius-md);
        padding: 20px 16px;
    }
    
    .visual-cta-container {
        border-radius: var(--radius-md);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-bottom {
        margin-top: 30px;
    }
}
