/* Hero Section Styles */
.hero-section {
    position: relative;
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    animation: slideInLeft 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 0.8s ease-out 0.4s backwards;
}

/* Floating Cards Animation */
.hero-illustration {
    flex: 1;
    position: relative;
    height: 500px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.floating-card {
    position: absolute;
    width: 400px;
    height: 240px;
    background: var(--surface-2);
    border-radius: 32px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: all 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-icon {
    font-size: 4rem;
    color: var(--primary);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.card-line {
    height: 16px;
    background: var(--surface-3);
    border-radius: 8px;
}

.card-line:nth-child(2) {
    width: 80%;
}

.card-1 {
    top: 0%;
    left: 5%;
    animation: float1 6s infinite ease-in-out;
}

.card-2 {
    top: 20%;
    left: 15%;
    animation: float2 8s infinite ease-in-out;
}

.card-3 {
    top: 40%;
    left: 25%;
    animation: float3 7s infinite ease-in-out;
}

.card-4 {
    top: 60%;
    left: 35%;
    animation: float2 9s infinite ease-in-out;
}

/* Simple floating animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        overflow: hidden;
        position: relative;
    }

    .hero-content {
        max-width: 100%;
        padding: 1rem;
        z-index: 2;
        background: var(--background);
        position: relative;
    }

    .hero-illustration {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        height: 400px;
        position: relative;
        perspective: 1000px;
        transform-style: preserve-3d;
        overflow: visible;
    }

    .floating-card {
        position: absolute;
        width: 280px;
        height: 120px;
        padding: 1rem;
        margin: 0;
        display: flex;
        gap: 0.75rem;
        transform-style: preserve-3d;
        transition: all 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .card-content {
        gap: 0.5rem;
    }

    /* Card Positions */
    .card-1 {
        top: 0;
        left: 0;
        transform: translate(10%, 10%) rotate(-5deg);
        z-index: 4;
    }

    .card-2 {
        top: 20%;
        right: 0;
        transform: translate(-5%, 20%) rotate(5deg);
        z-index: 3;
    }

    .card-3 {
        bottom: 30%;
        left: 5%;
        transform: translate(0%, -10%) rotate(-3deg);
        z-index: 2;
    }

    .card-4 {
        bottom: 0;
        right: 5%;
        transform: translate(-5%, -20%) rotate(4deg);
        z-index: 1;
    }

    /* Adjust floating animation for better mobile experience */
    @keyframes float1 {
        0%, 100% { transform: translate(10%, 10%) rotate(-5deg); }
        50% { transform: translate(10%, 5%) rotate(-3deg); }
    }

    @keyframes float2 {
        0%, 100% { transform: translate(-5%, 20%) rotate(5deg); }
        50% { transform: translate(-5%, 15%) rotate(3deg); }
    }

    @keyframes float3 {
        0%, 100% { transform: translate(0%, -10%) rotate(-3deg); }
        50% { transform: translate(0%, -15%) rotate(-5deg); }
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .hero-section {
        padding: 0.5rem;
    }

    .hero-content {
        padding: 0.75rem;
    }

    .hero-illustration {
        height: 350px;
    }

    .floating-card {
        width: 240px;
        height: 100px;
        padding: 0.75rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-content h4 {
        font-size: 1rem;
    }

    .card-content p {
        font-size: 0.875rem;
    }
}

/* Features Section Styles */
.features-section {
    padding: 4rem 2rem;
    position: relative;
    background: linear-gradient(to bottom, transparent, var(--surface-1));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.feature-card {
    background: var(--surface-2);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

/* Stats Section Styles */
.stats-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--gradient-primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-card {
    padding: var(--spacing-lg);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: var(--font-size-md);
    opacity: 0.9;
}

/* CTA Section Styles */
.cta-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-circle,
.floating-square,
.floating-triangle {
    position: absolute;
    opacity: 0.1;
}

.floating-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-1);
    top: 20%;
    left: 10%;
    animation: float1 10s infinite ease-in-out;
}

.floating-square {
    width: 80px;
    height: 80px;
    background: var(--accent-2);
    top: 60%;
    right: 15%;
    animation: float2 12s infinite ease-in-out;
}

.floating-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86.6px solid var(--accent-3);
    top: 40%;
    right: 30%;
    animation: float3 11s infinite ease-in-out;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--surface-light);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.social-link i {
    font-size: var(--font-size-xl);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.social-label {
    font-size: var(--font-size-sm);
}

/* Footer */
.footer {
    padding: var(--spacing-lg);
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.copyright {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.author-link {
    text-decoration: none;
}

/* Animations */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, 10px) rotate(-3deg); }
    75% { transform: translate(-10px, -5px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-15px, 10px) rotate(-5deg); }
    50% { transform: translate(10px, -15px) rotate(3deg); }
    75% { transform: translate(5px, 5px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5px, 15px) rotate(3deg); }
    50% { transform: translate(-10px, -10px) rotate(-5deg); }
    75% { transform: translate(15px, -5px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-illustration {
        height: 300px;
    }

    .floating-card {
        width: 150px;
        height: 90px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-container::before {
        left: 2rem;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 4rem !important;
        padding-right: 1rem !important;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-button {
        width: 100%;
    }

    .stats-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .timeline-item {
        padding-left: var(--spacing-lg);
    }
}

/* Dark Mode Enhancements */
.dark-theme .floating-card {
    background: var(--surface-3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-theme .feature-card::before {
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.dark-theme .stat-card {
    background: var(--surface-2);
}

/* Timeline Section */
.timeline-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--surface-light);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: var(--spacing-xl);
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-content {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-content {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.author-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--surface-2);
    color: var(--text-1);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.newsletter-button {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .timeline-section,
    .contact-section {
        background-color: var(--surface-dark);
    }

    .timeline-content,
    .testimonial-card {
        background-color: var(--background-dark);
        border: 1px solid var(--border-dark);
    }

    .author-avatar {
        background-color: var(--surface-dark);
    }

    .footer {
        border-color: var(--border-dark);
    }
}
