/**
 * FreeconomyToday - Home Page Specific Styles
 * Unique styles only used on the home page
 */

/* Prevent horizontal overflow on home page */
.main-content,
.hero,
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Home Page Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.floating-card {
    position: absolute;
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 20px 40px rgba(34, 139, 34, 0.2);
    animation: float-card 6s ease-in-out infinite;
    max-width: 160px;
    min-width: 120px;
    white-space: nowrap;
    text-align: center;
}

.floating-card:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 40%;
    right: 5%;
    animation-delay: -2s;
    background: var(--gradient-secondary);
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: -4s;
    background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%);
    color: var(--text-color);
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Home Page Hero Actions */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Floating Card Content */
.floating-card h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.floating-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Section Text Centering */
.section-center {
    text-align: center;
    margin-top: 4rem;
}

/* Call to Action Section */
.cta-centered {
    text-align: center;
}

.cta-button {
    font-size: 1.125rem;
    padding: 1.5rem 3rem;
}

.cta-subtitle {
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 1.125rem;
    font-weight: 500;
}

/* Responsive Design for Home Page */
@media (max-width: 1024px) {
    .floating-card {
        position: static;
        margin: 1rem;
        animation: none;
        display: inline-block;
    }
    
    .hero-visual {
        height: auto;
        min-height: 300px;
        flex-wrap: wrap;
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        height: 400px;
    }
    
    .floating-card {
        position: static;
        margin: 1rem;
        animation: none;
    }
    
    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .section-center {
        margin-top: 2rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .floating-card {
        position: static !important;
        margin: 0.5rem;
        animation: none;
        display: block;
        width: auto;
        max-width: none;
        white-space: normal;
    }
    
    .hero-visual {
        height: auto;
        min-height: 200px;
        padding: 1rem;
    }
}