/* --- GENEL AYARLAR --- */
:root {
    --primary-color: #1a1a1a; /* Koyu antrasit */
    --accent-color: #c5a47e; /* Mimaride sık kullanılan "Gold/Bej" tonu */
    --bg-light: #f9f9f9;
    --text-color: #333;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Yardımcı Sınıflar */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

.section-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.subtitle {
    color: var(--text-light);
    margin-top: 10px;
}

.view-all {
    font-weight: 600;
    color: var(--accent-color);
}
.view-all:hover { text-decoration: underline; }


/* --- HEADER (Navigasyon) --- */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    position: fixed; /* Menü yukarıya sabitlendi */
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li { margin-left: 30px; }

nav a {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

/* Menü linkinin altındaki hareketli çizgi efekti */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* İletişim Butonu */
.btn-contact {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 2px;
}
.btn-contact::after { display: none; } /* Çizgi efektini kaldır */
.btn-contact:hover { background-color: var(--accent-color); }


/* --- HERO BÖLÜMÜ (Dinamik Giriş) --- */
.hero {
    height: 90vh; /* Ekranın %90'ını kapla */
    background-size: cover;
    background-position: center;
    /* DİNAMİK EFEKT 1: Resim sabit kalır, içerik kayar */
    background-attachment: fixed; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px; /* Sabit header'ın altından başla */
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s, background 0.3s;
}
.btn-hero:hover {
    transform: translateY(-3px);
    background-color: #b08d66;
}


/* --- HİZMETLER BÖLÜMÜ --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.service-item {
    padding: 30px;
    background: #fff;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: transparent;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
    font-weight: 600;
}


/* --- PROJE GALERİSİ (Dinamik Kartlar) --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* DİNAMİK EFEKT 2: Zoom Yapan Kartlar */
.dynamic-card {
    display: block;
    background: #fff;
    overflow: hidden; /* Resim büyüyünce dışarı taşmasın */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.image-frame {
    height: 250px;
    overflow: hidden;
}

/* Geçici resim tutucu ve Unsplash entegrasyonu */
.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease; /* Yumuşak geçiş */
}

/* Hover olunca resim büyüsün */
.dynamic-card:hover .image-placeholder {
    transform: scale(1.1); 
}

.card-info {
    padding: 20px;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s;
}

.dynamic-card:hover .card-info {
    border-bottom-color: var(--accent-color);
}

.card-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.card-info p { color: var(--text-light); font-size: 0.9rem; }


/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-left h3 { letter-spacing: 1px; margin-bottom: 10px; }
.footer-right { text-align: right; font-size: 0.9rem; color: #aaa; }


/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .main-header .container, .footer-content {
        flex-direction: column;
    }
    nav ul { margin-top: 20px; flex-direction: column; }
    nav ul li { margin: 10px 0; }
    .btn-contact { margin-top: 10px; display: inline-block; }
    
    .hero-content h2 { font-size: 2rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-right { text-align: left; margin-top: 20px; }
}

/* --- YENİ EKLENEN STİLLER (Projeler ve İletişim İçin) --- */

/* Alt Sayfa Başlığı (Mini Hero) */
.page-header-bg {
    height: 40vh; /* Ekranın %40'ı kadar yükseklik */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px; /* Header boşluğu */
}

.page-header-bg h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Proje Filtreleme Yazıları */
.project-filter {
    text-align: center;
    margin-bottom: 40px;
}

.project-filter span {
    display: inline-block;
    margin: 0 15px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: color 0.3s;
}

.project-filter span:hover {
    color: var(--primary-color);
}

/* İletişim Sayfası Düzeni (Grid) */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Sol taraf dar, sağ taraf geniş */
    gap: 60px;
}

.contact-details h3, .contact-form-area h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.desc {
    margin-bottom: 30px;
    color: var(--text-light);
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--accent-color); /* Altın rengi başlıklar */
}

.map-box {
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Modern Form Tasarımı */
.styled-form .form-group {
    margin-bottom: 25px;
}

.styled-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.styled-form input, 
.styled-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

/* Input'a tıklayınca olan efekt */
.styled-form input:focus, 
.styled-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Mobil İçin Düzenleme */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr; /* Alt alta al */
        gap: 40px;
    }
    .page-header-bg h2 {
        font-size: 1.8rem;
    }
}

