/* ======================================
   ANA SAYFA - TEMİZ CSS
   Header, Menü, Footer
   ====================================== */

/* Genel Stil Ayarları */
:root {
    --primary-color: #e60023;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --light-grey: #f4f4f4;
    --dark-grey: #34495e;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #fcfcfc;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-grey);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* ======================================
   NAVBAR
   ====================================== */

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 0;
    transition: box-shadow 0.3s ease;
}

.navbar-brand .logo {
    height: 50px;
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease-in-out, left 0.4s ease-in-out;
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
    left: 0;
}

/* Dropdown Mega Menu */
.mega-menu {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    border: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    padding: 20px 0;
}

.mega-menu .machine-preview {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mega-menu .machine-preview:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.mega-menu .machine-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.mega-menu .machine-preview h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.mega-menu .machine-preview p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}



/* ======================================
   FOOTER
   ====================================== */

.footer {
    background-color: var(--secondary-color);
    color: #ecf0f1;
    padding: 50px 0;
    font-size: 0.9rem;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.footer .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer .contact-info li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 4px;
}

/* ======================================
   RESPONSIVE - NAVBAR & FOOTER
   ====================================== */

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 15px;
        border-top: 1px solid #eee;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .navbar-nav .nav-link::before {
        display: none;
    }

    .mega-menu {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        padding: 10px 0;
    }

    .mega-menu .machine-preview {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .footer {
        text-align: center;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer ul {
        margin-bottom: 30px;
    }

    .footer .contact-info li {
        justify-content: center;
    }
}

/* ======================================
   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;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #e60023, #c00020);
    border-radius: 2px;
}

.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);
}

.view-details-btn i {
    transition: transform 0.3s ease;
}

.view-details-btn:hover i {
    transform: translateX(5px);
}

/* Responsive */
@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;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .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) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .machine-header h3 {
        font-size: 1.5rem;
    }

    .machine-main-image {
        height: 250px;
    }

    .machine-content {
        padding: 25px;
    }

    .machine-thumbnails {
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .machines-section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .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 Button */
.scroll-arrow-container {
    position: absolute;
    bottom: 30px;
    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(10px);
    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);
    }
}


@media (max-width: 767px) {
    .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) {
    .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;
    }
}