/* ======================================
   MACHINES CSS - MAKİNELER BÖLÜMÜ
   Sadece ana sayfa ve makineler sayfasında kullanılır
   ====================================== */

/* ======================================
   MAKİNELER BÖLÜMÜ
   ====================================== */

.machines-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.machines-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
    pointer-events: none;
}

.machines-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.machines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.machine-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.machine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(230, 0, 35, 0.2);
}

.machine-card-inner {
    display: grid;
    grid-template-columns: 45% 55%;
    height: 100%;
}

.machine-main-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.machine-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.machine-card:hover .machine-main-image img {
    transform: scale(1.1);
}

.machine-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #e60023, #c00020);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4);
}

.machine-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.machine-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.2;
}

.machine-subtitle {
    font-size: 1rem;
    color: #e60023;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.machine-description {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.machine-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: auto;
}

.machine-thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f1f3f5;
}

.machine-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.machine-thumbnail:hover {
    border-color: #e60023;
    transform: scale(1.05);
}

.machine-thumbnail:hover img {
    transform: scale(1.15);
}

.machine-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.machine-thumbnail:hover::after {
    opacity: 1;
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e60023, #c00020);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-details-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(230, 0, 35, 0.5);
    background: linear-gradient(135deg, #c00020, #a00018);
    color: white;
}

.view-details-btn i {
    transition: transform 0.3s ease;
}

.view-details-btn:hover i {
    transform: translateX(5px);
}

/* ======================================
   SCROLL ARROW BUTTON
   ====================================== */

.scroll-arrow-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-arrow-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(230, 0, 35, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow-btn:hover {
    background: rgba(230, 0, 35, 0.9);
    border-color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(230, 0, 35, 0.4);
}

.scroll-arrow-btn i {
    font-size: 1.8rem;
    color: #e60023;
    transition: all 0.3s ease;
}

.scroll-arrow-btn:hover i {
    color: #fff;
    transform: translateY(3px);
}

.scroll-arrow-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInText 1s ease-in-out 1s forwards;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================
   RESPONSIVE - MAKİNELER BÖLÜMÜ
   ====================================== */

@media (max-width: 1200px) {
    .machines-grid {
        gap: 30px;
    }

    .machine-card-inner {
        grid-template-columns: 40% 60%;
    }

    .machine-content {
        padding: 25px;
    }

    .machine-header h3 {
        font-size: 1.7rem;
    }

    .machine-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .machines-section {
        padding: 60px 0;
    }

    .machines-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .machine-card-inner {
        grid-template-columns: 1fr;
    }

    .machine-main-image {
        height: 300px;
    }

    .machine-content {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .machine-header h3 {
        font-size: 1.5rem;
    }

    .machine-main-image {
        height: 250px;
    }

    .machine-content {
        padding: 25px;
    }

    .machine-thumbnails {
        gap: 10px;
    }

    .scroll-arrow-container {
        bottom: 20px;
    }

    .scroll-arrow-btn {
        width: 50px;
        height: 50px;
    }

    .scroll-arrow-btn i {
        font-size: 1.5rem;
    }

    .scroll-arrow-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .machines-section {
        padding: 40px 0;
    }

    .machine-header h3 {
        font-size: 1.3rem;
    }

    .machine-subtitle {
        font-size: 0.9rem;
    }

    .machine-description {
        font-size: 0.85rem;
    }

    .machine-content {
        padding: 20px;
    }

    .view-details-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .scroll-arrow-container {
        bottom: 15px;
    }

    .scroll-arrow-btn {
        width: 45px;
        height: 45px;
    }

    .scroll-arrow-btn i {
        font-size: 1.3rem;
    }

    .scroll-arrow-text {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}
