/* 
   BestFinderz Premium Landing Page Styles 
   Typography: Outfit 
*/

:root {
    --primary: #084C3E; /* Forest Green */
    --primary-dark: #053329;
    --primary-light: #0d7a64;
    --accent: #FF5A5F; /* Coral Accent */
    --accent-dark: #e0484d;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --bg-main: #F8F9FA;
    --bg-card: #FFFFFF;
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 12px 40px 0 rgba(8, 76, 62, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.highlight-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 90, 95, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 95, 0.6);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 76, 62, 0.3);
}

.navbar:not(.scrolled) .btn-outline {
    color: white;
    border-color: white;
}

.navbar:not(.scrolled) .btn-outline:hover {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 5%;
    box-shadow: 0 4px 20px rgba(8, 76, 62, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    transition: var(--transition);
}

.navbar:not(.scrolled) .logo {
    color: white;
}

.navbar.scrolled .logo {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.navbar:not(.scrolled) .nav-links a {
    color: white;
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #053329;
}

.hero-slideshow li span {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: -2;
    animation: imageAnimation 25s linear infinite 0s;
    transform: scale(1.1);
}

/* 5 Images for the slideshow */
.hero-slideshow li:nth-child(1) span {
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}
.hero-slideshow li:nth-child(2) span {
    background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 5s;
}
.hero-slideshow li:nth-child(3) span {
    background-image: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 10s;
}
.hero-slideshow li:nth-child(4) span {
    background-image: url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 15s;
}
.hero-slideshow li:nth-child(5) span {
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 20s;
}

@keyframes imageAnimation {
    0% { opacity: 0; animation-timing-function: ease-in; transform: scale(1.1); }
    8% { opacity: 1; animation-timing-function: ease-out; transform: scale(1.05); }
    17% { opacity: 1; transform: scale(1); }
    25% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 76, 62, 0.92) 0%, rgba(5, 51, 41, 0.85) 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 60px;
    gap: 40px;
}

.hero-text-wrapper {
    flex: 1;
    color: white;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 .highlight-gradient {
    background: linear-gradient(90deg, #fff, #a2c2ff);
    -webkit-background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Hero Visual (Floating Cards) */
.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.property-card {
    width: 320px;
    position: relative;
    z-index: 2;
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-info {
    padding: 20px;
    background: white;
}

.card-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.card-info .price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-card {
    position: absolute;
    bottom: 50px;
    left: -40px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background-color: #E8F0FE;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card h4 {
    font-size: 22px;
    margin-bottom: 2px;
}

.stat-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

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

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

.float-anim-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Search Demo */
.search-demo {
    display: flex;
    justify-content: center;
    margin-top: -90px;
    position: relative;
    z-index: 10;
    padding: 0 5%;
}

.search-glass-container {
    background: white;
    border-radius: 100px;
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 900px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-glass-container:hover {
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(8, 76, 62, 0.2);
    transform: translateY(-5px);
}

.search-input {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    color: var(--text-muted);
}

.search-input input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    background: transparent;
}

.search-divider {
    width: 1px;
    height: 30px;
    background-color: #EAEAEA;
}

.search-dropdown {
    flex: 1;
    padding: 0 20px;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.search-btn {
    padding: 15px 40px;
    border-radius: 50px;
}

/* Features Section */
.features-section {
    padding: 100px 5%;
    background-color: var(--bg-main);
}

/* About Section */
.about-section {
    padding: 100px 10%;
    background-color: white;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(8, 76, 62, 0.3);
    text-align: center;
}

.about-badge h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.about-badge p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(8, 76, 62, 0.12);
}

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

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.bg-blue { background: #E8F0FE; color: #1A73E8; }
.bg-purple { background: #F3E8FD; color: #9333EA; }
.bg-orange { background: #FEF0E6; color: #EA580C; }
.bg-green { background: #E6F4EA; color: #16A34A; }

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* App Showcase */
.app-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    gap: 50px;
}

.showcase-content {
    flex: 1;
    max-width: 500px;
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.showcase-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.benefit-list {
    list-style: none;
    margin-bottom: 40px;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.benefit-list li i {
    color: var(--primary);
    font-size: 20px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: white;
    padding: 10px 25px;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: pulse-soft 3s infinite;
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.store-btn:hover {
    background: #222;
    transform: translateY(-3px) scale(1.05);
    animation: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.store-btn i {
    font-size: 30px;
}

.store-btn-text span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-btn-text strong {
    display: block;
    font-size: 18px;
}

.showcase-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Simple CSS Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    position: relative;
    border: 4px solid #e1e1e1;
}

.screen {
    background: var(--bg-main);
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.mockup-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.mockup-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeSlideshow 12s infinite;
}

.mockup-slide:nth-child(1) { animation-delay: 0s; }
.mockup-slide:nth-child(2) { animation-delay: 3s; }
.mockup-slide:nth-child(3) { animation-delay: 6s; }
.mockup-slide:nth-child(4) { animation-delay: 9s; }

@keyframes fadeSlideshow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.mock-card {
    background: white;
    height: 120px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: #0A1128;
    color: white;
    padding: 80px 5% 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.link-group a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.link-group a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

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

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

.reveal.right {
    transform: translateX(50px);
}

.reveal.right.active {
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
    
    .app-showcase {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-list li {
        justify-content: center;
    }
    
    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    
    .nav-links, .nav-actions .btn-outline {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-visual {
        height: auto;
        padding-top: 30px;
    }
    
    .property-card {
        width: 100%;
        max-width: 320px;
    }
    
    .stat-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
        width: 90%;
        justify-content: center;
    }
    
    .search-demo {
        margin-top: -30px;
        padding: 0 15px;
    }
    
    .search-glass-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
        padding: 0 10px;
    }
    
    .search-divider {
        width: 100%;
        height: 1px;
    }
    
    .search-dropdown {
        width: 100%;
        padding: 0 10px;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-section, .app-showcase, .about-section {
        padding: 60px 5%;
    }
    
    .about-section {
        flex-direction: column;
        text-align: center;
    }
    
    .about-badge {
        right: 20px;
        bottom: -20px;
    }
    
    .showcase-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}
