/*============================
    1. TEMA DEĞİŞKENLERİ
============================*/
:root {
    --primary: #4a4e69;
    --secondary: #9a8c98;
    --accent: #c9ada7;
    --dark: #22223b;
    --light: #f2e9e4;
    --gray: #f8f9fa;
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --card-bg: #ffffff;
    --card-bg-dark: #2e2e3a;
    --bg-dark: #1a1a2e;
}

body.dark {
    --primary: #c9ada7;
    --secondary: #f2e9e4;
    --text-dark: #ffffff;
    --text-light: #ffffff;
    --card-bg: var(--card-bg-dark);
    --bg-dark: #1a1a2e;
    background: var(--bg-dark);
    color: var(--text-light);
}

/*============================
    2. RESET + BASE
============================*/
* {
    box-sizing: border-box;
    margin: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--gray);
    color: var(--text-dark);
    line-height: 1.75;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: var(--primary);
    text-decoration: none !important;
    transition: color 0.3s ease;
}

p {
    text-align: justify;
    text-wrap-style: pretty;
}

a:hover {
    color: var(--secondary);
}

address {
    text-align: left;
}

/*============================
    3. NAVBAR
============================*/
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    background: var(--light);
    height: 70px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark .navbar {
    background: var(--dark);
}

.navbar.scrolled {
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

    .nav-links a {
        color: var(--text-dark);
        font-weight: 500;
    }

body.dark .nav-links a {
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

    .hamburger i {
        font-size: 24px;
        color: var(--secondary);
        /* İkon rengi */
    }

@media (max-width: 768px) {

    .nav-brand {
        font-size: 1rem !important;
    }

    .hamburger {
        display: flex;
    }

    #navLinks {
        display: none;
    }

        #navLinks.open {
            display: flex;
        }
}

/*============================
    4. THEME TOGGLE
============================*/
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    margin-left: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    transition: color 0.3s;
}

    .theme-toggle i {
        font-size: 1.5rem;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .theme-toggle:hover i {
        transform: rotate(20deg);
    }

body.dark .theme-toggle {
    color: var(--secondary);
}

/*============================
    5. HERO SECTION
============================*/
.hero {
    height: 100vh;
    margin-top: 70px;
    background: linear-gradient(rgba(51, 51, 51, 0.726), rgba(48, 46, 58, 0.9)), url('data:image/svg+xml,<svg width="40" height="40" ...') repeat, url('https://images.unsplash.com/photo-1661935635412-fa36cf42ae35?auto=format&fit=crop&w=1920') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

body.dark .hero {
    background: linear-gradient(rgba(35, 77, 119, 0.76), rgba(2, 1, 7, 0.96)), url('data:image/svg+xml,<svg width="40" height="40" ...') repeat, url('https://images.unsplash.com/photo-1661935635412-fa36cf42ae35?auto=format&fit=crop&w=1920') center/cover;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .hero-content img {
        border-radius: 8px;
        margin-bottom: 2rem;
        height: 260px;
        width: auto;
    }

.hero-content-sub {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}

.body.dark #about {
    background: var(--card-bg-dark);
    color: var(--text-light);
}


/*============================
    6. BÖLÜM & BAŞLIKLAR
============================*/
section {
    padding: 6rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: left;
    margin-bottom: 4rem;
}

    .section-title h2 {
        font-size: 2.5rem;
    }

body.dark .section-title h2 {
    color: var(--light);
}

/*============================
    7. KARTLAR
============================*/
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.card,
.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, background 0.3s;
}

body.dark .card,
body.dark .project-card {
    background: var(--card-bg-dark);
}

.card:hover,
.project-card:hover {
    transform: translateY(-6px);
}

.card-content,
.project-content {
    padding: 2rem 1.5rem;
}

.card h3,
.project-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

body.dark .card h3,
body.dark .project-card h3 {
    color: var(--secondary);
}

#fine-arts img {
    width: 100%;
    height: auto;
}

/*============================
    8. İLETİŞİM & FOOTER
============================*/
.contact {
    background: var(--dark);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 2rem;
}

    .contact h2 {
        color: var(--accent) !important;
    }

.contact-info {
}

    .contact-info a {
        color: var(--text-light);
        text-decoration: none;
    }

.contact ul li {
    text-align: left;
}

    .contact ul li a {
        color: var(--text-light);
    }


footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 2rem;
}

    footer p {
        text-align: left;
    }

    footer a {
        color: var(--text-light);
    }



/*============================
    9. RESPONSIVE
============================*/
@media (max-width: 900px) {
    .container {
        max-width: 98vw;
    }
}

@media (max-width: 768px) {


    .hero {
        height: unset;
        min-height: 100dvh;
        justify-content: flex-start;
        margin-top: unset;
        padding: 1rem;
    }

    .theme-toggle {
        display: none;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    #language-select {
        margin-right: unset;
    }

    .navbar {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        text-align: left;
        height: 80px;
        padding: 1rem 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        height: 100vh;
        top: 80px;
        right: 0;
        left: 0;
        bottom: 0;
        background: var(--light);
        gap: 1.5rem;
        padding: 1.5rem 2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        z-index: 1001;
    }

        .nav-links.open {
            display: flex;
        }

    body.dark .nav-links {
        background: var(--card-bg-dark);
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-content img {
        margin-top: 8rem;
    }

    section {
        padding: 6rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

        .section-title h2 {
            font-size: 2rem;
        }

    .cards-grid {
        grid-template-columns: repeat(1, 1fr);
    }


    #about img {
        width: 100%;
        height: auto;
    }

    .cv-block {
        padding: 0 !important;
        background: unset !important;
    }

        .cv-block img {
            width: 100% !important;
            height: auto;
            margin-bottom: 1rem;
        }
}


.cv-block {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark .cv-block {
    background: var(--card-bg-dark);
    color: var(--text-light);
}

.cv-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

body.dark .cv-block h3 {
    color: var(--secondary);
}

.cv-block h4 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

body.dark .cv-block h4 {
    color: var(--secondary);
    border-color: var(--secondary);
}

.cv-block ul {
    list-style: disc inside;
    margin: 0 0 1rem 0;
    padding-left: 1rem;
}

    .cv-block ul li {
        margin-bottom: 0.5rem;
    }

.cv-block p,
.cv-block a {
    font-size: 1rem;
}

.cv-block a {
    color: var(--primary);
    text-decoration: underline;
}

body.dark .cv-block a {
    color: var(--secondary);
}


.cv-block img {
    width: 300px;
    height: auto;
    margin-bottom: 1rem;
}

/* Dil seçimi dropdown stillemesi */
#language-select {
    padding: 6px 30px 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--secondary);
    background: var(--light) url('data:image/svg+xml;utf8,<svg fill="%234a4e69" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 7l3 3 3-3z"/></svg>') no-repeat right 10px center;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: 18px;
}

body.dark #language-select {
    background-color: var(--dark);
    border-color: var(--primary);
    color: var(--text-light);
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23c9ada7" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 7l3 3 3-3z"/></svg>');
}

#language-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(74, 78, 105, 0.2);
}

body.dark #language-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(201, 173, 167, 0.2);
}
