/* Genel Stil Ayarları */
:root {
    --primary-blue: #007bff; /* Vurgu mavisi (Robco'ya benzer) */
    --dark-blue: #2c3e50; /* Koyu gri/mavi ton (Robco'nın koyu arka planları) */
    --light-gray: #f9f9f9; /* Açık gri arka plan */
    --text-dark: #333; /* Koyu metin rengi */
    --text-light: #f0f0f0; /* Açık metin rengi */
    --border-color: #e0e0e0; /* Genel kenarlık rengi */
}

body {
    font-family: 'Open Sans', sans-serif; /* Gövde metni için Open Sans */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.7; /* Daha rahat okunabilirlik */
    color: var(--text-dark);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Başlıklar için Montserrat */
    color: var(--dark-blue);
    font-weight: 700;
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Yan boşluklar artırıldı */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background: var(--dark-blue); /* Koyu mavi/gri header */
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2.2rem; /* Logo boyutu */
    font-weight: 700;
    color: var(--primary-blue); /* Parlak mavi logo metni */
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.logo a:hover {
    color: #fff; /* Hover'da beyaza dönsün */
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}

nav ul li a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

nav ul li a::after { /* Alt çizgi animasyonu */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}
.menu-toggle:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    position: relative;
    background: url('https://via.placeholder.com/1920x800/2c3e50/ffffff?text=CIRMATECH+Gelecek') no-repeat center center/cover; /* Robco gibi görsel */
    color: #fff;
    text-align: center;
    padding: 150px 0; /* Daha fazla boşluk */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden; /* Overlay'in taşmasını engeller */
}

.hero-overlay { /* Görsel üzerine bindirme */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Yarı şeffaf siyah */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2; /* İçerik overlay'in üzerinde kalsın */
}

.hero h1 {
    font-size: 4.8rem; /* Slogan daha büyük */
    margin-bottom: 20px;
    color: #fff; /* Beyaz slogan */
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 50px;
    color: #eee;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.btn {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 16px 40px;
    border-radius: 5px; /* Daha az yuvarlak */
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #0056b3; /* Daha koyu mavi hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* Section Styling - Generic */
section {
    padding: 90px 0; /* Bölüm boşlukları artırıldı */
}

/* İlk bölüm olan products, Hero'dan sonra tek sıra olduğu için light-gray */
section:nth-of-type(odd) { 
    background: var(--light-gray);
}

/* İkinci bölüm olan company-info, Hero'dan sonra çift sıra olduğu için white */
section:nth-of-type(even) { 
    background: #ffffff;
}

h2 {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

h2::after { /* Başlık altı çizgi */
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: var(--primary-blue);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px); /* Daha belirgin kaldırma */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 250px; /* Yükseklik artırıldı */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.product-item h3 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: var(--dark-blue);
}

.product-item p {
    font-size: 1.05rem;
    color: #666;
    padding: 0 20px;
    margin-bottom: 30px;
}

.btn-small {
    display: inline-block;
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-small:hover {
    background: #0056b3;
    transform: translateY(-2px);
}


/* Firmamız Hakkında Kısa Bilgi Bölümü (Ana Sayfa için) */
.company-info-section .info-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center; /* Metinleri ortala */
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto; /* Ortala */
}

.company-info-section .info-content p {
    margin-bottom: 0; /* Paragraflar arasında boşluk bırakmak için gap kullandık */
}

.company-info-section .btn-small {
    margin-top: 30px; /* Butonun üstüne boşluk */
}


/* Yeni Oluşturulan Hakkımızda Sayfası İçin Stiller */
.full-about-section {
    padding: 90px 0;
    background: var(--light-gray); /* Arka plan açık gri */
    color: var(--text-dark);
}

.full-about-section h2 {
    color: var(--dark-blue); /* Başlık koyu mavi */
}

.full-about-section .about-content-full {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify; /* Metinleri hizala */
}

.full-about-section .about-content-full p {
    margin-bottom: 25px;
}

.full-about-section .about-content-full h3 {
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-blue);
    text-align: left; /* Başlıkları sola hizala */
}

.full-about-section .about-content-full ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.full-about-section .about-content-full ul li {
    margin-bottom: 8px;
}


/* Kategori Detay Sayfası Stilleri (örn: bukum_makinalari.html) */
.product-category-detail {
    padding: 90px 0;
    background: var(--light-gray); /* Arka plan rengi */
}