/* --- HAKKIMDA SAYFASI ÖZEL STİLLERİ --- */

/* Fotoğraf ve Yazı Düzeni */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* İkiye böl */
    gap: 60px;
    align-items: center;
}

.about-image-frame {
    position: relative;
    z-index: 1;
}

/* Fotoğrafın arkasındaki estetik çerçeve */
.frame-decor {
    position: absolute;
    top: 20px;
    left: -20px; /* Sola kayık */
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color); /* Altın rengi çerçeve */
    z-index: -1; /* Resmin arkasına at */
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

/* İstatistik Bandı (Siyah Şerit) */
.stats-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Kariyer Zaman Çizelgesi (Timeline) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Ortadaki çizgi */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    margin-left: 30px; /* Çizgiden uzaklaş */
    margin-bottom: 40px;
    position: relative;
}

/* Çizgi üzerindeki noktalar */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px; /* Noktayı çizginin üstüne getir */
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 2px solid #fff;
}

.timeline-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.timeline-item .date {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Mobil Düzenleme */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
    .frame-decor {
        display: none; /* Mobilde karmaşa olmasın diye çerçeveyi gizle */
    }
}

/* Proje Filtreleme Butonları */
.filter-btn {
    display: inline-block;
    margin: 0 15px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light); /* Pasif renk (Gri) */
    position: relative;
    transition: all 0.3s;
    padding-bottom: 5px;
}

.filter-btn:hover {
    color: var(--primary-color);
}

/* Seçili (Aktif) Buton Stili */
.filter-btn.active {
    color: var(--accent-color); /* Altın rengi */
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color); /* Altına çizgi çek */
}

/* --- PROJE DETAY SAYFASI STİLLERİ --- */

/* Üstteki Büyük Resim */
.project-hero {
    height: 70vh; /* Ekranın %70'i */
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 70px;
}

/* Künye ve Başlık Alanı */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.project-title-area h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.project-location {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Teknik Bilgiler (Grid Yapısı) */
.project-specs {
    display: flex;
    gap: 40px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-item .label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

/* Açıklama Metni */
.project-description {
    max-width: 800px;
    margin-bottom: 60px;
}

.project-description p {
    margin-bottom: 20px;
    color: #555;
}

/* Detay Galerisi */
.detail-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.full-width {
    grid-column: 1 / -1; /* Tüm satırı kapla */
    height: 500px;
}

.half-width {
    height: 400px;
}

.next-project {
    text-align: center;
    margin-bottom: 40px;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        gap: 30px;
    }
    .project-specs {
        width: 100%;
        justify-content: space-between;
    }
    .detail-gallery {
        grid-template-columns: 1fr;
    }
    .full-width, .half-width {
        height: auto;
    }
}

/* Logo Link Ayarı */
.logo a {
    text-decoration: none; /* Altındaki çizgiyi kaldır */
    color: inherit; /* Rengini babasından (siyahtan) al, mavi yapma */
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.7; /* Üzerine gelince hafif şeffaflaşsın */
}

/* --- LIGHTBOX (Resim Büyütme) --- */

/* Resimlerin üzerine gelince büyüteç işareti çıksın */
.detail-gallery img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.detail-gallery img:hover {
    opacity: 0.9;
    transform: scale(1.02); /* Hafifçe oynasın */
}

/* Karanlık Perde (Varsayılan olarak gizli) */
#lightbox {
    display: none; /* Başlangıçta görünmez */
    position: fixed;
    z-index: 9999; /* Her şeyin üstünde olsun */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* %90 siyahlık */
    justify-content: center;
    align-items: center;
    cursor: zoom-out; /* Kapatmak için tıkla */
    animation: fadeIn 0.3s; /* Açılış animasyonu */
}

