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

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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

footer {
    margin-top: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: none;
    }
    50% {
        transform: scale(1.05);
        box-shadow: none;
    }
    100% {
        transform: scale(1);
        box-shadow: none;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    animation: float 3s ease-in-out infinite;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #ffc107;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: #ffc107 !important;
    transform: translateY(-2px);
}

/* Banner Section */
.banner-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    animation: fadeIn 1s ease-in-out;
}

@media (max-width: 768px) {
    .banner-image {
        height: 250px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(13,110,253,0.9) 0%, rgba(10,88,202,0.9) 100%),
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13,110,253,0.1) 0%, rgba(10,88,202,0.1) 100%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
    position: relative;
    z-index: 1;
}

/* Search Box */
.search-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.search-box .form-control,
.search-box .form-select {
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
    transform: translateY(-2px);
}

/* Property Card */
.property-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
    background: white;
    animation: fadeInUp 0.6s ease both;
}

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

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

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

.property-card .card-body {
    padding: 25px;
}

.property-card .card-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.property-price {
    color: #0d6efd;
    font-size: 1.8rem;
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    box-shadow: none !important;
}

.property-price small {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideInRight 0.6s ease;
}

/* Agent Card */
.agent-card {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    background: white;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13,110,253,0.1), transparent);
    transition: left 0.5s ease;
}

.agent-card:hover::before {
    left: 100%;
}

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

.agent-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.agent-card:hover img {
    transform: scale(1.1) rotate(5deg);
    border-color: #0d6efd;
}

.agent-card h5 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.agent-rating {
    color: #ffc107;
    font-size: 1.3rem;
    text-shadow: 0 2px 5px rgba(255,193,7,0.3);
}

/* Project Card */
.project-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    background: white;
    animation: fadeInUp 0.6s ease both;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

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

/* Login Form */
.login-container {
    max-width: 1000px;
    margin: 50px auto;
}

.login-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.login-card .card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    padding: 25px;
    text-align: center;
}

.login-card .card-header h4 {
    margin: 0;
    font-weight: 600;
}

.login-card .form-control {
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    color: #2c3e50;
    position: relative;
    animation: fadeInUp 0.6s ease;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
    margin: 20px auto 0;
    border-radius: 3px;
    animation: slideInLeft 0.8s ease;
}

/* Badges */
.badge-buy {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.badge-rent {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
}

.badge-land {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.badge-ongoing {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.badge-upcoming {
    background: linear-gradient(135deg, #6f42c1 0%, #d63384 100%);
}

.badge-completed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    box-shadow: 0 4px 15px rgba(13,110,253,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,110,253,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #0dcaf0 100%);
    box-shadow: 0 4px 15px rgba(23,162,184,0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23,162,184,0.4);
}

/* Icon Box */
.icon-box {
    display: inline-flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(13,110,253,0.3);
    transition: all 0.4s ease;
}

.icon-box:hover {
    transform: translateY(-10px) rotate(10deg);
    box-shadow: 0 10px 30px rgba(13,110,253,0.4);
}

/* Why Choose Us Section */
.text-center > div {
    animation: fadeInUp 0.6s ease both;
}

.text-center > div:nth-child(1) {
    animation-delay: 0.1s;
}

.text-center > div:nth-child(2) {
    animation-delay: 0.2s;
}

.text-center > div:nth-child(3) {
    animation-delay: 0.3s;
}

.text-center > div:nth-child(4) {
    animation-delay: 0.4s;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 50%, #0d6efd 100%);
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #0dcaf0 !important;
    transform: translateX(5px);
    display: inline-block;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-right: 8px;
    border-radius: 4px;
    vertical-align: middle;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #0d6efd;
    transform: translateY(-5px) rotate(360deg);
}

/* Card Stagger Animation */
.row > div {
    animation: fadeInUp 0.6s ease both;
}

.row > div:nth-child(1) {
    animation-delay: 0.1s;
}

.row > div:nth-child(2) {
    animation-delay: 0.2s;
}

.row > div:nth-child(3) {
    animation-delay: 0.3s;
}

.row > div:nth-child(4) {
    animation-delay: 0.4s;
}

.row > div:nth-child(5) {
    animation-delay: 0.5s;
}

.row > div:nth-child(6) {
    animation-delay: 0.6s;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .property-card,
    .agent-card,
    .project-card {
        animation-delay: 0s !important;
    }

    .search-box {
        padding: 20px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 30px;
    }
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Auth Pages */
.auth-wrapper {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.auth-card-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.auth-icon-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.auth-card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.auth-card-header p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.auth-card-body {
    padding: 40px 30px;
}

.modern-input-group {
    margin-bottom: 25px;
}

.modern-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1rem;
    z-index: 2;
}

.modern-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
}

.modern-input:focus {
    outline: none;
    border-color: #0d6efd;
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.modern-input::placeholder {
    color: #adb5bd;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
}

.modern-checkbox label {
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    margin: 0;
}

.forgot-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.modern-btn {
    width: 100%;
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4);
}

.modern-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.modern-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.auth-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.modern-alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

/* Responsive Auth */
@media (max-width: 576px) {
    .auth-wrapper {
        padding: 20px 15px;
    }

    .auth-card-header {
        padding: 30px 20px 20px;
    }

    .auth-card-body {
        padding: 30px 20px;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .auth-card-header h2 {
        font-size: 1.5rem;
    }

    .modern-input {
        padding: 12px 15px 12px 45px;
    }

    .modern-btn {
        padding: 14px 25px;
    }
}
