/* Advanced 3D Animations and Modern Styles */

.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-3d {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    animation: titleFloat 3s ease-in-out infinite;
}

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

.section-subtitle-modern {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 500;
}

/* 3D Feature Cards */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.features-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.feature-card-3d {
    position: relative;
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    overflow: hidden;
}

.feature-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 25px;
}

.feature-card-3d:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.3);
}

.feature-card-3d:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.feature-card-3d:hover .card-glow {
    opacity: 1;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.feature-icon-3d {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.5s;
    transform: translateZ(50px);
}

.feature-card-3d:hover .feature-icon-3d {
    transform: translateZ(80px) rotateY(360deg);
}

.feature-card-3d h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card-3d p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-stat {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Score Journey Timeline */
.score-journey-section {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.score-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.score-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    animation: slideInTimeline 0.8s ease-out backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

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

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.2);
    z-index: 2;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(102, 126, 234, 0.4); }
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: calc(50% - 50px);
    margin-left: auto;
    margin-right: 50px;
    transition: all 0.3s;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: auto;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.2);
}

.timeline-month {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-score {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--gray);
    line-height: 1.6;
}

/* Animated Stats Section */
.stats-animated-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.stats-animated-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s;
}

.stat-card-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.stat-icon-animated {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    animation: iconBounce 2s infinite;
}

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

.stat-number-animated {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label-modern {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 1rem;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    width: var(--fill);
    animation: fillBar 2s ease-out;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--fill); }
}

/* Modern Benefits Grid */
.benefits-modern-section {
    padding: 6rem 0;
    background: var(--light);
}

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

.benefit-card-modern {
    position: relative;
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.benefit-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

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

.benefit-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.benefit-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(102, 126, 234, 0.1);
    line-height: 1;
}

.benefit-icon-modern {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}

.benefit-card-modern:hover .benefit-icon-modern {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--white);
    transform: rotateY(360deg);
}

.benefit-card-modern h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.benefit-card-modern p {
    color: var(--gray);
    line-height: 1.7;
}

/* Final CTA Section */
.cta-final-section {
    position: relative;
    overflow: hidden;
}

.cta-final-container {
    position: relative;
    padding: 8rem 0;
}

.cta-final-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.cta-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.2);
    top: -200px;
    left: -200px;
}

.cta-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

.cta-final-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-final-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.cta-final-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta-button-final {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 1.8rem 4rem;
    background: var(--white);
    color: #667eea;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-button-final:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cta-button-final i {
    font-size: 1.6rem;
    animation: rocketShake 1s infinite;
}

@keyframes rocketShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-3px) rotate(-5deg); }
    75% { transform: translateX(3px) rotate(5deg); }
}

.cta-trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

.trust-badge-item i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title-3d {
        font-size: 2.2rem;
    }
    
    .features-grid-3d {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .score-timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 15px;
        transform: translateX(0);
    }
    
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .cta-final-title {
        font-size: 2.2rem;
    }
    
    .cta-button-final {
        padding: 1.3rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .cta-trust-badges {
        flex-direction: column;
        gap: 1rem;
    }
}
