/* ===== components.css ===== */

/* --- SECTION TITLE --- */
.section-title {
    text-align:center;
    margin-bottom:80px;
}

.section-title h2 {
    font-size:46px;
    color:var(--white);
    margin-bottom:20px;
}

.section-title p {
    max-width:700px;
    margin:auto;
    color:#bdbdbd;
}

/* --- SECTION TITLE SIZE FIX --- */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
}

/* --- GLASS CARD --- */
.glass {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(214,177,95,.15);
    backdrop-filter:blur(15px);
    border-radius:30px;
    box-shadow:var(--shadow);
}

/* --- BACK TO TOP --- */
.back-to-top {
    position:fixed;
    bottom:30px;
    left:30px;
    width:55px;
    height:55px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:var(--gold);
    color:var(--primary);
    font-size:20px;
    cursor:pointer;
    z-index:999;
    transition:.4s;
}

.back-to-top:hover {
    transform:translateY(-8px);
}

/* =====================================================
   VIDEO MODAL
   ===================================================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

.video-modal.show {
    display: flex !important;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* نسبت 16:9 */
    height: 0;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== آیکون پلی روی تصویر ===== */
.video-box {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #071710;
    cursor: pointer;
    box-shadow: 0 0 50px rgba(214, 177, 95, 0.4);
    transition: 0.4s;
    z-index: 2;
}

.video-box:hover {
    transform: scale(1.12);
    box-shadow: 0 0 70px rgba(214, 177, 95, 0.6);
}

/* =====================================================
   ABOUT PRODUCTS
   ===================================================== */
.about-products {
    background: var(--secondary);
}

.about-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-product-item {
    text-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(214,177,95,0.15);
    border-radius: 20px;
    padding: 40px 20px;
    transition: 0.4s;
}

.about-product-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.about-product-item i {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
}

.about-product-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.about-product-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* =====================================================
   ABOUT MACHINES
   ===================================================== */
.about-machines {
    background: var(--primary);
}

.machines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.machine-card {
    text-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(214,177,95,0.15);
    border-radius: 20px;
    padding: 35px 20px;
    transition: 0.4s;
}

.machine-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
}

.machine-card i {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 15px;
}

.machine-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.machine-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* =====================================================
   IMAGE MODAL (بزرگنمایی عکس)
   ===================================================== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.image-modal.show {
    display: flex !important;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
}

.image-modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .about-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .machines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-products-grid {
        grid-template-columns: 1fr;
    }
    .machines-grid {
        grid-template-columns: 1fr;
    }
}