/* ============================================
   Factory Section Styles
   ============================================ */

#factory {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 10%;
}

.factory-content {
    flex: 1;
}

.factory-content h2 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.factory-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.factory-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.factory-video {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
    aspect-ratio: 16 / 9;
    min-height: 400px;
    cursor: pointer;
}

.factory-video:hover .video-controls {
    opacity: 1;
}

.factory-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Play Button (Center) */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-play-button svg circle {
    transition: fill 0.3s ease;
}

.video-play-button:hover svg circle {
    fill: rgba(0, 0, 0, 0.8);
}

/* Controls Bar */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.factory-video:hover .video-controls,
.video-controls.show {
    opacity: 1;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    border-radius: 4px;
}

.control-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.play-pause-btn {
    flex-shrink: 0;
}

.pause-icon {
    display: none;
}

.video-playing .pause-icon {
    display: block;
}

.video-playing .play-icon {
    display: none;
}

/* Progress Bar */
.video-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-filled {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.video-progress:hover .progress-filled {
    background: var(--accent);
}

.control-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.volume-btn.muted {
    opacity: 0.6;
}