.product-category-detail h2 {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.product-category-detail h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: var(--primary-blue);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.product-detail-grid { /* Kategori içindeki ürünlerin gridi */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-item-detail { /* Kategori içindeki tek bir ürün kutusu */
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item-detail:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-item-detail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.product-item-detail h3 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: var(--dark-blue);
}

.product-item-detail p {
    font-size: 1.05rem;
    color: #666;
    padding: 0 20px;
    margin-bottom: 30px;
}

/* Tekil Ürün Detay Sayfası Stilleri (örn: ym530e.html) */
.product-single-detail {
    padding: 90px 0;
    background: #ffffff; /* Beyaz arka plan */
}

.product-single-detail h2 {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.product-single-detail h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: var(--primary-blue);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.detail-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Küçük ekranlarda alt alta düşsün */
    gap: 50px; /* Görsel ve metin arası boşluk */
    max-width: 1000px; /* İçeriği ortala */
    margin: 0 auto;
    align-items: flex-start; /* Üstten hizala */
}

.detail-image {
    flex: 1; /* Esnek boyutlandırma */
    min-width: 300px; /* Minimum genişlik */
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.detail-text {
    flex: 2; /* Esnek boyutlandırma */
    min-width: 350px; /* Minimum genişlik */
    line-height: 1.8;
}

.detail-text h3 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-top: 0;
    margin-bottom: 25px;
    text-align: left;
}

.detail-text ul {
    list-style: disc; /* Liste işaretleri */
    padding-left: 25px;
    margin-bottom: 30px;
    font-size: 1.05rem;
    color: #555;
}

.detail-text ul li {
    margin-bottom: 10px;
}

.specs-table {
    margin-top: 30px;
    margin-bottom: 40px;
    overflow-x: auto; /* Küçük ekranlarda tablo taşarsa kaydırma çubuğu çıksın */
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fefefe;
    border-radius: 8px;
    overflow: hidden; /* Köşelerin yuvarlak görünmesi için */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.specs-table th,
.specs-table td {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    text-align: left;
    font-size: 1.05rem;
}

.specs-table th {
    background-color: var(--dark-blue);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.specs-table tr:nth-child(even) {
    background-color: #f0f4f8; /* Her iki satırda bir arka plan rengi */
}

.contact-for-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 30px;
    text-align: center;
}

.contact-for-quote a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
}
.contact-for-quote a:hover {
    color: #0056b3;
}


/* Contact Section */
.contact {
    background: #ffffff; /* BEYAZ ARKA PLAN YAPILDI */
    color: var(--text-dark); /* Metinler koyu olacak */
}

.contact h2 {
    color: var(--dark-blue); /* Başlık rengi koyu mavi/gri olacak */
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark); /* Genel iletişim metinleri koyu olacak */
}

.contact-content i {
    margin-right: 15px;
    color: var(--primary-blue); /* İkonlar mavi kalabilir */
    font-size: 1.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px;
    border: 1px solid var(--border-color); /* Kenarlık rengi açık gri */
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: #fff; /* Input arka planı beyaz */
    color: var(--text-dark); /* Inputa yazılan metin rengi koyu */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999; /* Placeholder rengi koyu gri */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue); /* Focuslandığında kenarlık mavi olsun */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.contact-form button {
    padding: 18px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.contact-form button:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
    border-top: 1px solid #3a4f65;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-blue);
}


/* Duyarlı Tasarım (Responsive Design) */
@media (max-width: 992px) {
    .detail-content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .detail-image,
    .detail-text {
        min-width: unset;
        width: 100%;
    }
    .detail-text h3 {
        text-align: center;
    }
}


@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 70px; /* Header yüksekliğine göre ayarla */
        left: 0;
        width: 100%;
        background: var(--dark-blue);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 0;
        border-bottom: 1px solid #4a627d;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 18px 0;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;
    }

    /* JavaScript ile açıldığında navigasyon */
    nav.active {
        display: flex;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .logo a {
        font-size: 1.8rem;
    }

    .product-grid,
    .product-detail-grid { /* Hem ana sayfa ürün gridi hem de kategori sayfası gridi için */
        grid-template-columns: 1fr;
    }

    .info-content, .about-content-full { /* Firmamız ve Hakkımızda sayfaları için */
        font-size: 1rem;
    }

    .contact-content { /* İletişim bölümü için */
        font-size: 1rem;
    }

    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    /* Listeler için responsive ayarlama (sadece about.html'de kalacak) */
    .full-about-section .about-content-full ul {
        padding-left: 15px; /* Daha az girinti */
    }
    .detail-text ul {
        font-size: 1rem;
    }
    .specs-table th, .specs-table td {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    h2 {
        font-size: 2rem;
    }
    .logo a {
        font-size: 1.6rem;
    }
    .product-item img,
    .product-item-detail img,
    .detail-image img { /* Tüm ürün görselleri için */
        height: 200px;
    }
}

/* Logo Resminin Boyutunu Ayarlamak İçin Eklendi */
.logo img {
    max-height: 50px; /* Header yüksekliğine göre ayarlandı. */
    width: auto;      /* Resmin en-boy oranının bozulmasını engeller. */
    vertical-align: middle; /* Logonun menü yazılarına göre dikeyde ortalanmasını sağlar. */
}