/* Homepage specific styles */
.homepage {
    font-family: 'Poppins', sans-serif;
}

.hero {
    background: linear-gradient(135deg, var(--primary), var(--muted));
    color: var(--bg);
    padding: 6.25rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: min(50rem, 90%);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hero h1 {
    font-size: 2.1875rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.hero p {
    font-size: 0.75rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.9375rem 1.875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 3.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 10rem;
}

.btn-primary-hero {
    background: var(--bg);
    color: var(--primary);
}

.btn-primary-hero:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.2);
}

.btn-secondary-hero {
    background: transparent;
    color: white;
    border: 0.125rem solid white;
}

.btn-secondary-hero:hover {
    background: white;
    color: #667eea;
}

.features {
    padding: 6.25rem 0;
    background: #f8fafc;
}

.container {
    max-width: min(75rem, 100%);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.75rem;
}

.section-header h2 {
    font-size: 1.5625rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 0.6875rem;
    color: #718096;
    max-width: min(37.5rem, 90%);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 1.875rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-0.3125rem);
}

.feature-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary), var(--muted));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    color: var(--bg);
}

.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

.stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--muted));
    color: var(--bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.6875rem;
    opacity: 0.9;
}

.testimonials {
    padding: 6.25rem 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(21.875rem, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 1rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.25rem;
    left: 1.875rem;
    font-size: 2.5rem;
    color: #667eea;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    color: #4a5568;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3.125rem;
    height: 3.125rem;
    background: linear-gradient(135deg, var(--primary), var(--muted));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-weight: 600;
}

.author-info h4 {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #718096;
    font-size: 0.5625rem;
}

.cta {
    padding: 6.25rem 0;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 1.5625rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.cta p {
    font-size: 0.75rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.contact {
    padding: 5rem 0;
    background: #f8fafc;
}

.contact-form {
    max-width: min(37.5rem, 90%);
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0.125rem solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.form-control.textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.footer {
    background: #2d3748;
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.875rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive adjustments for all devices */
@media (max-width: 48rem) { /* 768px */
    .hero {
        padding: 3.75rem 0;
    }

    .hero h1 {
        font-size: 1.5625rem;
    }

    .hero p {
        font-size: 0.625rem;
        margin-bottom: 1.875rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 18.75rem;
        justify-content: center;
        font-size: 0.625rem;
    }

    .features {
        padding: 3.75rem 0;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .section-header p {
        font-size: 0.625rem;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.875rem 1.25rem;
    }

    .feature-icon {
        width: 4rem;
        height: 4rem;
        font-size: 1rem;
    }

    .feature-card h3 {
        font-size: 0.875rem;
    }

    .stats {
        padding: 3.125rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.625rem;
    }

    .testimonials {
        padding: 3.75rem 0;
    }

    .testimonial-card {
        padding: 1.875rem;
    }

    .testimonial-card::before {
        top: 0.75rem;
        left: 1.25rem;
        font-size: 2rem;
    }

    .author-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }

    .cta {
        padding: 3.75rem 0;
    }

    .cta h2 {
        font-size: 1.25rem;
    }

    .cta p {
        font-size: 0.625rem;
    }

    .contact {
        padding: 3.125rem 0;
    }

    .contact-form {
        padding: 1.875rem;
    }
}

@media (max-width: 30rem) { /* 480px */
    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.25rem;
    }

    .hero p {
        font-size: 0.5625rem;
    }

    .btn-hero {
        padding: 0.75rem 1.25rem;
        font-size: 0.5625rem;
    }

    .features-grid,
    .stats-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 0.875rem;
    }

    .feature-card h3 {
        font-size: 0.75rem;
    }

    .stat-item h3 {
        font-size: 1.25rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-card::before {
        font-size: 1.5rem;
    }

    .author-avatar {
        width: 2rem;
        height: 2rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.75rem;
    }
}

@media (min-width: 75rem) { /* 1200px */
    .hero-content {
        max-width: min(62.5rem, 90%);
    }

    .container {
        max-width: min(87.5rem, 100%);
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(22.5rem, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}