/* Hero Section */
.hero-section {
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}
.donations, .testimonials, .features-container, .hero-container{
    width: 90%;
    margin-inline: auto;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.badge-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Dashboard Preview */
.dashboard-preview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
    background: #f8f9fa;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #dee2e6;
}

.preview-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red { background: #ff5f56; }
.control-dot.yellow { background: #ffbd2e; }
.control-dot.green { background: #27ca3f; }

.preview-title {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.preview-content {
    padding: 20px;
    color: #333;
}

.preview-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.preview-chart {
    height: 80px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: end;
}

.chart-bars {
    display: flex;
    gap: 8px;
    height: 100%;
    align-items: end;
    width: 100%;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #007bff, #66b3ff);
    border-radius: 2px;
    min-height: 20%;
    animation: growUp 1s ease-out;
}

@keyframes growUp {
    from { height: 0; }
    to { height: var(--height); }
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.section-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

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


/* Donations Section */
.donations {
    padding: 1rem;
    background-color: white;
    text-align: center;
}


/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}
.testimonial-container h2{
    text-align: center;
}
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin: 0;
    color: #333;
}

.author-info p {
    margin: 0;
    color: #666;
}

/* Call to Action Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    text-align: center;
}

.cta-buttons {
    margin-top: 30px;
}

.primary-button, .secondary-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.primary-button {
    background-color: white;
    color: #1a73e8;
}

.secondary-button {
    border: 2px solid white;
    color: white;
}

.primary-button:hover, .secondary-button:hover {
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 768px) {
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .donation-tiers {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .dashboard-preview {
        transform: none;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .preview-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .features-section {
        padding: 60px 20px;
    }
}

/* Focus states for accessibility */
.btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Hover animations */
.feature-card,
.dashboard-preview,
.btn {
    will-change: transform;
}

/* Performance optimizations */
.hero-section {
    transform: translateZ(0);
}

.dashboard-preview {
    backface-visibility: hidden;
}