/* Home Page Specific Styles */

/* Hero Section with Professional Background Image */
.hero-section {
    position: relative;
    background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%),
                      url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1400&h=700&fit=crop');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    min-height: 650px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.hero-section h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-section p {
    position: relative;
    z-index: 2;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    line-height: 1.5;
}

.hero-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    color: white;
}

.btn-large {
    padding: 1.1rem 2.8rem;
    font-size: 1.05rem;
}

.btn-primary {
    background: #28a745 !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #218838 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
}

.btn-secondary {
    background: #28a745 !important;
    color: white !important;
    font-weight: 700;
    border: 2px solid #28a745;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: #218838 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    color: white !important;
}

/* Features Section */
.features-section {
    position: relative;
    background: #f8f9fa;
    padding: 5rem 2rem;
    margin-top: -50px;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #1a1a1a;
    margin-bottom: 3.5rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.feature-card {
    text-align: center;
    background: white;
    border: none;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #667eea;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.2);
    border-top-color: #764ba2;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 0;
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    margin-top: -50px;
    padding-top: 6rem;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary {
    color: #667eea;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card h3 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: slideUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 4rem 1.5rem;
    }

    .hero-section h1 {
        margin-bottom: 0.8rem;
    }

    .hero-buttons {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-section {
        padding: 3rem 1.5rem;
    }

    .cta-section {
        padding: 3rem 1.5rem 5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
        padding: 3rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.9rem 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-section {
        padding: 2rem 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

/* Parallax effect support */
@supports (background-attachment: fixed) {
    .hero-section {
        background-attachment: fixed;
    }
}

/* Fallback for devices that don't support parallax */
@supports not (background-attachment: fixed) {
    .hero-section,
    .features-section {
        background-attachment: scroll;
    }
}
