/* ===================================================
   CSS DEĞİŞKENLERİ (Custom Properties)
   ===================================================
   Profesyonel, sade ve şık bir renk paleti.
   Slate / Ivory / Soft navy kombinasyonu.
   =================================================== */
:root {
    /* Ana Renkler - Profesyonel slate paleti */
    --primary: #5b7fa6;          /* Soft steel blue */
    --primary-light: #8aafd4;    /* Açık mavi */
    --primary-dark: #3d5e82;     /* Koyu mavi */
    --secondary: #7c8fa6;        /* Muted slate */
    --accent: #c8b89a;           /* Warm sand */

    /* Arka Plan Renkleri */
    --bg-main: #f8f6f3;          /* Warm ivory */
    --bg-alt: #f2f0ed;           /* Slightly darker ivory */
    --bg-card: rgba(255, 255, 255, 0.72);

    /* Metin Renkleri */
    --text-dark: #1e2a38;        /* Near-black navy */
    --text-medium: #4a5a6a;      /* Mid slate */
    --text-light: #8a9bac;       /* Light slate */

    /* Gölge ve Efektler */
    --shadow-soft: 0 4px 20px rgba(60, 80, 100, 0.08);
    --shadow-hover: 0 8px 32px rgba(60, 80, 100, 0.14);
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(255, 255, 255, 0.75);

    /* Geçiş Süresi */
    --transition: 0.3s ease;

    /* Yuvarlak Köşe Yarıçapı */
    --radius: 14px;
    --radius-sm: 8px;
}

/* ===================================================
   TEMEL SIFIRLAMA (Reset) & GLOBAL STİLLER
   =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================================================
   GLASSMORPHISM KART STİLİ
   =================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-soft);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ===================================================
   CONTAINER (İÇ DÜZEN)
   =================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================================
   NAVİGASYON BARI (MOBILE BASE)
   =================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(248, 246, 243, 0.93);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-logo .dot {
    color: var(--primary);
    font-size: 1.9rem;
}

/* MENÜ LİNKLERİ - MOBİL (Varsayılan olarak kapalı/Yandan açılan) */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 270px;
    height: 100vh;
    background: rgba(248, 246, 243, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 80px 28px 30px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -6px 0 28px rgba(0,0,0,0.06);
    list-style: none;
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: block;
}

