/* 1. DEĞİŞKENLER VE SIFIRLAMA */
:root {
    --primary: #0a192f;
    --secondary: #f39c12;
    --light: #f4f7f6;
    --text: #333;
    --white: #fff;
    --footer-bg: #071223;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none !important;
    list-style: none !important;
    /* Siyah noktaları kesin siler */
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* 2. NAVBAR VE ÜST BAR */
.top-bar {
    background: var(--footer-bg);
    color: #ccc;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.navbar {
    background: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li a {
    color: var(--white);
    margin-left: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

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

.btn-nav {
    background: var(--secondary);
    color: var(--primary) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.hamburger {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* 3. HERO ALANI (Üst Üste Binme Düzeltildi) */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(10, 25, 47, 0.75), rgba(10, 25, 47, 0.75)),
        url('https://images.unsplash.com/photo-1544945582-3b466d874eac?auto=format&fit=crop&w=1500');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 40px;
}

/* Butonlarla arayı açar */
.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-main {
    background: var(--secondary);
    color: var(--primary);
}

.btn-sub {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn:hover {
    transform: translateY(-3px);
}

/* 4. SECTIONS & GRIDS */
.section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.bg-light {
    background: var(--light);
}

.grid-3,
.stats-grid,
.footer-grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid transparent;
    transition: 0.4s;
}

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

.card-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* 5. REFERANSLAR (TABLO) */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.styled-table th {
    background: var(--primary);
    color: white;
    padding: 18px;
    text-align: left;
}

.styled-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.tag {
    background: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 6. HIZLI TEKLİF (CONTACT) */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
    width: 100%;
}

/* 7. FOOTER (DÜZELTİLDİ) */
.main-footer {
    background: var(--footer-bg);
    color: #cbd5e0;
    padding: 80px 0 30px;
    border-top: 5px solid var(--secondary);
}

.footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #cbd5e0;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
    transition: 0.3s;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form button {
    background: var(--secondary);
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* 8. MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 30px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero {
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

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

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

/* --- ANA SAYFA SLIDER (Sadece index.html için) --- */
/* --- ANA SAYFA SLIDER (Sadece index.html için) --- */
.hero-slider {
    height: 80vh;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    color: white;
    width: 100%;
    padding: 0 5%;
}

/* --- DİĞER SAYFALAR İÇİN SABİT BAŞLIK (Hakkımızda & Galeri için) --- */
.page-header {
    height: 40vh;
    /* Daha kısa bir alan */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
}

/* --- GENEL BUTONLARIN KONUMU --- */
.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* --- LIGHTBOX (GALERİ İÇİN) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Galeri Grid Düzeni */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-overlay i {
    color: var(--secondary);
    font-size: 2rem;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox (Resim Büyütme Ekranı) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 5px;
    animation: zoom 0.3s;
}

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

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}