@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --primary: #FFB300;       
    --dark: #121212;          
    --text-white: #ffffff;
    --c-blue: #00d2d3; --c-pink: #ff007f; --c-green: #0be881; --c-purple: #9b59b6;
    --radius: 20px;
    --spacing: 120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--dark); color: #dcdcdc; font-family: 'Open Sans', sans-serif; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--text-white); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { width: 100%; display: block; object-fit: cover; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 30px; }
.section-padding { padding: var(--spacing) 0; }

/* --- NAVBAR (FİNAL MİMARİ TASARIM) --- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; background: transparent; z-index: 1000; transition: 0.3s ease-in-out; }
.navbar.scrolled { background: #000000; padding: 15px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.9); border-bottom: 1px solid #222; }
.nav-container { display: flex; justify-content: center; align-items: center; gap: 40px; } 
.logo { font-size: 1.6rem; font-weight: 800; color: #fff; display: flex; gap: 8px; z-index: 1002; letter-spacing: -1px; font-family: 'Montserrat', sans-serif; }
.logo span { color: var(--primary); }
.nav-menu { display: flex; gap: 5px; align-items: center; }

/* Mimari Link Animasyonu */
.nav-link { 
    font-size: 0.9rem; font-weight: 600; color: #e0e0e0; padding: 10px 15px; position: relative; font-family: 'Montserrat', sans-serif; transition: color 0.3s;
}
.nav-link::before { content: ''; position: absolute; top: 0; left: 50%; width: 0; height: 2px; background-color: var(--primary); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform: translateX(-50%); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background-color: var(--primary); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform: translateX(-50%); }
.nav-link:hover { color: var(--primary); }
.nav-link:hover::before { width: 80%; } 
.nav-link:hover::after { width: 80%; }  

.btn-quote { background: var(--primary); color: #000; padding: 10px 30px; border-radius: 50px; font-weight: 700; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; transition: all 0.3s; margin-left: 10px; }
.btn-quote:hover { background: #fff; transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 255, 255, 0.6); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1002; }
.bar { width: 30px; height: 3px; background-color: #fff; transition: 0.3s; }

/* HERO */
.hero-wrapper { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed; position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.4), var(--dark)); }
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 10px 30px rgba(0,0,0,0.9); font-weight: 800; }

