:root {
    --primary-color: #000000; /* Siyah - Güç ve Otorite */
    --accent-color: #D32F2F; /* Kırmızı - Enerji ve Dikkat */
    --text-color: #333333;
    --light-bg: #ffffff;
    --gray-bg: #f4f4f4;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Top Bar (İletişim Satırı) */
.top-bar {
    background-color: #98a6aa;
    color: #fff;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent-color); /* Kırmızı Çizgi */
    font-size: 0.85rem;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end; /* Sağ tarafa yasla */
    gap: 25px;
    padding: 0 20px;
}

.top-bar-content img {
    margin-right: 4px;
    height: 18px; /* İkon boyutu */
    vertical-align: middle; /* Metin ile ortalama */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}

.logo {
    
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo img {
    width: 180px;
    height: auto;
   
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    /* Metal işleme görseli */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/cnc-freze-metal-kesim.png');
    background-size: cover;
    background-position: center;
    height: 60vh;
    margin-top: 150px; /* Header yüksekliği arttığı için boşluk artırıldı */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    border: 1px solid var(--accent-color);
}

.btn:hover {
    background: #98a6aa;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Content Sections */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    margin-bottom: 50px;
    color: var(--primary-color);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

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

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
    border-top: 1px solid #eee;
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
    text-align: center;
}

.card p {
    text-indent: 20px;
}

/* İletişim Sayfası Stilleri */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 40px;
}

.contact-info-box, .contact-form-box {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--accent-color);
}

.contact-info-box h3, .contact-form-box h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Galeri Stilleri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Lightbox Navigasyon İkonları */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; /* İkon boyutuna göre ayarlayabilirsiniz */
    height: auto;
    cursor: pointer;
    z-index: 2001;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Footer */
footer {
    background: #98a6aa;
    color: white;
    padding: 50px 20px 20px;
    border-top: 5px solid var(--accent-color);
}

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

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.footer-logo-area img {
    width: 220px;
    height: auto;
    background: rgba(255, 255, 255, 0.9); /* Logonun belirgin olması için arka plan */
    padding: 15px;
    border-radius: 8px;
}

.footer-contact-area h3 {
    color: #fff;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.contact-item img {
    width: 20px;
    height: auto;
    margin-right: 10px;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-bottom div {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }

    .top-bar {
        display: none;
    }

    .hero {
        margin-top: 100px;
    }
    
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}