/* --- GENEL AYARLAR --- */
:root {
    --primary: #0f172a;  /* Lacivert */
    --secondary: #64748b; /* Gri */
    --accent: #ea580c;   /* Turuncu */
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER --- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Hamburger Menu (Mobil İçin) */
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary);
    transition: 0.3s;
}

/* --- ANA İÇERİK ALANI --- */
main { flex: 1; }

/* Sayfa Başlıkları (Hero harici sayfalar için) */
.page-header {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* --- HERO SECTION (Anasayfa) --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(15,23,42,0.7), rgba(15,23,42,0.7)), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=1920');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 1rem;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
}
.btn:hover { background: #c2410c; }

/* --- GRID SİSTEMİ (Hizmetler ve Projeler) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card h3 { color: var(--primary); margin-bottom: 1rem; }

/* --- İLETİŞİM FORMU --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
form button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: #cbd5e1;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active { left: 0; }
    .nav-links li { padding: 1.5rem 0; border-bottom: 1px solid #eee; }
    
    .hero h1 { font-size: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}