/* Büyüyen Resim */
#lightbox img {
    max-width: 90%; /* Ekranın %90'ını geçmesin */
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 2px solid #fff;
    cursor: default; /* Resmin üzerinde normal mouse olsun */
}

/* Yumuşak Açılış Animasyonu */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- YENİ YETENEK ETİKETLERİ (HİZALANMIŞ HALİ) --- */
.skills-container {
    max-width: 800px; /* Kariyer çizgisiyle aynı genişlikte olsun */
    margin: 60px auto 0 auto; /* Üstten boşluk ver ve ORTALA */
    padding-top: 30px;
    border-top: 1px solid #eee; 
}

.skills-container h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
    /* Başlığın soluna şık bir çizgi ekleyelim ki hizayı belli etsin */
    border-left: 4px solid var(--accent-color); 
    padding-left: 15px;
}

/* Etiketleri kapsayan kutu */
.tags-wrapper {
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
}

/* Tekil Etiket Tasarımı */
.tech-tag {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}


/* --- LOGO VE YAZI DÜZENİ --- */

/* Linkin içindeki resim ve yazıyı yan yana getir */
.logo a {
    display: flex;       /* Yan yana diz */
    align-items: center; /* Dikey olarak ortala (biri yukarıda biri aşağıda kalmasın) */
    gap: 15px;           /* Resim ile yazı arasına 15px boşluk bırak (Tatlı kısım burası) */
    text-decoration: none;
    color: inherit;
}

/* Logonun boyutunu ayarla */
.logo img {
    height: 45px; /* Logonun yüksekliği (Menüyü patlatmasın diye sabitledik) */
    width: auto;  /* Genişlik orantılı ayarlansın */
    object-fit: contain;
}

/* Mobilde biraz daha küçültelim ki sığsın */
@media (max-width: 768px) {
    .logo img {
        height: 35px;
    }
    .logo a {
        gap: 10px;
    }
}

/* --- YUKARI ÇIK BUTONU --- */
#myBtn {
    display: none; /* Başlangıçta gizli */
    position: fixed; /* Sayfayla beraber kaymasın */
    bottom: 25px; /* Alttan boşluk (WhatsApp butonunun yanına veya üstüne gelebilir) */
    right: 95px; /* Sağdan boşluk (WhatsApp butonu 25px, bu onun solunda dursun) */
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color); /* Siyah/Antrasit */
    color: white;
    cursor: pointer;
    padding: 12px 18px; /* Buton büyüklüğü */
    border-radius: 50%; /* Yuvarlak olsun */
    font-size: 18px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
}

#myBtn:hover {
    background-color: var(--accent-color); /* Üzerine gelince Altın rengi olsun */
}

/* Mobilde WhatsApp butonuyla çakışmasın diye biraz yukarı alalım */
@media (max-width: 768px) {
    #myBtn {
        right: 25px;
        bottom: 95px; /* WhatsApp'ın üstüne çıkar */
    }
}

/* --- YÜZEN OYUN BUTONU (MİNİMAL / YUVARLAK) --- */
.game-float {
    position: fixed;
    bottom: 25px;
    left: 25px; /* Sol alt köşe */
    width: 60px; /* Sabit genişlik */
    height: 60px; /* Sabit yükseklik = Tam Daire */
    background-color: var(--accent-color); /* Altın Rengi */
    color: #fff;
    border-radius: 50%; /* Yuvarlat */
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center; /* İkonu tam ortala */
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.game-icon {
    font-size: 1.8rem; /* İkonu biraz büyüttük, daha belirgin olsun */
    line-height: 0; /* Dikey hizalamayı düzeltir */
}

.game-float:hover {
    background-color: #1a1a1a; 
    transform: scale(1.1); 
    animation: none; 
}

/* Zıplama Animasyonu */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Mobilde biraz küçültelim */
@media (max-width: 768px) {
    .game-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    .game-icon {
        font-size: 1.4rem;
    }
}