.nav-links a:hover {
    color: var(--primary-dark);
    background: rgba(91, 127, 166, 0.09);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* DİL DEĞİŞTİRİCİ */
.lang-toggle {
    background: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(91, 127, 166, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-medium);
    transition: all var(--transition);
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.lang-active {
    color: var(--primary-dark);
    font-weight: 700;
}

.lang-inactive {
    color: var(--text-light);
}

/* HAMBURGER MENÜ (Mobil Varsayılan) */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001; /* Menü üzerinden her zaman basılabilir olsun */
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ===================================================
   HERO BÖLÜMÜ (MOBILE BASE)
   =================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 60px;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
}

.shape-1 {
    width: 420px;
    height: 420px;
    background: var(--primary-light);
    top: -120px;
    right: -60px;
    animation: float 9s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 80px;
    left: -80px;
    animation: float 11s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(18px, -18px) scale(1.04); }
    66%       { transform: translate(-10px, 14px) scale(0.96); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Mobil (Alt alta) */
    text-align: center;     /* Mobil (Ortalı) */
    gap: 24px;
    max-width: 1100px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Mobil (Ortalı) */
    text-align: center;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; /* Mobil varsayılan boyut */
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease 0.2s both;
    background: linear-gradient(130deg, var(--text-dark) 40%, var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 36px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.typing-icon {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hero-title {
    font-size: 1rem; /* Mobil base */
    color: var(--primary);
    font-weight: 500;
}

.cursor {
    color: var(--primary);
    font-weight: 300;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-socials {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease 0.8s both;
    justify-content: center; /* Mobil ortalı */
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(91, 127, 166, 0.25);
    color: var(--primary-dark);
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(91, 127, 166, 0.35);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 34px;
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    animation: fadeInUp 0.8s ease 1s both;
    box-shadow: 0 4px 18px rgba(61, 94, 130, 0.28);
}

.hero-cta:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(61, 94, 130, 0.35);
}

.hero-image {
    flex-shrink: 0;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.profile-avatar {
    width: 180px; /* Mobil */
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    display: block;
    margin: 0 auto;
}

/* AŞAĞI KAYDIR GÖSTERGESİ */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    transition: opacity 0.4s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--secondary);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.6;
}

.wheel {
    width: 3px;
    height: 7px;
    background: var(--secondary);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   BÖLÜM STİLLERİ (MOBILE BASE)
   =================================================== */
.section {
    padding: 70px 0; /* Mobil aralığı */
    position: relative;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 1.55rem; /* Mobil base */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.section-line {
    width: 48px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 50px;
    border-radius: 2px;
    opacity: 0.7;
}

/* ===================================================
   SCROLL ANİMASYONU
   =================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================
   HAKKIMDA BÖLÜMÜ (MOBILE BASE)
   =================================================== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.about-card {
    padding: 26px 22px; /* Mobil padding */
    display: flex;
    flex-direction: column; /* Mobil (Dikey hizalı) */
    align-items: center;
    text-align: center;
    gap: 24px;
}

.about-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.about-text {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr; /* Mobil: Alt alta 1 sütun */
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ===================================================
   DENEYİM - TİMELINE (MOBILE BASE)
   =================================================== */
.timeline {
    position: relative;
    padding-left: 28px; /* Mobil girinti */
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), transparent);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px; /* Mobil konum */
    top: 28px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-alt);
    box-shadow: 0 0 0 3px rgba(91,127,166,0.2);
    z-index: 1;
}

.timeline-content {
    padding: 18px 20px; /* Mobil padding */
}

.timeline-header {
    display: flex;
    flex-direction: column; /* Mobil - alt alta */
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.timeline-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.timeline-date {
    font-size: 0.78rem;
    color: var(--primary-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(91, 127, 166, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
}

.timeline-company {
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ===================================================
   EĞİTİM KARTLARI (MOBILE BASE)
   =================================================== */
.education-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.edu-card {
    padding: 22px 18px; /* Mobil padding */
    display: flex;
    flex-direction: column; /* Mobil */
    align-items: center;    /* Mobil */
    text-align: center;     /* Mobil */
    gap: 22px;
}

.edu-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    opacity: 0.88;
}

.edu-info h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 2px;
}

.edu-info h4 {
    font-size: 0.88rem;
    color: var(--text-medium);
    font-weight: 400;
    margin-bottom: 6px;
}

.edu-date {
    font-size: 0.78rem;
    color: var(--primary-dark);
    font-weight: 500;
    background: rgba(91, 127, 166, 0.1);
    padding: 3px 12px;
    border-radius: 50px;
    display: inline-block;
}

/* ===================================================
   YETENEKLER KARTLARI (MOBILE BASE)
   =================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobil 1 sütun */
    gap: 22px;
}

.skill-category {
    padding: 30px;
    text-align: center;
}

.skill-cat-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin: 0 auto 14px;
    opacity: 0.88;
}

.skill-category h3 {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    padding: 5px 14px;
    background: rgba(91, 127, 166, 0.09);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(91, 127, 166, 0.18);
    transition: all var(--transition);
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 127, 166, 0.25);
}

/* ===================================================
   İLETİŞİM BÖLÜMÜ (MOBILE BASE)
   =================================================== */
.contact-content {
    text-align: center;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Mobil */
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-intro-icon {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobil 1 sütun */
    gap: 18px;
}

.contact-card {
    padding: 26px 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin: 0 auto 12px;
    opacity: 0.88;
    transition: all var(--transition);
}

.contact-card:hover .contact-icon {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 127, 166, 0.3);
}

.contact-card h3 {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 0.8rem;
    color: var(--text-medium);
    word-break: break-all;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    padding: 28px 0;
    text-align: center;
    background: var(--bg-alt);
    border-top: 1px solid rgba(91, 127, 166, 0.1);
}

.footer p {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ===================================================
   MOBILE-FIRST MEDYA ONSORGULARI (MIN-WIDTH)
   Büyük ekranlar için (Tablet ve Masaüstü) 
   =================================================== */

/* Tablet & Küçük Masaüstü (768px ve üzeri) */
@media (min-width: 768px) {
    /* Navbar yatay oluyor, hamburger menü kayboluyor */
    .hamburger {
        display: none;
    }
    
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        background: transparent;
        padding: 0;
        box-shadow: none;
        backdrop-filter: none;
        gap: 4px;
    }

    .nav-links a {
        font-size: 0.88rem;
        padding: 7px 15px;
        border-radius: 50px;
    }

    /* Hero bölümü yan yana (2 kolonlu) */
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 48px;
    }

    .hero-text {
        align-items: flex-start;
        text-align: left;
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-socials {
        justify-content: flex-start;
    }

    .profile-avatar {
        width: 300px;
        margin: 0;
    }

    /* Padding artıyor */
    .section {
        padding: 100px 0;
    }

    .section-title {
        font-size: 1.9rem;
    }

    /* Bilgi İstatistik Kartları 3 Sütun */
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 36px 40px;
    }

    /* Timeline Yapısı Genişliyor */
    .timeline {
        padding-left: 40px;
    }

    .timeline-dot {
        left: -36px;
    }

    .timeline-content {
        padding: 26px 30px;
    }

    .timeline-header {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Eğitim ve Yetenek / İletişim Kartları Gridleri */
    .edu-card {
        flex-direction: row;
        text-align: left;
        padding: 26px 30px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-intro {
        flex-direction: row;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
