/* ZoomAmerica Landing Page Styles */
/* Inspired by Nextdoor landing page design */

:root {
    --landing-green: #21c964;
    --landing-dark-green: #1ba854;
    --landing-light-green: #f0fdf4;
    --landing-gray: #f7f8fa;
    --landing-border: #e5e7eb;
    --landing-text: #374151;
    --landing-text-light: #6b7280;
    --landing-white: #ffffff;
    --landing-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --landing-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base styles */
.landing-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--landing-text);
    margin: 0;
    padding: 0;
    background-color: var(--landing-white);
}

/* Header/Navbar */
.landing-navbar {
    background: var(--landing-white);
    border-bottom: 1px solid var(--landing-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--landing-shadow);
}

.landing-navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--landing-green) !important;
    text-decoration: none;
}

.landing-navbar-brand:hover {
    color: var(--landing-dark-green) !important;
}

.landing-navbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.landing-nav-link {
    color: var(--landing-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.landing-nav-link:hover {
    color: var(--landing-green);
}

.landing-btn-signup {
    background: var(--landing-green);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.landing-btn-signup:hover {
    background: var(--landing-dark-green);
    color: white;
}

/* Hero Section */
.landing-hero {
    background: 
        /* Beautiful community-themed background */
        radial-gradient(circle at 20% 20%, rgba(33, 201, 100, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(5, 150, 105, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(33, 201, 100, 0.08) 0%, transparent 40%),
        /* Geometric pattern overlay */
        linear-gradient(45deg, transparent 30%, rgba(33, 201, 100, 0.02) 30%, rgba(33, 201, 100, 0.02) 32%, transparent 32%),
        linear-gradient(-45deg, transparent 30%, rgba(34, 197, 94, 0.02) 30%, rgba(34, 197, 94, 0.02) 32%, transparent 32%),
        /* Base gradient */
        linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 30%, #dcfce7 60%, #bbf7d0 100%);
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
    background-size: 800px 800px, 600px 600px, 700px 700px, 900px 900px, 1200px 1200px, 60px 60px, 60px 60px, 100% 100%;
    animation: backgroundShift 20s ease-in-out infinite;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Subtle overlay with community icons pattern */
        radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 15%),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 15%),
        radial-gradient(circle at 30% 90%, rgba(255, 255, 255, 0.8) 0%, transparent 15%),
        radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.8) 0%, transparent 15%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.7) 100%);
    z-index: 1;
}

.landing-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Large decorative circles */
        radial-gradient(circle at 15% 25%, rgba(33, 201, 100, 0.1) 0%, rgba(33, 201, 100, 0.05) 15%, transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 20%, transparent 30%),
        radial-gradient(circle at 25% 75%, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 18%, transparent 28%),
        radial-gradient(circle at 75% 85%, rgba(5, 150, 105, 0.09) 0%, rgba(5, 150, 105, 0.04) 22%, transparent 32%),
        /* Community connection lines */
        linear-gradient(45deg, transparent 48%, rgba(33, 201, 100, 0.1) 49%, rgba(33, 201, 100, 0.1) 51%, transparent 52%),
        linear-gradient(135deg, transparent 48%, rgba(34, 197, 94, 0.08) 49%, rgba(34, 197, 94, 0.08) 51%, transparent 52%),
        /* Dot pattern */
        radial-gradient(circle at 50% 50%, rgba(33, 201, 100, 0.15) 0%, rgba(33, 201, 100, 0.15) 2px, transparent 2px);
    background-size: 
        400px 400px,
        350px 350px, 
        450px 450px, 
        300px 300px,
        100px 100px,
        120px 120px,
        50px 50px;
    z-index: 0;
    opacity: 0.6;
    animation: backgroundShift 15s ease-in-out infinite;
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.landing-hero-text {
    padding-right: 2rem;
}

/* Decorative Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(33, 201, 100, 0.1);
    animation: float 8s ease-in-out infinite;
}

.bg-circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(33, 201, 100, 0.15) 0%, rgba(33, 201, 100, 0.05) 50%, transparent 100%);
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.04) 50%, transparent 100%);
    animation-delay: 2s;
}

.bg-circle-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 70%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 50%, transparent 100%);
    animation-delay: 4s;
}

.bg-circle-4 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: -5%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.02) 50%, transparent 100%);
    animation-delay: 6s;
}

.bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bg-line {
    position: absolute;
    background: linear-gradient(90deg, transparent 0%, rgba(33, 201, 100, 0.1) 50%, transparent 100%);
    animation: shimmer 12s ease-in-out infinite;
}

.bg-line-1 {
    width: 300px;
    height: 2px;
    top: 25%;
    left: 20%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.bg-line-2 {
    width: 200px;
    height: 1px;
    top: 55%;
    left: 60%;
    transform: rotate(-30deg);
    animation-delay: 4s;
}

.bg-line-3 {
    width: 400px;
    height: 2px;
    top: 75%;
    left: 10%;
    transform: rotate(15deg);
    animation-delay: 8s;
}

.landing-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--landing-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.landing-hero-subtitle {
    font-size: 1.25rem;
    color: var(--landing-text-light);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Signup Card */
.landing-signup-card {
    background: var(--landing-white);
    border-radius: 12px;
    box-shadow: var(--landing-shadow-lg);
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

.landing-card-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
}

.landing-card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--landing-text);
    margin: 0;
}

.landing-card-body {
    padding: 0 2rem 2rem 2rem;
}

/* Social Login */
.landing-social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.landing-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid var(--landing-border);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    color: var(--landing-text);
}

