/* Main Variables */
:root {
    --primary-color: #0F172A;
    --secondary-color: #1E293B;
    --gold-color: #0066ff;
    --gold-hover: #0099ff;
    --gold-light: rgba(0, 102, 255, 0.1);
    --light-bg: #F8FAFC;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    background-color: var(--light-bg);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    transition: all 0.3s ease;
}

/* Navbar */
.glass-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: padding 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 400;
    font-size: 0.95rem;
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-color) !important;
}

/* Buttons */
.btn-gold {
    background-color: var(--gold-color);
    color: #fff;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
}

.btn-outline-gold:hover {
    background-color: var(--gold-color);
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hero Animated Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* Hero Content Animation */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* Trust Stats */
.trust-stat {
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.trust-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.hero-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 10px;
}

/* Cards */
.property-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--gold-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hover-white:hover {
    color: #fff !important;
}

.text-gold {
    color: var(--gold-color) !important;
}

.text-gold-50 {
    color: rgba(212, 175, 55, 0.7) !important;
}

.bg-gold {
    background-color: var(--gold-color) !important;
}

/* Modern Search Box */
.search-box-modern {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

.search-header {
    border-bottom: 2px solid #f0f0f0;
}

.form-select-modern {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #f9fafb;
}

.form-select-modern:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background-color: #fff;
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: var(--transition);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}

/* Logo Background Shape */
.logo-bg {
    background: white;
    padding: 8px 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -15px;
    /* Pull up to align with top */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.logo-bg:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding-bottom: 12px;
}


/* Gradient Backgrounds */
.bg-gradient-light {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--gold-color), var(--gold-hover));
}

/* Badges */
.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-color), var(--gold-hover));
}

.bg-gold-light {
    background-color: var(--gold-light);
}

.bg-primary-light {
    background-color: rgba(15, 23, 42, 0.1);
}

/* Modern Property Cards */
.property-card-modern {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.property-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper-modern {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-img-wrapper-modern img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card-modern:hover .card-img-wrapper-modern img {
    transform: scale(1.1);
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.property-card-modern:hover .property-overlay {
    opacity: 1;
}

.status-badge-modern {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-badge-modern.approved,
.status-badge-modern.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge-modern.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.price-tag-modern {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-hover));
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.price-amount {
    font-size: 1.25rem;
}

.price-currency {
    font-size: 0.875rem;
    opacity: 0.9;
}

.price-text {
    font-size: 1rem;
}

.property-title a {
    transition: var(--transition);
}

.property-title a:hover {
    color: var(--gold-color) !important;
}

.property-features {
    background: #f9fafb;
    margin: 0 -1rem -1rem;
    padding: 1rem 1rem 0.5rem;
}

.feature-item {
    flex: 1;
}

/* Service Cards */
.service-card-modern {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--gold-color);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.15);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-hover));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.service-card-modern:hover .service-icon-wrapper {
    transform: rotateY(360deg);
}

/* Feature Items Modern */
.feature-item-modern {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-hover));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.feature-content-modern {
    flex: 1;
}

/* Testimonials */
.testimonial-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition);
    height: 100%;
}

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

.testimonial-stars i {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 1rem;
    color: white;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
}

.empty-state i {
    opacity: 0.3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .search-box-modern {
        padding: 1.5rem;
        margin-top: -40px;
    }
    
    .card-img-wrapper-modern {
        height: 220px;
    }
    
    .service-card-modern {
        margin-top: 0 !important;
    }
}
