/* --------- TEMEL SIFIRLAMA VE RENK DEĞİŞKENLERİ --------- */
:root{
    /* Renk Değişkenleri (Tek bir kaynaktan besleniyor) */
    --gold: #c9ad6a; 
    --black: #0b0b0b;
    --dark: #1e1e1e; /* Genel metin rengi */
    --muted: #7b7b7b; /* İkincil metin rengi */
    --bg: #f7f7f7; /* Açık arka plan rengi */
    
    /* Kullanım kolaylığı için ana değişken atamaları */
    --accent: var(--gold); 
    --primary-color: var(--gold); 
    --secondary-color: var(--black);
    --light-bg: var(--bg);

    --max-width: 1200px;
    --radius: 14px;
    --transition: 300ms cubic-bezier(.2, .9, .2, 1);
}

/* KRİTİK SIFIRLAMA (Taşmayı önler ve kutu modelini düzeltir) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden; /* Yatay kaymayı engeller */
}

body {
    height: 100%;
    width: 100%;
    /* Inter fontunun doğru yüklendiğinden emin olun (HTML'de link eklendi) */
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark);
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
h1, h2, h3, h4 {
    color: var(--black);
}

/* ---------- Container (Tüm içeriği ortalar) ---------- */
.container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto; /* Sayfayı ortalar */
}


/* ---------- Header / Nav ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(4px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--black); /* Link rengi için eklendi */
}
.brand:hover {
    opacity: 0.85; /* Brand üzerine gelindiğinde hafif efekt */
}
.brand img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #fff0);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 8px;
}
.brand h1 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.6px;
    color: var(--black);
}
.brand p {
    margin: 0;
    font-size: 12px;
    color: var(--muted)
}

nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    align-items: center;
}
nav a {
    font-weight: 600;
    color: var(--dark);
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}
nav a:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-2px)
}

/* Global CTA (Teklif Al butonu) */
.cta {
    background: var(--accent);
    color: #111;
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(201, 173, 106, 0.12);
    font-weight: 700;
    transition: var(--transition);
    /* HTML'den kaldırılan inline stilin karşılığı */
    display: inline-block; 
}
.cta:hover {
    background: var(--dark);
    color: white;
}


