/* NiceResume Landing Page Stylesheet */

/* Hero Section */
.hero-section {
    padding: var(--space-xxxl) 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--surface) 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xxl);
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
    animation: fadeInUp var(--transition-normal) forwards;
}

.hero-heading {
    color: var(--color-secondary);
}

.hero-description {
    color: var(--color-tertiary);
    margin-bottom: var(--space-md);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

/* Social Proof (Avatar Stacks) */
.social-proof {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-proof {
    width: 36px;
    height: 36px;
    border-radius: var(--rounded-full);
    border: 2px solid var(--color-white);
    background-color: var(--surface-dim);
    margin-left: -10px;
    overflow: hidden;
    box-shadow: var(--shadow-low);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-secondary);
}

.avatar-proof:first-child {
    margin-left: 0;
}

.avatar-proof img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-text {
    font-size: 13px;
    color: var(--color-tertiary);
    font-weight: 500;
}

.proof-text strong {
    color: var(--color-secondary);
    font-weight: 700;
}

/* Hero Visual & Float Card */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    width: 100%;
    max-width: 480px;
    border-radius: var(--rounded-lg);
    background-color: var(--color-white);
    box-shadow: var(--shadow-high);
    padding: var(--space-sm);
    transition: transform var(--transition-normal);
}

.hero-image-container:hover {
    transform: translateY(-4px);
}

.hero-image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--rounded-md);
    display: block;
}

/* Floating Card ATS Badge */
.floating-ats-card {
    position: absolute;
    bottom: var(--space-md);
    left: -20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--surface-container);
    border-radius: var(--rounded-lg);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-high);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatAnimation 6s ease-in-out infinite;
}

.ats-check-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--rounded-full);
    background-color: #e6f7ed;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.ats-card-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-secondary);
}

.ats-card-text p {
    font-size: 11px;
    color: var(--color-tertiary);
    font-weight: 500;
}

/* Trust Bar */
.trust-bar {
    padding: var(--space-xl) 0;
    background-color: var(--surface-container-low);
    border-top: 1px solid var(--surface-container);
    border-bottom: 1px solid var(--surface-container);
    text-align: center;
}

.trust-title {
    font-size: 12px;
    color: var(--color-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.trust-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.trust-logo-item {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

/* Bento Features Grid */
.features-section {
    padding: var(--space-xxxl) 0;
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-xxxl) auto;
}

.section-subtitle {
    color: var(--color-tertiary);
    margin-top: var(--space-sm);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: var(--space-lg);
}

.bento-card {
    background-color: var(--surface);
    border: 1px solid var(--surface-container);
    border-radius: var(--rounded-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--outline-variant);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-md);
    background-color: var(--color-white);
    border: 1px solid var(--surface-container);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-low);
}

.bento-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
}

.bento-card-desc {
    font-size: 14px;
    color: var(--color-tertiary);
    line-height: 20px;
    margin-bottom: var(--space-lg);
}

/* Bento Item Column spans */
.bento-span-2 {
    grid-column: span 2;
}

.bento-span-1 {
    grid-column: span 1;
}

.bento-span-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.bento-span-2 .bento-card-content {
    flex: 1;
    max-width: 360px;
}

.bento-visual-templates {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.bento-visual-templates img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    object-fit: contain;

    transform: translateX(20px);
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-visual-templates img {
    transform: translateX(20px) translateY(-2px);
}

.bento-visual-preview {
    margin-top: auto;
    background-color: var(--color-white);
    border: 1px solid var(--surface-container);
    border-radius: var(--rounded-md);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-skeleton-line {
    height: 8px;
    background-color: var(--surface-container-low);
    border-radius: var(--rounded-full);
    width: 100%;
}

.preview-skeleton-line:nth-child(2) {
    width: 75%;
}

.preview-skeleton-line:nth-child(3) {
    width: 40%;
}

.ats-pass-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    margin-top: var(--space-md);
}

.ats-pass-badge svg {
    width: 16px;
    height: 16px;
}

/* Bento Writing tips UI block */
.bento-tips-wrapper {
    display: flex;
    align-items: flex-end;
    gap: var(--space-lg);
    margin-top: auto;
}

.bento-tips-text {
    flex: 1;
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    margin-top: var(--space-md);
}

.learn-more-link:hover {
    color: var(--color-primary-dark);
}

.ai-suggestion-card {
    width: 240px;
    background-color: var(--color-white);
    border-radius: var(--rounded-md);
    padding: var(--space-md);
    border: 1px solid var(--surface-container-high);
    box-shadow: var(--shadow-low);
    font-size: 12px;
}

.ai-card-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.ai-card-content {
    font-style: italic;
    line-height: 18px;
    color: var(--color-secondary);
}

.ai-card-content strong {
    font-style: normal;
    color: var(--color-primary-dark);
}

/* Testimonial Section */
.testimonial-section {
    background-color: #0d46ba;
    /* Premium Deep Blue */
    color: var(--color-white);
    padding: var(--space-xxxl) 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.quote-icon {
    font-size: 72px;
    font-family: var(--font-headings);
    line-height: 1;
    height: 48px;
    color: rgba(255, 255, 255, 0.15);
}

.quote-text {
    font-size: 26px;
    font-weight: 600;
    line-height: 38px;
    font-family: var(--font-headings);
}

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

.author-img {
    width: 48px;
    height: 48px;
    border-radius: var(--rounded-full);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
}

.author-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--rounded-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-headings);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Call To Action (CTA) Section */
.cta-section {
    padding: var(--space-xxxl) 0;
    text-align: center;
    background-color: var(--color-white);
}

.cta-container {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.cta-title {
    font-size: 36px;
    line-height: 44px;
}

.cta-desc {
    color: var(--color-tertiary);
}

.cta-note {
    font-size: 12px;
    color: var(--color-tertiary);
}

/* Floating Animation Keyframe */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive Rules for Landing Page */
@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xxl);
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

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

    .social-proof {
        justify-content: center;
    }

    .hero-visual-wrapper {
        margin-top: var(--space-xl);
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-span-2 {
        flex-direction: column;
        /* Stacks image beneath the text on mobile screens */
        align-items: center;
        gap: var(--space-lg);
    }

    .bento-visual-templates {
        max-height: 200px;
    }

    .mockup-frame-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .bento-tips-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .ai-suggestion-card {
        width: 100%;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xxl);
    }
}

@media (max-width: 767px) {
    .hero-heading {
        font-size: 32px;
        line-height: 40px;
    }

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

    .cta-title {
        font-size: 28px;
        line-height: 36px;
    }
}