/* GENEL AYARLAR VE DEĞİŞKENLER */
:root {
    --primary-color: #ff4d4d; /* Ana Vurgu Rengi (Kırmızı) */
    --bg-color: #121212;      /* Arka Plan Rengi (Çok Koyu Gri) */
    --surface-color: #1e1e1e; /* Kart ve Yüzey Rengi (Koyu Gri) */
    --text-color: #e0e0e0;    /* Ana Metin Rengi (Açık Gri) */
    --heading-color: #ffffff; /* Başlık Rengi (Beyaz) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* HEADER & NAVİGASYON */
header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--heading-color);
    font-size: 1.5rem; /* Sol üst yazı boyutu */
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* ANA İÇERİK BÖLÜMLERİ */
main {
    padding-top: 80px; /* Header yüksekliği kadar boşluk */
}

.content-section {
    padding: 6rem 0;
    border-bottom: 1px solid #2a2a2a;
}

h1, h2 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

/* GİRİŞ BÖLÜMÜ */
#hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero .container {
    max-width: 800px;
}

/* ÖZGEÇMİŞ BÖLÜMÜ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* BUTON STİLİ */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
    background-color: #ff6363;
}

/* PORTFOLYO KARTLARI */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Kart içeriği için ortak padding */
.card h3, .card p, .card .btn {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.card h3 {
    margin-top: 1.5rem;
}

.card p {
    flex-grow: 1; 
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.card .btn {
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

/* İLETİŞİM & SOSYAL MEDYA */
#contact {
    text-align: center;
}

.social-icons {
    margin-top: 2rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 2.5rem;
    margin: 0 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #2a2a2a;
}

#contact {
    border-bottom: none; /* En son bölümün alt çizgisini kaldır */
}

/* ANİMASYON İÇİN */
.content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* MOBİL UYUMLULUK (Responsive) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }

    header .container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }

    nav ul {
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.2rem 0.5rem;
    }

    main {
        padding-top: 140px; /* Mobil için header yüksekliği arttırıldı */
    }
}
/* TEMA RENK DEĞİŞKENLERİ */
:root[data-theme='dark'] {
    --primary-color: #ff4d4d;
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: #2a2a2a;
    --btn-text-color: #ffffff;
}

