/**
 * Emlak Scripti v1 - Custom CSS
 * Modern Green & Dark Theme
 */

:root {
    --primary-color: #198754;
    --primary-dark: #146c43;
    --secondary-color: #343A40;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #F8F9FA;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fff;
    padding-top: 76px;
    /* Fix navbar overlap */
}

/* Navbar Styling */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background-color: rgba(33, 37, 41, 1) !important;
    /* Always dark background */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: -76px;
    /* Pull hero up behind navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Property Card */
.property-card {
    transition: var(--transition);
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.property-card img {
    transition: var(--transition);
}

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

/* Buttons */
.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #adb5bd;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color);
}

/* Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner-modern {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(25, 135, 84, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-text {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Modern Footer Styling */
.modern-footer {
    background-color: #212529;
    color: #e9ecef;
    /* Lighter text */
    font-size: 0.95rem;
    margin-top: auto;
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-widget h5 {
    position: relative;
    padding-bottom: 15px;
    color: #fff;
    /* White headings */
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links a,
.footer-contact span {
    color: #adb5bd !important;
    /* Visible links */
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

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

.hover-success:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.footer-contact i {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
}

/* Modern About Section */
.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    transform: translate(-10px, -10px);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Footer Fixes */
.footer-text {
    color: #adb5bd !important;
    /* Force lighter color */
    line-height: 1.8;
}

.footer-bottom {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: #1a1d20 !important;
    /* Slightly darker bottom */
}

/* Modern Hero Section (Inner Pages) */
.page-hero {
    background: linear-gradient(rgba(25, 135, 84, 0.9), rgba(20, 108, 67, 0.95)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 140px 0 80px;
    /* Increased padding */
    color: white;
    margin-top: -76px;
    margin-bottom: 50px;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, #fff, transparent);
    opacity: 0.1;
}

.page-hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-flex;
    backdrop-filter: blur(5px);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Feature Cards (Why Choose Us) */
.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 0.03;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(25, 135, 84, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.3);
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card:hover h4 {
    color: var(--primary-color);
}