.landing-social-btn:hover {
    border-color: var(--landing-green);
    color: var(--landing-text);
    transform: translateY(-1px);
    box-shadow: var(--landing-shadow);
}

.google-btn {
    background: var(--landing-white);
}

.apple-btn {
    background: var(--landing-white);
}

/* Divider */
.landing-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.landing-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--landing-border);
    z-index: 1;
}

.landing-divider span {
    background: var(--landing-white);
    padding: 0 1rem;
    color: var(--landing-text-light);
    position: relative;
    z-index: 2;
}

/* Form Styles */
.landing-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.landing-form-group {
    display: flex;
    flex-direction: column;
}

.landing-form-control {
    padding: 12px 16px;
    border: 2px solid var(--landing-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--landing-white);
}

.landing-form-control:focus {
    outline: none;
    border-color: var(--landing-green);
    box-shadow: 0 0 0 3px rgba(33, 201, 100, 0.1);
}

.landing-form-control::placeholder {
    color: var(--landing-text-light);
}

.landing-form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Checkbox */
.landing-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--landing-text-light);
    line-height: 1.4;
}

.landing-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--landing-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.landing-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--landing-green);
    border-color: var(--landing-green);
}

.landing-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Buttons */
.landing-btn-primary {
    background: var(--landing-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.landing-btn-primary:hover {
    background: var(--landing-dark-green);
    transform: translateY(-1px);
    box-shadow: var(--landing-shadow);
}

/* Card Footer */
.landing-card-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--landing-border);
}

.landing-card-footer p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--landing-text-light);
}

.landing-link {
    color: var(--landing-green);
    text-decoration: none;
    font-weight: 500;
}

.landing-link:hover {
    color: var(--landing-dark-green);
    text-decoration: underline;
}

/* Features Section */
.landing-features {
    padding: 80px 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(33, 201, 100, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(33, 201, 100, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(33, 201, 100, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.landing-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%2321c964" fill-opacity="0.02"><circle cx="30" cy="30" r="2"/><circle cx="10" cy="10" r="1"/><circle cx="50" cy="10" r="1"/><circle cx="10" cy="50" r="1"/><circle cx="50" cy="50" r="1"/></g></svg>') repeat;
    opacity: 0.5;
    z-index: 1;
}

.landing-features .container {
    position: relative;
    z-index: 2;
}

.landing-feature-card {
    background: var(--landing-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--landing-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
}

.landing-feature-image {
    height: 200px;
    overflow: hidden;
}

.landing-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.landing-feature-card:hover .landing-feature-image img {
    transform: scale(1.05);
}

.landing-feature-content {
    padding: 1.5rem;
}

.landing-feature-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--landing-text);
    margin: 0 0 1rem 0;
}

.landing-feature-content p {
    color: var(--landing-text-light);
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.landing-cta {
    padding: 80px 0;
    background: 
        linear-gradient(135deg, #1ba854 0%, #21c964 50%, #16a34a 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="white" fill-opacity="0.1"/><circle cx="75" cy="25" r="1" fill="white" fill-opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" fill-opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" fill-opacity="0.1"/><circle cx="50" cy="50" r="1.5" fill="white" fill-opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    color: white;
    position: relative;
    overflow: hidden;
}

.landing-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.landing-cta .container {
    position: relative;
    z-index: 2;
}

.landing-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.landing-btn-cta {
    background: white;
    color: var(--landing-green);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.landing-btn-cta:hover {
    color: var(--landing-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
.landing-footer {
    background: var(--landing-text);
    color: white;
    padding: 60px 0 20px 0;
}

.landing-footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.landing-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-footer-links li {
    margin-bottom: 0.5rem;
}

.landing-footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.landing-footer-links a:hover {
    color: white;
}

.landing-footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #4b5563;
}

.landing-footer-bottom p {
    color: #d1d5db;
    margin: 0;
    font-size: 0.875rem;
}

.landing-footer-country {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #d1d5db;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .landing-navbar-nav {
        gap: 16px;
    }
    
    .landing-hero-title {
        font-size: 2.5rem;
    }
    
    .landing-hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .landing-signup-card {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .landing-navbar-nav {
        display: none; /* Consider adding mobile menu later */
    }
    
    .landing-hero-title {
        font-size: 2rem;
    }
    
    .landing-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .landing-cta h2 {
        font-size: 2rem;
    }
    
    .landing-feature-content {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .landing-signup-card {
        margin: 1rem;
    }
    
    .landing-card-body,
    .landing-card-header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Subtle animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes backgroundShift {
    0%, 100% { 
        background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 50% 50%, 0px 0px, 0px 0px, 0% 0%;
    }
    25% { 
        background-position: 10% 10%, 90% 10%, 10% 90%, 90% 90%, 60% 40%, 15px 15px, -15px 15px, 0% 0%;
    }
    50% { 
        background-position: 20% 20%, 80% 20%, 20% 80%, 80% 80%, 40% 60%, 30px 30px, 30px -30px, 0% 0%;
    }
    75% { 
        background-position: 10% 30%, 90% 30%, 30% 70%, 70% 70%, 50% 50%, 15px 45px, -15px -45px, 0% 0%;
    }
}

@keyframes shimmer {
    0% { 
        opacity: 0.3;
        transform: translateX(-20px) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateX(0px) scale(1);
    }
    100% { 
        opacity: 0.3;
        transform: translateX(20px) scale(0.8);
    }
}

.landing-hero::before {
    animation: pulse 8s ease-in-out infinite;
}

.landing-features::before {
    animation: float 12s ease-in-out infinite;
}

.landing-feature-card:hover {
    animation: float 2s ease-in-out infinite;
}