/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: center;
    padding: 56px 0;
}
.hero-card {
    background: linear-gradient(180deg, #ffffff, #fffaf6);
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 20px 40px rgba(9, 9, 9, 0.06);
    position: relative;
    overflow: hidden;
}
.hero .eyebrow {
    display: inline-block;
    background: rgba(201, 173, 106, 0.12);
    color: var(--gold);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
}
.hero h2 {
    margin: 6px 0 12px;
    font-size: 34px;
    color: var(--black);
    line-height: 1.05;
}
.hero p.lead {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 16px;
}
.services-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.service-pill {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.pill-alt { /* Hakkımızda bölümü için alternatif pill stili */
    background: transparent !important; 
    border: 1px dashed rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}

/* Right card contact */
.contact-card {
    background: linear-gradient(180deg, #ffffff, #fffaf6);
    color: var(--dark);
    border-radius: 18px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(9, 9, 9, 0.06);
}
.contact-item {
    display: flex;
    gap: 14px;
    align-items: center;
}
.contact-item a { /* Telefon/Email linklerine beyaz renk */
    color: inherit; 
}
.contact-item a:hover {
    text-decoration: underline;
}
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    display: grid;
    place-items: center;
    color: var(--black);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(201, 173, 106, 0.18);
}
.contact-item .meta {
    font-weight: 700;
    font-size: 16px
}
.contact-item .sub {
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Sections ---------- */
section {
    padding: 56px 0
}
h3.section-title {
    margin: 0 0 20px;
    font-size: 22px;
    color: var(--black);
    text-align: center;
}
.muted {
    color: var(--muted)
}

/* Hakkımızda */
.about {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: center;
}
.about .box {
    background: linear-gradient(180deg, #fff, #fffef7);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.mt-14 { /* HTML'den taşındı */
    margin-top: 14px;
}
.ul-list { /* HTML'den taşındı */
    margin: 8px 0 0 18px; 
    color: var(--muted);
}
.about-card { /* HTML'den taşındı */
    background: linear-gradient(180deg,#fff,#fffef7); 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.pill-wrap { /* HTML'den taşındı */
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap;
}

/* Hizmetler */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.service {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08)
}
.service h4 {
    margin: 0
}
.service p {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

/* Projeler (galeri) */
.projeler-section {
    background-color: var(--light-bg);
}

.proje-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.proje-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
    text-align: left;
}

.proje-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.proje-image {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    transition: transform 0.6s ease;
}

.proje-item:hover .proje-image {
    transform: scale(1.05);
}

.proje-info {
    padding: 20px;
}

.proje-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    color: var(--black);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.proje-summary {
    color: var(--muted);
    margin-bottom: 15px;
    min-height: 50px;
    font-size: 0.95rem;
}

/* Buton Stilleri */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
}
.small-btn {
    padding: 8px 18px;
    font-weight: 600;
}
.btn.secondary-btn {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--muted);
    text-transform: none;
    margin-top: 0;
}
.btn.secondary-btn:hover {
    background: rgba(201,173,106,0.1);
    border-color: var(--gold);
    color: var(--gold);
}
.cta, .btn.cta { 
    background: var(--gold);
    color: #111;
    border: none;
    padding: 10px 24px;
    font-weight: 700;
}
.btn.cta.small-btn {
    padding: 8px 18px;
}


/* Iletisim */
.contact-wrap{
    display:grid;
    grid-template-columns: 1fr 420px;
    gap:20px;
    align-items:stretch;
}
form{
    background:#fff;
    border-radius:12px;
    padding:18px;
    box-shadow:0 14px 30px rgba(0,0,0,0.05);
    display:flex;
    flex-direction:column;
    gap:12px;
}
label{font-size:13px; color:var(--muted)}
input[type="text"], input[type="email"], textarea{
    width:100%;
    padding:10px 12px;
    border-radius:8px;
    border:1px solid rgba(0,0,0,0.08);
    font-size:14px;
    outline:none;
    transition:var(--transition);
}
input:focus, textarea:focus{box-shadow:0 8px 20px rgba(201,173,106,0.08); transform:translateY(-2px)}
button[type="submit"]{
    background:var(--gold);
    color:#111;
    padding:10px 14px;
    border-radius:10px;
    border:0;
    font-weight:800;
    cursor:pointer;
    transition:var(--transition);
}
button[type="submit"]:hover{transform:translateY(-3px)}
.contact-form-footer { /* HTML'den taşındı */
    display:flex; 
    gap:10px; 
    align-items:center; 
    justify-content:space-between;
    margin-top: 8px; /* Buton ve metin arasındaki boşluk */
}

/* İletişim Aside (Sağdaki Kartlar) - HTML'den taşındı */
.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-info-box {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}
.map-box {
    min-height: 200px;
}
.map-wrap {
    width: 100%; 
    height: 120px; 
    border-radius: 8px; 
    overflow: hidden;
}


/* Footer */
footer{
    padding:30px 0;
    border-top:1px solid rgba(0,0,0,0.04);
    margin-top:20px;
}
.footer-content { /* HTML'den taşındı */
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap:12px; 
    flex-wrap:wrap;
}
.footer-links { /* HTML'den taşındı */
    display:flex; 
    gap:12px; 
    align-items:center;
}
.socials a{
    display:inline-block;
    margin-right:10px;
    padding:8px;
    border-radius:8px;
    background:rgba(0,0,0,0.05);
    font-weight:700;
}

/* small helper ve spacer sınıfları */
.small{font-size:13px; color:var(--muted)}
.divider{height:1px;background:linear-gradient(90deg,transparent,rgba(0,0,0,0.06),transparent); margin:18px 0; border-radius:6px}

/* Yeni Helper Sınıfları (Inline'dan taşındı) */
.spacer-16 { height: 16px; }
.spacer-12 { height: 12px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.inline-block { display: inline-block; }


/* YENİ MODAL (POP-UP) STİLLERİ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 60px;
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
    text-align: left;
}
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}
.close-btn {
    color: var(--dark);
    float: right;
    font-size: 30px;
    font-weight: bold;
    transition: color 0.3s;
}
.close-btn:hover,
.close-btn:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}
.modal-content h2 {
    color: var(--accent);
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Galeriyi kapsayan div, geçiş düğmelerini konumlandırmak için */
.modal-gallery {
    position: relative;
    width: 100%;
    height: 300px; /* Sabit yükseklik, projeler kısmındaki .modal-image ile aynı */
    overflow: hidden; /* Sadece bir görselin görünmesini sağlar */
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Görsellerin bulunduğu kayan konteyner */
.gallery-inner {
    display: flex; /* Görselleri yan yana dizer */
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out; /* Görsel geçiş animasyonu */
}

/* Tek bir görsel */
.gallery-slide {
    min-width: 100%; /* Her slaytın tüm alanı kaplamasını sağlar */
    height: 100%;
    object-fit: contain;
    display: block; 
    margin: 0 auto;
    display: none; /* Varsayılan olarak tüm görselleri gizle */
}

.gallery-slide.active {
    display: block; /* Sadece aktif olanı göster */
}

/* Geçiş düğmeleri (Sağ ve Sol Oklar) */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.3s;
    border-radius: 4px;
}
.prev-btn:hover, .next-btn:hover {
    opacity: 1;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}



/* RESPONSIVE DÜZENLEMELER (Mobil Görünüm) */
@media (max-width:980px){
    .hero{grid-template-columns:1fr; padding:28px 0}
    .about, .contact-wrap{grid-template-columns:1fr}
    header .brand img{width:64px; height:64px}
    nav ul{display:none}
}
@media (max-width:520px){
    .brand h1{font-size:16px}
    .hero h2{font-size:26px}
    .contact-card{padding:20px}
    .icon-circle{width:44px; height:44px}
    .proje-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-links {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 10px;
    }
}
