/* =================================
   TahtaProperties - Modern UI Styles
   ================================= */

/* Color Palette */
:root {
    --dark-blue: #1a2b4a;
    --dark-blue-hover: #0f1a2e;
    --gold: #d4af37;
    --gold-hover: #b8941f;
    --gold-light: #f4e5b8;
    --light-gray: #e8ecef;
    --text-gray: #6c757d;
    --white: #ffffff;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* Navbar Custom Styles */
.navbar-custom {
    background-color: var(--dark-blue);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-custom .navbar-brand:hover {
    transform: scale(1.05);
    color: var(--gold);
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-custom .nav-link:hover {
    color: var(--gold);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover::after {
    width: 80%;
    right: 10%;
}

.navbar-toggler {
    border-color: var(--gold);
}

.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(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Button Styles */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: var(--dark-blue);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--dark-blue);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-dark-blue {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-hover) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 43, 74, 0.3);
}

.btn-dark-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 43, 74, 0.4);
    color: var(--white);
}

.btn-outline-dark-blue {
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-outline-dark-blue:hover {
    background: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1a2b4a 0%, #0f1a2e 50%, #1a2b4a 100%);
    background-image: 
        linear-gradient(135deg, rgba(26, 43, 74, 0.95) 0%, rgba(15, 26, 46, 0.9) 100%),
        url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(26, 43, 74, 0.3) 0%, rgba(15, 26, 46, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-effect-light {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Search Box */
.search-box input,
.search-box select {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus,
.search-box select:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--gold);
    color: var(--white);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.2);
}

.search-box select {
    color: var(--white);
}

.search-box select option {
    background: var(--dark-blue);
    color: var(--white);
}

/* Property Cards */
.property-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: right 0.6s ease;
}

.property-card:hover::before {
    right: 100%;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.property-image-wrapper {
    overflow: hidden;
    height: 250px;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image {
    transform: scale(1.1);
}

.property-image-placeholder {
    height: 250px;
}

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.property-body {
    background: var(--white);
}

.property-title {
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.detail-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-gray);
}

.shadow-hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Feature Cards */
.feature-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.feature-card:hover .icon-circle {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.3) 100%);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-hover) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-card {
    position: relative;
    z-index: 1;
}

.stat-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(26, 43, 74, 0.05) 100%);
}

/* Footer */
.footer-custom {
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--dark-blue-hover) 100%);
    color: rgba(255, 255, 255, 0.8);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 0.5rem;
}

.contact-info li {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-5px);
}

/* Utility Classes */
.text-dark-blue {
    color: var(--dark-blue) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.text-light-gray {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-gold-light {
    background-color: var(--gold-light) !important;
}

.bg-light-blue {
    background-color: rgba(26, 43, 74, 0.1) !important;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .navbar-custom .navbar-collapse {
        background: rgba(26, 43, 74, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
    
    .search-box {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box .col-md-3 {
        margin-bottom: 1rem;
    }
}
    font-size: 1.5rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
}
