/* Index Page Specific Styles */

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 2rem;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
    font-size: 1.1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    font-size: 1.2rem;
}

.hero-stats {
    display: grid;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-self: center;
    max-width: 300px;
}

.hero-stats .stat-item {
    text-align: center;
    color: var(--white);
    padding: 0.5rem 0;
}

.hero-stats .stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    display: block;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(45deg, #fbbf24, var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-color), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.feature-card {
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

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

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Popular Tests Section */
.popular-tests {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.test-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.test-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-large);
}

.test-image {
    height: 200px;
    overflow: hidden;
}

.test-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.test-card:hover .test-image img {
    transform: scale(1.05);
}

.test-content {
    padding: 1.5rem;
}

.test-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.test-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.test-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.test-meta span {
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Blog Preview Section */
.blog-preview {
    background: var(--white);
}

.blog-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.blog-image {
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-date,
.blog-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-category {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* User Cases Section */
.user-cases {
    background: var(--gradient-primary);
    color: var(--white);
}

.user-cases .section-title,
.user-cases .section-subtitle {
    color: var(--white);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    color: var(--accent-color);
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 1rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .hero-stats {
        order: 2;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 1rem;
        max-width: 100%;
        margin: 0 auto;
        /* background: rgba(255, 255, 255, 0.95); */
        backdrop-filter: blur(10px);
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .hero-stats .stat-item {
        padding: 1rem;
        text-align: center;
    }

    .hero-stats .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-stats .stat-label {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .hero-stats .stat-description {
        font-size: 0.8rem;
        margin-top: 0.25rem;
        opacity: 0.8;
    }

    .stat-number {
        font-size: 2rem;
    }

    .test-meta {
        justify-content: center;
    }

    .blog-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 75vh;
        padding: 1.5rem 0;
    }

    .hero .container {
        gap: 2rem;
        padding-top: 0.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        max-width: 95%;
    }

    .hero-buttons {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        max-width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-stats {
        /* grid-template-columns: 1fr; */
        gap: 1rem;
        padding: 1.5rem 0.75rem;
        border-radius: 12px;
    }

    .hero-stats .stat-item {
        padding: 0.75rem;
        border-bottom: 1px solid rgba(45, 212, 191, 0.1);
    }

    .hero-stats .stat-item:last-child {
        border-bottom: none;
    }

    .hero-stats .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }

    .hero-stats .stat-label {
        font-size: 0.85rem;
        font-weight: 600;
    }

    .hero-stats .stat-description {
        font-size: 0.75rem;
        margin-top: 0.2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon img {
        width: 35px;
        height: 35px;
    }
}

/* Loading states */
.hero-bg-image,
.feature-icon img,
.test-image img,
.blog-image img,
.testimonial-author img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-bg-image.loaded,
.feature-icon img.loaded,
.test-image img.loaded,
.blog-image img.loaded,
.testimonial-author img.loaded {
    opacity: 1;
}

.hero-bg-image.loaded {
    opacity: 0.3;
}

.text-center {
    width: 45%;
    display: flex;
    justify-content: center;
    text-align: center;
    margin: auto;
}

/* Feature Stats */
.feature-stats {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.feature-stats .stat {
    font-size: 0.8rem;
    background: rgba(45, 212, 191, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Test Cards Enhancements */
.test-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-badge.trending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.test-features {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.feature-tag {
    font-size: 0.8rem;
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.test-meta .test-rating {
    color: #f59e0b;
    font-weight: 600;
}

/* How It Works Section */
.how-it-works {
    background: var(--bg-light);
    padding: 5rem 0;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0;

    gap: 2rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 250px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.step-connector::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: -8px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Testimonial Enhancements */
.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.author-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.testimonial-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.stat-highlight {
    text-align: center;
}

.stat-highlight .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-highlight .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    padding: 5rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: var(--bg-light);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(45, 212, 191, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .steps-container {
        flex-wrap: wrap;
        flex-direction: column;
        gap: 3rem;
    }

    .step-connector {
        display: none;
    }

    .testimonial-stats {
        flex-direction: column;
        gap: 2rem;
    }

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

    .feature-stats {
        justify-content: center;
    }

    .test-features {
        justify-content: center;
    }

    .feature-stats .stat {
        font-size: 0.75rem;
    }

    .test-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

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

    .testimonial-stats {
        gap: 1.5rem;
    }

    .stat-highlight .stat-number {
        font-size: 1.5rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}