/* FactoryLine Page Styles */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a2332;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.factoryline-hero {
    background: linear-gradient(135deg, #e8f0f7 0%, #d4e4f3 100%);
    padding: 100px 0 120px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    padding-right: 40px;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 24px;
    font-weight: 600;
    color: #1a4976;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-subdescription {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn-demo {
    display: inline-block;
    background-color: #005BAA;
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 91, 170, 0.3);
}

.btn-demo:hover {
    background-color: #004a8f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 170, 0.4);
}

.hero-visual {
    position: relative;
}

.dashboard-mockup {
    position: relative;
    background-color: #1a2d42;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.worker-overlay {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.worker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Future Section */
.future-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 60px;
    text-align: center;
}

.future-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.manufacturing-line-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.future-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 25px;
    line-height: 1.3;
}

.future-text {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-watch {
    display: inline-block;
    background-color: #005BAA;
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-watch:hover {
    background-color: #004a8f;
    transform: translateY(-2px);
}

/* Empower Section */
.empower-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e8f0f7 100%);
    padding: 100px 0;
}

.section-subtitle {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    margin-bottom: 25px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 15px;
}

.feature-text {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
}

/* Tabs Section */
.tabs-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.tabs-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: #1a2332;
}

.tab-btn.active {
    color: #005BAA;
    border-bottom-color: #005BAA;
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tab-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 15px;
}

.tab-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #005BAA;
    margin-bottom: 20px;
}

.tab-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
}

.tab-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 100%;
    max-width: 400px;
}

.placeholder-image svg {
    width: 100%;
    height: auto;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #d4e4f3 0%, #c4d9ed 100%);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: #005BAA;
    margin-bottom: 15px;
}

.stat-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    font-style: italic;
}

/* FAQ Section */
.faq-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 25px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #1a2332;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #005BAA;
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 20px;
}

.faq-answer p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
}

/* Contact Section */
.factoryline-contact-section {
    background: linear-gradient(135deg, #1a4976 0%, #2d5f9f 100%);
    padding: 100px 0;
}

.contact-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 60px;
    text-align: center;
}

.contact-title .highlight {
    color: #a5d8ff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Contact Form Styling for FactoryLine Page */
.template-factoryline .contact-form-wrapper {
    width: 100%;
}

.template-factoryline .connect-title {
    display: none; /* Title is already in the section */
}

.template-factoryline .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.template-factoryline .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.template-factoryline .form-input,
.template-factoryline .form-textarea,
.template-factoryline .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 15px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    width: 100%;
}

.template-factoryline .form-input:focus,
.template-factoryline .form-textarea:focus,
.template-factoryline .form-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.15);
}

.template-factoryline .form-input::placeholder,
.template-factoryline .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.template-factoryline .full-width {
    grid-column: 1 / -1;
}

.template-factoryline .form-textarea {
    min-height: 120px;
    resize: vertical;
}

.template-factoryline .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
    cursor: pointer;
}

.template-factoryline .form-select option {
    background-color: #1a4976;
    color: #ffffff;
}

.template-factoryline .btn-send-message {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1a4976;
    border: 2px solid rgba(255, 255, 255, 0.9);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.template-factoryline .btn-send-message:hover {
    background-color: #ffffff;
    color: #005BAA;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 60px;
    }
    
    .hero-grid,
    .future-grid,
    .tab-grid,
    .contact-grid {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .hero-grid,
    .future-grid,
    .tab-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tabs-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 15px 25px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .hero-description {
        font-size: 20px;
    }
    
    .worker-overlay {
        width: 120px;
        height: 120px;
        bottom: -15px;
        right: -15px;
        border-width: 4px;
    }
    
    .future-title {
        font-size: 24px;
    }
    
    .tab-title {
        font-size: 26px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .faq-question {
        font-size: 16px;
    }
    
    .contact-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
    }
    
    .factoryline-hero,
    .future-section,
    .empower-section,
    .tabs-section,
    .stats-section,
    .faq-section,
    .factoryline-contact-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .tabs-navigation {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        width: 100%;
        border-bottom: 2px solid #e2e8f0;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom-color: #e2e8f0;
        border-left-color: #005BAA;
    }
}
