/* Enhanced Professional UI/UX Styles */

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Neumorphism Cards */
.neumorphic {
    background: linear-gradient(145deg, #f0f0f0, #cacaca);
    box-shadow:  20px 20px 60px #bebebe,
                -20px -20px 60px #ffffff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.neumorphic:hover {
    box-shadow:  5px 5px 20px #bebebe,
                -5px -5px 20px #ffffff;
}

/* Advanced Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(237, 137, 54, 0.5); }
    50% { box-shadow: 0 0 20px rgba(237, 137, 54, 0.8), 0 0 40px rgba(237, 137, 54, 0.6); }
    100% { box-shadow: 0 0 5px rgba(237, 137, 54, 0.5); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.glowing {
    animation: glow 2s ease-in-out infinite;
}

/* Hero Enhancements */
.hero-features {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-feature i {
    color: #48bb78;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Process Timeline */
.process-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.process-timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.step-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 45%;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:nth-child(odd) .step-content {
    margin-right: auto;
}

.process-step:nth-child(even) .step-content {
    margin-left: auto;
}

.step-content:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Benefits Cards */
.benefits-section {
    padding: 5rem 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1), rgba(49, 130, 206, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefit-card:hover .benefit-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.benefit-card:hover .benefit-icon i {
    -webkit-text-fill-color: white;
}

.benefit-list {
    list-style: none;
    margin-top: 1rem;
}

.benefit-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Property Cards Advanced */
.property-card.seller-financed {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.financing-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.financing-terms {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.property-card:hover .financing-terms {
    opacity: 1;
    transform: translateY(0);
}

.term-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.property-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

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

.monthly-payment {
    color: var(--accent-color);
    font-weight: 600;
}

.financing-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1), rgba(237, 137, 54, 0.05));
    border-radius: 10px;
    margin: 1rem 0;
    color: var(--accent-color);
    font-weight: 500;
}

.financing-highlight i {
    color: #ffd700;
}

/* Calculator Enhancements */
.calc-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: 15px;
}

.calc-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-tab.active {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.approval-estimate {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 15px;
    color: white;
    text-align: center;
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.approval-badge i {
    font-size: 1.5rem;
}

.comparison-table {
    margin-top: 1rem;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-light);
}

.comparison-row:first-child {
    font-weight: 700;
    color: var(--primary-color);
}

.negative {
    color: #e53e3e;
}

.positive {
    color: #48bb78;
}

.check-list {
    list-style: none;
    margin: 1rem 0;
}

.check-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* CTA Section Enhanced */
.cta-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Form Enhancements */
.benefit-checklist {
    list-style: none;
}

.benefit-checklist li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefit-checklist i {
    color: #48bb78;
    font-size: 1.2rem;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Loading Animation */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Parallax Effects */
.parallax {
    position: relative;
    overflow: hidden;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/pattern.svg');
    opacity: 0.05;
    transform: translateZ(-1px) scale(2);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 60px;
    }

    .step-number {
        left: 30px;
        transform: translateX(-50%);
    }

    .step-content {
        width: 100%;
        margin: 0 !important;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* Performance Optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(237, 137, 54, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer-advanced,
    .chat-widget,
    .back-to-top {
        display: none;
    }
}