/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.8) 0%,
        rgba(29, 78, 216, 0.7) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-icon {
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: rgba(255, 255, 255, 0.3);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #3b82f6;
    font-weight: 600;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Home Container */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 400;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 2rem;
    margin: 2rem 0;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 300px;
}

.step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-connector {
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    flex-shrink: 0;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.category-count {
    color: #6b7280;
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 1.5rem;
    text-align: center;
    color: white;
    margin: 4rem 0;
}

.cta-section.authenticated {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #1f2937;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .how-it-works-section {
        padding: 3rem 1.5rem;
        margin: 1.5rem 0;
        border-radius: 1.5rem;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-connector {
        width: 2px;
        height: 2rem;
        transform: rotate(90deg);
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        max-width: none;
        gap: 1rem;
    }
    
    .categories-section {
        padding: 3rem 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
        border-radius: 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-icon {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .features-section,
    .categories-section {
        padding: 2rem 0;
    }
    
    .feature-card,
    .category-card {
        padding: 1.5rem;
    }
    
    .feature-icon,
    .category-icon {
        font-size: 2.5rem;
    }
    
    .feature-title,
    .category-title {
        font-size: 1.125rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .how-it-works-section {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .step-title {
        font-size: 1.125rem;
    }
    
    .step-description {
        font-size: 0.875rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-icon {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .category-card {
        padding: 1.25rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn {
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}