/**
 * Factory Landing Page Styles
 * Template: Năng Lực UV247
 */

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #fc9837 100%);
    --primary-color: #ff6b35;
    --secondary-color: #fc9837;
    --accent-color: #ee1f28;
}

.uv247-capacity {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

/* Hero Section */
.capacity-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    background-size: cover;
    background-position: center;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6), 0 2px 10px rgba(0,0,0,0.4);
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #ffffff;
}

.hero-content .subtitle {
    font-size: 18px;
    font-weight: 600;
    opacity: 1;
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    background: rgba(255, 107, 53, 0.85);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
}

.hero-stats {
    display: none;
}

.scroll-indicator {
    display: none;
}

/* Section Container - Reduced Padding */
.section {
    padding: 60px 20px;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Section - Compact */
.stats-section {
    background: var(--primary-gradient);
    color: white;
    padding: 40px 20px;
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h4 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-item p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Equipment Section */
.equipment-section {
    background: white;
}

.equipment-container {
    max-width: 1200px;
    margin: 0 auto;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.equipment-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
}

.equipment-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--primary-gradient);
}

.equipment-content {
    padding: 20px;
}

.equipment-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.equipment-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.equipment-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.equipment-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipment-specs li {
    padding: 5px 0;
    color: #475569;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipment-specs li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 10px;
    flex-shrink: 0;
}

/* Process Section - Horizontal Timeline Design */
.process-section {
    background: linear-gradient(180deg, #fff5f0 0%, #fff 100%);
    color: #1e293b;
    position: relative;
    padding: 40px 20px;
    margin-top: 0;
}

.process-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.process-timeline {
    position: relative;
    padding: 0;
}

.process-steps-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
    justify-items: stretch;
    align-items: stretch;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 20px 15px;
    transition: all 0.3s ease;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
}

.process-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.process-step:hover .process-number {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.process-step h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
    line-height: 1.3;
}

.process-step p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Tablet Process Design */
@media (max-width: 1024px) {
    .process-steps-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Mobile Process Design */
@media (max-width: 768px) {
    .process-steps-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .process-step {
        background: white;
        border-radius: 12px;
        padding: 15px 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }

    .process-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .process-step h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .process-step p {
        font-size: 11px;
    }
}

/* Advantages Section - Compact */
.advantages-section {
    background: #f8fafc;
}

.advantages-container {
    max-width: 1200px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advantage-card {
    padding: 24px 20px;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.advantage-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.12);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.25);
}

.advantage-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.advantage-card p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Gallery Section - Compact */
.gallery-section {
    background: white;
    padding: 60px 20px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    height: 220px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(255, 107, 53, 0.95) 0%, transparent 100%);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Lightbox Gallery */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.15s ease;
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
}

/* CTA Section - Compact */
.cta-section {
    background: var(--primary-gradient);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.cta-btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.cta-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .capacity-hero {
        height: 320px;
    }

    .hero-content h1 {
        font-size: 32px;
        text-shadow: 0 3px 20px rgba(0,0,0,0.6);
        margin-bottom: 12px;
    }

    .hero-content .subtitle {
        font-size: 14px;
        padding: 10px 16px;
    }

    .section {
        padding: 40px 15px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .section-title p {
        font-size: 14px;
    }

    .stats-section {
        padding: 30px 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item h4 {
        font-size: 28px;
    }

    .stat-item p {
        font-size: 12px;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .equipment-image {
        height: 180px;
    }

    .equipment-content {
        padding: 16px;
    }

    .equipment-card h3 {
        font-size: 16px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .advantage-card {
        padding: 20px 16px;
    }

    .advantage-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .advantage-card h3 {
        font-size: 15px;
    }

    .gallery-section {
        padding: 40px 15px;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 30px;
    }

    .gallery-item {
        height: 200px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .cta-section {
        padding: 40px 15px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content .subtitle {
        font-size: 12px;
        padding: 8px 12px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .process-steps-wrapper {
        grid-template-columns: 1fr;
    }

    .process-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 12px;
    }

    .process-icon-wrapper {
        margin: 0;
        flex-shrink: 0;
    }

    .process-number {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .process-step-content {
        flex: 1;
    }
}