:root[data-theme='light'] {
    --primary-color: #ff4d4d;
    --bg-color: #f4f4f9;
    --surface-color: #ffffff;
    --text-color: #333333;
    --heading-color: #000000;
    --border-color: #dddddd;
    --btn-text-color: #ffffff;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* HEADER & NAVİGASYON */
header {
    background: rgba(var(--bg-color), 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, border-bottom 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    text-decoration: none;
    color: var(--heading-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.theme-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}


nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* ANA İÇERİK */
main {
    padding-top: 80px;
}

.content-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

h1, h2, h3 {
    color: var(--heading-color);
    transition: color 0.3s;
}
h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h2 i { color: var(--primary-color); margin-right: 0.5rem; }
h3 { margin-bottom: 0.5rem; }

#hero { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }


/* BUTON */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--btn-text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
    background-color: #ff6363;
}

/* KARTLAR */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.card img { width: 100%; height: 200px; object-fit: cover; display: block; border-top-left-radius: 10px; border-top-right-radius: 10px;}
.card h3, .card p, .card .btn { margin-left: 1.5rem; margin-right: 1.5rem; }
.card h3 { margin-top: 1.5rem; }
.card p { flex-grow: 1; margin-bottom: 1rem; padding-top: 0.5rem; }
.card .btn { margin-bottom: 1.5rem; align-self: flex-start; }


/* İLETİŞİM */
#contact { text-align: center; border-bottom: none; }
.social-icons { margin-top: 2rem; }
.social-icons a { color: var(--text-color); font-size: 2.5rem; margin: 0 1.2rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-icons a:hover { color: var(--primary-color); transform: scale(1.1); }


/* FOOTER */
footer { text-align: center; padding: 2rem 0; font-size: 0.9rem; color: #777; border-top: 1px solid var(--border-color); transition: border-color 0.3s; }

/* ANİMASYON */
.content-section { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.content-section.visible { opacity: 1; transform: translateY(0); }

/* BİLDİRİM POP-UP'I (Toast) */
.toast-notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 2000;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s ease, top 0.4s ease;
}

.toast-notification.show {
    top: 100px;
    opacity: 1;
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    header .container { flex-direction: column; align-items: center; gap: 1rem; }
    nav ul { padding: 0; flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 0.2rem 0.5rem; }
    main { padding-top: 150px; }
}
/* Bu kuralı CSS dosyanızdan SİLİN veya YORUM SATIRI yapın */
/*
.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}
*/

/* Bu kuralı bulun */
nav ul {
    list-style: none;
    display: flex;
}

/* ve aşağıdaki gibi GÜNCELLEYİN */
nav {
    display: flex;
    align-items: center;
    gap: 2rem; /* Navigasyon linkleri ve buton arasına boşluk koyar */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem; /* Linklerin kendi arasına boşluk koyar */
}


/* Ayrıca, mobil görünüm için aşağıdaki değişikliği yapın */
@media (max-width: 768px) {
    /* ... diğer mobil stilleriniz ... */
    header .container { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
    .logo { margin-bottom: 0; }
    nav { gap: 1rem; margin-left: auto; /* Navigasyonu ve butonu sağa iter */ }
    nav ul { display: none; /* Mobil menü için bu şimdilik gizlenebilir veya daha gelişmiş bir yapıya dönüştürülebilir */ }
    main { padding-top: 90px; } /* Header yüksekliği ayarlandı */
}
/* TEMA RENK DEĞİŞKENLERİ */
:root[data-theme='dark'] {
    --primary-color: #ff4d4d;
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: #2a2a2a;
    --btn-text-color: #ffffff;
}

:root[data-theme='light'] {
    --primary-color: #ff4d4d;
    --bg-color: #f4f4f9;
    --surface-color: #ffffff;
    --text-color: #333333;
    --heading-color: #000000;
    --border-color: #dddddd;
    --btn-text-color: #ffffff;
}

/* TEMEL AYARLAR */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}
.container { max-width: 1100px; margin: auto; padding: 0 2rem; }

/* HEADER */
header {
    background: rgba(from var(--bg-color) r g b / 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, border-bottom 0.3s;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo a { text-decoration: none; color: var(--heading-color); font-size: 1.5rem; font-weight: 700; }
.header-controls { display: flex; align-items: center; gap: 1rem; }
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.theme-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }

/* NAVİGASYON */
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: 400; 
    transition: color 0.3s ease; 
    white-space: nowrap; /* Bu yazıların alt alta kaymasını engeller */
}
nav a:hover { color: var(--primary-color); }
.mobile-nav-btn { display: none; }

/* ANA İÇERİK */
main { padding-top: 85px; }
.content-section { padding: 6rem 0; border-bottom: 1px solid var(--border-color); transition: border-color 0.3s; }
h1, h2, h3 { color: var(--heading-color); transition: color 0.3s; }
h1 { font-size: 3.5rem; margin-bottom: 1rem; text-align: center;}
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h2 i { color: var(--primary-color); margin-right: 0.5rem; }
h3 { margin-bottom: 0.5rem; }
#hero { min-height: 20vh; display: flex; align-items: center; justify-content: center; }
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }

/* KARTLAR */
.portfolio-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; /* Ortaya hizalar */
    gap: 2rem; 
}
.card {
    background: var(--surface-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: 350px; /* Kartların hayvan gibi uzamasını engeller */
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #000;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.card h3, .card p, .card .btn { margin-left: 1.5rem; margin-right: 1.5rem; }
.card h3 { margin-top: 1.5rem; }
.card p { flex-grow: 1; margin-bottom: 1rem; padding-top: 0.5rem; }
.card .btn { margin-bottom: 1.5rem; align-self: flex-start; }
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--btn-text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2); background-color: #ff6363; }

/* MODAL PENCERE */
.modal {
    display: none; position: fixed; z-index: 3000;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(0,0,0,0.8);
    opacity: 0; transition: opacity 0.4s ease;
}
.modal.show { display: block; opacity: 1; }
.modal-content {
    background-color: var(--surface-color);
    margin: 5% auto; padding: 2rem 3rem; border-radius: 10px;
    width: 90%; max-width: 800px; position: relative;
    transform: translateY(-50px); transition: transform 0.4s ease;
}
.modal.show .modal-content { transform: translateY(0); }
.modal-close {
    color: var(--text-color); position: absolute;
    top: 1rem; right: 1.5rem; font-size: 2.5rem;
    font-weight: bold; cursor: pointer; transition: color 0.3s;
}
.modal-close:hover { color: var(--primary-color); }
#modal-body h3 { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; }
#modal-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
#modal-body p { margin-bottom: 1.5rem; line-height: 1.7; }

/* BİLDİRİM & ANİMASYON */
.toast-notification {
    position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
    background-color: var(--primary-color); color: #fff; padding: 1rem 2rem;
    border-radius: 8px; z-index: 4000; font-weight: 600;
    opacity: 0; transition: opacity 0.4s ease, top 0.4s ease;
}
.toast-notification.show { top: 100px; opacity: 1; }
.content-section { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.content-section.visible { opacity: 1; transform: translateY(0); }

/* İLETİŞİM & FOOTER */
#contact { text-align: center; border-bottom: none; }
.social-icons { margin-top: 2rem; }
.social-icons a { color: var(--text-color); font-size: 2.5rem; margin: 0 1.2rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-icons a:hover { color: var(--primary-color); transform: scale(1.1); }
footer { text-align: center; padding: 2rem 0; font-size: 0.9rem; color: #777; border-top: 1px solid var(--border-color); transition: border-color 0.3s; }

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    main { padding-top: 85px; }

    .mobile-nav-btn {
        display: flex;
        background: transparent; border: none;
        color: var(--text-color); font-size: 1.5rem;
        cursor: pointer; z-index: 2000;
    }
    nav {
        display: flex; justify-content: center; align-items: center;
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background-color: var(--surface-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        z-index: 1500;
    }
    nav.nav-open { right: 0; }
    nav ul { flex-direction: column; gap: 2.5rem; text-align: center; }
    nav a { font-size: 1.2rem; }
    
    .modal-content { margin: 20% auto; padding: 1.5rem; }
}

/* Atatürk Logosu ve Yazı Ayarı */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

#ataturk-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Modal İçindeki Butonları Yan Yana Dizme */
.modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.modal-buttons .btn {
    margin-top: 0;
}
