/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --text-dark: #2b2d42;
    --text-light: #8d99ae;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-dark);
}

/* Navbar Modernization */
.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-left: 15px;
    transition: color 0.3s ease;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(-45deg, #4361ee, #3f37c9, #4895ef, #4cc9f0);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    padding: 0;
    min-height: 85vh;
    /* Massive height increase */
    display: flex;
    align-items: center;
    border-radius: 0 0 80px 80px;
    /* Larger curve */
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png');
    opacity: 0.05;
    z-index: -1;
}

/* Floating Shapes - BIGGER */
.shape {
    position: absolute;
    filter: blur(80px);
    /* Increased blur */
    opacity: 0.5;
    z-index: -1;
    animation: float 20s infinite;
}

.shape-1 {
    top: -15%;
    left: -15%;
    width: 600px;
    height: 600px;
    /* Doubled size */
    background: #4cc9f0;
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    bottom: -15%;
    right: -10%;
    width: 700px;
    height: 700px;
    /* Doubled size */
    background: #7209b7;
    border-radius: 50%;
    animation-delay: -5s;
}

.shape-3 {
    top: 30%;
    left: 30%;
    width: 400px;
    height: 400px;
    /* Doubled size */
    background: #f72585;
    border-radius: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(50px, -70px) rotate(10deg);
    }

    66% {
        transform: translate(-40px, 40px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.hero-title {
    font-weight: 800;
    font-size: 5rem;
    /* Bigger font */
    margin-bottom: 30px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-text {
    font-size: 1.5rem;
    /* Bigger text */
    opacity: 0;
    transform: translateY(30px);
    margin-bottom: 40px;
    animation: fadeUp 1s ease forwards 0.3s;
    font-weight: 300;
}

.hero-btn {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
    transition: all 0.3s ease;
    padding: 15px 50px !important;
    /* Bigger button */
    font-size: 1.25rem !important;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.price-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.location-badge {
    background-color: #eef2ff;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
}

/* Filters */
.filter-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 30px;
    margin-top: -120px;
    /* More overlap */
    position: relative;
    z-index: 10;
}

.form-select,
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Admin Sidebar Layout */
#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin .25s ease-out;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 100vw;
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
        margin-left: -15rem;
    }
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--primary-color);
}

.nav-link {
    color: rgba(255, 255, 255, .75) !important;
}

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

.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}