/* 
 * home.css - Homepage specific styles for Trev Translation Platform
 * Clean, complete rewrite with all sections styled
 */

/* ================================
   CSS Variables (Homepage specific)
   ================================ */
:root {
    --hero-gradient-1: rgba(20, 184, 166, 0.1);
    --hero-gradient-2: rgba(71, 85, 105, 0.05);
    --hero-gradient-3: rgba(239, 68, 68, 0.05);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--gray-50);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, var(--hero-gradient-1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, var(--hero-gradient-2) 0%, transparent 40%),
        radial-gradient(circle at 40% 20%, var(--hero-gradient-3) 0%, transparent 40%);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.hero-title .highlight {
    color: var(--accent-teal);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(71, 85, 105, 0.1);
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease 0.2s both;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    position: relative;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   Smart Translator Feature Section
   ================================ */
.smart-translator-feature {
    padding: 5rem 0;
    background: var(--white);
}

.smart-feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.smart-feature-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-feature-list {
    list-style: none;
    max-width: 500px;
}

.smart-feature-list li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.125rem; /* Increased from 1rem */
    color: var(--text-secondary);
    margin-bottom: 2rem; /* Increased spacing */
    padding: 1.25rem; /* Added padding */
    background: var(--gray-50);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.smart-feature-list li:hover {
    background: var(--accent-teal-bg);
    transform: translateX(8px);
}

.smart-feature-list svg {
    color: var(--accent-teal);
    flex-shrink: 0;
    width: 48px; /* Larger for prominence */
    height: 48px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.smart-feature-list li:hover svg {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-color: var(--accent-teal);
}

/* Smart Translator Visual */
.smart-translator-demo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: 12px;
    min-height: 400px;
}

.upload-animation {
    text-align: center;
}

.upload-animation svg {
    color: var(--accent-teal);
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 60%;
    background: var(--accent-teal);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 60%; }
}

.upload-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ================================
   Process Section
   ================================ */
.process {
    padding: 5rem 0;
    background: var(--white);
}

.process-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--border-light) 0%, var(--border-light) 50%, transparent 50%);
    background-size: 8px 2px;
}

.process-step:last-child::after {
    display: none;
}

.process-number {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .process-number {
    background: var(--accent-teal);
    transform: scale(1.1);
}

.process-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.process-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ================================
   Features Section
   ================================ */
.features {
    padding: 5rem 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    border-color: var(--accent-teal);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.9375rem;
    flex-grow: 1;
}

/* ================================
   File Types Section
   ================================ */
.file-types-section {
    padding: 4rem 0;
    text-align: center;
    background: var(--white);
}

.file-types-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 3rem;
    padding: 20px 0; /* Increased padding to accommodate hover scale */
}

.file-types-carousel {
    width: 100%;
    overflow: visible; /* Allow items to scale without being cut off */
    padding: 20px 0; /* Add padding here too */
}

.file-types-track {
    display: flex;
    gap: 4rem;
    animation: scroll 40s linear infinite;
    white-space: nowrap; /* Prevent wrapping */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.file-type-item {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block; /* Ensure inline display */
}

.file-type-item:hover {
    transform: translateY(-8px);
}

.file-type-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    background: #94A3B8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: white;
}

.file-type-item:hover .file-type-icon-wrapper {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background: var(--accent-teal);
    transform: scale(1.05);
}

.file-type-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.file-types-container:hover .file-types-track {
    animation-play-state: paused;
}

/* ================================
   Pricing Section
   ================================ */
.pricing {
    padding: 5rem 0;
    background: var(--gray-50);
}

.pricing-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-card.accuracy-challenge {
    background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 100%);
    border: 2px solid var(--accent-teal);
}

.pricing-card.accuracy-challenge .pricing-price {
    color: var(--accent-teal);
}

.pricing-card.accuracy-challenge .feature-check {
    background: var(--accent-teal);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-teal);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.pricing-price sup {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-period {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.feature-check {
    width: 20px;
    height: 20px;
    background: var(--accent-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* Enterprise Contact Section */
.enterprise-contact {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.enterprise-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.enterprise-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.enterprise-contact .btn {
    min-width: 160px;
}

/* ================================
   Language Excellence Section
   ================================ */
.language-excellence {
    padding: 5rem 0;
    background: var(--white);
}

.language-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.tier-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.tier-card.premium {
    border: 2px solid var(--accent-teal);
    background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 100%);
}

.tier-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.tier-card.premium .tier-icon {
    background: var(--accent-teal);
    color: white;
}

.tier-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tier-count {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    line-height: 1;
}

.tier-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.language-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.lang-tag {
    padding: 0.375rem 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.lang-tag.more {
    background: var(--accent-teal);
    color: white;
    border-color: var(--accent-teal);
}

.tier-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tier-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.tier-features .feature-item svg {
    color: var(--accent-teal);
    flex-shrink: 0;
}

/* Language Quality Promise */
.language-quality-promise {
    text-align: center;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: 12px;
    margin: 0 auto;
}

.promise-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.promise-title svg {
    color: var(--accent-teal);
}

.promise-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ================================
   CTA Section
   ================================ */
.cta {
    padding: 5rem 0;
    background: var(--primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-icon {
    width: 16px;
    height: 16px;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   Responsive Design
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        max-width: 700px;
        margin: 2rem auto 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .smart-feature-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .smart-feature-list {
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .process-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-step::after {
        display: none;
    }
    
    .pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .language-tiers {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .slideshow-container {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 4rem auto 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .file-type-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .file-type-label {
        font-size: 0.8125rem;
    }
    
    .file-types-track {
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-price {
        font-size: 3rem;
    }
    
    .pricing-price sup {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}