/* ORTAK GRID YAPILARI */
.home-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; }
.home-box { background: #1a1a1a; padding: 40px 20px; border-radius: var(--radius); text-align: center; transition: 0.4s; border: 1px solid #333; }
.home-box:hover { transform: translateY(-10px); background: #222; border-color: #555; }
.icon-circle { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: rgba(255,255,255,0.05); }
.c-blue { color: var(--c-blue); border: 2px solid var(--c-blue); } 
.c-pink { color: var(--c-pink); border: 2px solid var(--c-pink); }
.c-purple { color: var(--c-purple); border: 2px solid var(--c-purple); } 
.c-green { color: var(--c-green); border: 2px solid var(--c-green); }

/* KURUMSAL */
.mag-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
.mag-text { column-count: 1; }
.mag-text p { font-family: 'Playfair Display', serif; font-size: 1.15rem; line-height: 1.8; color: #ccc; margin-bottom: 25px; text-align: justify; }
.mag-text p:first-of-type::first-letter { font-size: 4.5rem; float: left; margin-right: 15px; line-height: 0.85; color: var(--primary); font-family: 'Montserrat', sans-serif; font-weight: 800; }
.img-placeholder { width: 100%; height: 100%; min-height: 500px; border: 2px dashed #444; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: #1a1a1a; }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.m-card { background: #1e1e1e; padding: 40px 20px; text-align: center; border-radius: 20px; border-bottom: 5px solid transparent; transition: 0.4s; }
.m-card:hover { transform: translateY(-10px); background: #252525; }
.mission-style { border-color: #0984e3; } .mission-style i, .mission-style h3 { color: #0984e3; }
.vision-style { border-color: #6c5ce7; } .vision-style i, .vision-style h3 { color: #6c5ce7; }
.values-style { border-color: #00b894; } .values-style i, .values-style h3 { color: #00b894; }
.m-card i { font-size: 2.5rem; margin-bottom: 15px; } 

/* HİZMETLER */
.services-centered { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; justify-content: center; }
.visual-card { height: 400px; border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid #333; cursor: pointer; }
.visual-card img { width: 100%; height: 100%; transition: 0.6s; } .visual-card:hover img { transform: scale(1.1); }
.v-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); opacity: 0; transition: 0.4s; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.visual-card:hover .v-overlay { opacity: 1; backdrop-filter: blur(4px); }

/* PROJELER SLIDER */
.slider-container { width: 100%; overflow: hidden; position: relative; height: 500px; border-radius: 20px; border: 1px solid #333; cursor: pointer; }
.slider-track { display: flex; height: 100%; transition: transform 1s ease-in-out; }
.slide { min-width: 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; bottom: 40px; left: 40px; background: rgba(0,0,0,0.8); padding: 15px 30px; border-left: 5px solid var(--primary); z-index: 10; pointer-events: none; }

/* PROJE DETAY LİSTESİ */
.project-detail-section { margin-top: 80px; }
.project-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 100px; align-items: center; }
.project-row.reverse { direction: rtl; } .project-row.reverse .p-text { direction: ltr; }
.p-img-box { height: 450px; border-radius: 20px; overflow: hidden; border: 1px solid #333; }
.p-img-box img { width: 100%; height: 100%; transition: 0.5s; }
.p-img-box:hover img { transform: scale(1.05); }
.p-text h2 { font-size: 2.2rem; margin-bottom: 20px; color: #fff; font-family: 'Montserrat', sans-serif; }
.p-text p { font-size: 1.1rem; color: #bbb; line-height: 1.7; margin-bottom: 20px; }
.p-meta { display: flex; gap: 20px; margin-bottom: 25px; }
.meta-item { display: flex; align-items: center; gap: 10px; color: var(--primary); font-weight: bold; }

/* LIGHTBOX */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.98); z-index: 3000; display: none; flex-direction: column; justify-content: center; align-items: center; }
.lightbox.active { display: flex; animation: fadeIn 0.3s; }
.lightbox-content-wrapper { position: relative; width: 100%; max-width: 1000px; height: 70vh; display: flex; justify-content: center; align-items: center; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 5px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: #fff; cursor: pointer; z-index: 3001; transition: 0.3s; }
.lightbox-close:hover { color: var(--primary); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 4rem; color: rgba(255,255,255,0.4); cursor: pointer; background: transparent; border: none; user-select: none; transition: 0.3s; padding: 20px; }
.lb-arrow:hover { color: var(--primary); transform: translateY(-50%) scale(1.2); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-thumbnails { display: flex; gap: 10px; margin-top: 20px; padding: 10px; overflow-x: auto; max-width: 90%; justify-content: center; }
.lb-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 5px; cursor: pointer; opacity: 0.5; transition: 0.3s; border: 2px solid transparent; }
.lb-thumb:hover, .lb-thumb.active { opacity: 1; border-color: var(--primary); transform: scale(1.1); }

/* TEKLİF FORMU */
.quote-container { background: #1a1a1a; padding: 40px; border-radius: 20px; max-width: 600px; margin: 0 auto; border: 1px solid #333; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 10px; font-size: 1rem; color: var(--primary); font-weight: bold; font-family: 'Montserrat', sans-serif; } 
.form-control { width: 100%; padding: 15px; background: #0a0a0a; border: 1px solid #444; color: #fff; border-radius: 8px; font-size: 1rem; font-family: 'Open Sans', sans-serif; }
.form-control:focus { border-color: var(--primary); outline: none; }

/* İLETİŞİM */
.contact-grid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-box { background: #1a1a1a; padding: 30px 15px; border-radius: 20px; text-align: center; border: 1px solid #333; transition: 0.3s; }
.contact-box:hover { transform: translateY(-5px); border-color: var(--primary); }
.map-container { width: 100%; height: 500px; border-radius: 20px; overflow: hidden; border: 2px solid #333; }

/* FOOTER */
footer { background: #050505; padding: 60px 0 20px; border-top: 1px solid #222; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: 1.3rem; margin-bottom: 20px; color: #fff; letter-spacing: 1px; font-family: 'Montserrat', sans-serif; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-grid p { font-size: 0.9rem; color: #888; transition: 0.3s; font-family: 'Open Sans', sans-serif; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; text-shadow: 0 0 10px var(--primary); }
.s-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.s-btn:hover { transform: scale(1.1); }
.sidebar-widgets { position: fixed; right: 20px; bottom: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 2000; display: none; justify-content: center; align-items: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-content { background: #151515; width: 100%; max-width: 600px; border-radius: 20px; border: 1px solid #333; position: relative; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; }
.modal-img-header { width: 100%; height: 250px; object-fit: cover; border-bottom: 4px solid var(--primary); }
.modal-body { padding: 30px; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2.5rem; color: #fff; cursor: pointer; text-shadow: 0 0 10px #000; z-index: 10; transition: 0.3s; }
.close-modal:hover { color: var(--primary); transform: rotate(90deg); }
.modal-btn-group { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 25px; justify-content: center; }
.m-btn { flex: 1; min-width: 140px; padding: 15px; border-radius: 12px; font-weight: bold; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.95rem; text-align: center; transition: 0.3s; font-family: 'Montserrat', sans-serif; }
.m-btn:hover { transform: translateY(-3px); filter: brightness(1.2); }
.mb-wp { background: #25D366; } .mb-call { background: #333; border: 1px solid #555; } .mb-form { background: var(--primary); color: #000; width: 100%; flex-basis: 100%; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 2.5rem; }
    .hamburger { display: flex; } 
    .nav-container { justify-content: space-between; gap: 0; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%; background: #000; border-bottom: 1px solid #333; padding: 30px; gap: 20px; text-align: center; }
    .nav-menu.active { display: flex; } 
    .home-services-grid, .contact-grid-row, .mission-grid, .mag-layout, .footer-grid, .modal-btn-group, .services-centered, .project-row { grid-template-columns: 1fr; }
    .project-row.reverse { direction: ltr; } 
    .mag-text { column-count: 1; }
    .img-placeholder { height: 300px; }
    .quote-container { padding: 20px; }
    .mb-form { grid-column: span 1; }
    .lb-arrow { display: none; } 
}
/* --- SAYFA BAŞLIKLARI DÜZENLEMESİ (Bozukluğu Gideren Kod) --- */
.page-header {
    padding-top: 160px; /* Navbar'ın altında kalmaması için boşluk */
    padding-bottom: 50px;
    text-align: center;
    background-color: var(--dark);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--primary); /* Sarı Renk */
    font-weight: 800;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.page-header p {
    color: #cccccc;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
/* --- YENİ EKLENEN GALERİ VE DÜZENLEMELER --- */

/* Hizmetler Sayfası Ortalama */
.services-centered {
    display: flex; /* Grid yerine Flex kullandık */
    justify-content: center; /* Tam ortalar */
    flex-wrap: wrap; /* Sığmazsa aşağı atar */
    gap: 30px;
}
.visual-card {
    width: 300px; /* Kartlara sabit genişlik verdik ki düzgün dursun */
    flex-shrink: 0;
}

/* Projeler Sayfası Galeri Düzeni (Yazısız) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive Izgara */
    gap: 20px;
    padding-bottom: 50px;
}

.gallery-item {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px 20px;
    z-index: 2;
}

.gallery-overlay h3 {
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}
/* --- HİZMETLER VE SAYFA BAŞLIKLARI DÜZENLEMESİ --- */

/* 1. Başlık Alanı (Görünmeyen yazıları düzeltir) */
.page-header {
    padding-top: 160px;
    padding-bottom: 50px;
    text-align: center;
    background-color: var(--dark); /* Arkaplanı koyu yapar */
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--primary); /* Sarı renk */
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.page-header p {
    color: #cccccc;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* 2. Hizmet Kutularını Ortalama (Ortaya dizer) */
.services-centered {
    display: flex;
    justify-content: center; /* Yatayda ortalar */
    flex-wrap: wrap; /* Sığmazsa alta geçer */
    gap: 30px; /* Kutular arası boşluk */
}

/* Kutuların genişliğini sabitliyoruz ki düzgün dursun */
.visual-card {
    width: 300px;
    flex-shrink: 0;
}

/* Mobil uyum */
@media (max-width: 768px) {
    .visual-card {
        width: 100%; /* Mobilde tam genişlik */
    }
}

