/* Genel Ayarlar */
:root {
    --primary-color: #004c8c;
    --secondary-color: #ff6600;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    padding-top: 0; /* Başlık sabit olmadığı için dolgu kaldırıldı */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header Stil Ayarları */
.header {
    background: #fff;
    border-bottom: 1px solid var(--light-gray);
    /* Sabitleme ayarları kaldırıldı */
}

.top-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    gap: 100px;
}

.logo img {
    height: 80px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
    position: relative;
    letter-spacing: 1px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.language-selector a {
    font-weight: 600;
    color: #6c757d;
}

.language-selector a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.social-links-container {
    background: var(--light-gray);
    padding: 10px 0;
    text-align: center;
}

.social-links a {
    color: var(--primary-color);
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Genel Bölüm Stilleri */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Hakkımızda Bölümü */
.about-us-section {
    background-color: var(--bg-color);
}

.text-block p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Ürünler Bölümü */
.products-section {
    background-color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.details-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.details-button:hover {
    background: var(--secondary-color);
}

/* Makine Parkuru Liste Sayfası */
.machine-park-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.machine-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.machine-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.machine-card a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.machine-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.machine-card .machine-info {
    padding: 15px;
    text-align: center;
}

.machine-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.machine-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

/* Makine Detay Sayfası Stilleri */
.machine-detail-page {
    padding: 80px 0;
}

.machine-detail-page .page-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.machine-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.machine-media {
    flex-basis: 70%;
    max-width: 70%;
}

.machine-media img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.machine-media .additional-images {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.machine-media .additional-images img {
    width: calc(50% - 5px);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 150px;
}

.machine-media .youtube-video {
    width: 60%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.machine-media .youtube-video iframe {
    width: 100%;
    height: 100%;
}

.machine-text {
    flex-basis: 30%;
    max-width: 30%;
}

.machine-text h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.machine-text p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.machine-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.machine-text ul li {
    margin-bottom: 10px;
    display: list-item;
}

/* Projeler Bölümü */
.projects-section {
    background-color: var(--bg-color);
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card h3 {
    padding: 15px;
    color: var(--primary-color);
}

.project-card p {
    padding: 0 15px 15px;
}

/* Referanslar Bölümü */
.references-section {
    padding-bottom: 80px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.reference-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reference-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.reference-card img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.reference-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* İletişim Bölümü */
.contact-section {
    background-color: var(--bg-color);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-info,
.contact-form-container {
    flex: 1;
}

.contact-info h3,
.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form-container button {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-form-container button:hover {
    background: var(--secondary-color);
}

/* Harita Bölümü */
.map-section {
    padding-top: 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
}

/* Ortak Bölümler */
.catalog-button-container {
    text-align: center;
    padding: 50px 0;
}

.catalog-button {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2em;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
}

.catalog-button:hover {
    background: #e65100;
    transform: translateY(-5px);
}

/* WhatsApp Butonu */
.whatsapp-button {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 100px;
}

.footer-contact,
.footer-newsletter {
    max-width: 300px;
}

.footer-contact h4,
.footer-newsletter h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-newsletter form {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.footer-newsletter button {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-newsletter button:hover {
    background: #e65100;
}

.footer-bottom {
    text-align: center;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .top-header {
        flex-direction: column;
        gap: 20px;
    }
    .main-nav {
        margin-top: 20px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .contact-content {
        flex-direction: column;
    }
    .footer-content {
        justify-content: center;
        text-align: center;
    }
    .footer-newsletter form {
        max-width: 350px;
        margin: 15px auto 0;
    }
    .machine-content {
        flex-direction: column;
    }
    .machine-media,
    .machine-text {
        flex-basis: 100%;
        max-width: 100%;
    }
    .machine-media .additional-images img {
        height: auto;
    }
    .machine-media .youtube-video {
        width: 100%;
        max-width: 100%;
    }
}