/* =========================
   TEMEL RENK PALETİ (FULL DARK)
   ========================== */

:root {
    --bg: #020617;
    --bg-alt: #050816;

    /* Accent'i biraz daha morumsu ve sıcak yaptık */
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.14);

    --text: #f9fafb;
    --muted: #9ca3af;

    /* Kart arka planını biraz açtık */
    --card-bg: #020617;

    --border: #1e293b;
    --radius: 16px;
    color-scheme: dark;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, #1f2937 0, #020617 55%),
        radial-gradient(circle at 100% 100%, #020617 0, #000 65%);
    background-attachment: fixed;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.65;
}


/* =========================
   GENEL LAYOUT
   ========================== */

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
}

.section {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    scroll-margin-top: 80px;
}

.section-narrow {
    max-width: 1000px;
}

.main-content {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

/* =========================
   TOP NAVBAR
   ========================== */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(
        to right,
        rgba(15,23,42,0.92),
        rgba(15,23,42,0.9)
    );
    border-bottom: 1px solid rgba(148,163,184,0.25);
    box-shadow: 0 12px 40px rgba(15,23,42,0.85);
    transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}


.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-logo a {
    color: var(--text);
    text-decoration: none !important;
    font-weight: 600;
    letter-spacing: 0.03em;
}


.nav-logo a:hover {
    color: var(--accent);
    text-decoration: none !important;
}

.nav-links a {
    margin-left: 1rem;
    font-size: .9rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.22s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent);
    outline: none;
}

/* =========================
   HERO
   ========================== */
.avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 30% 20%, rgba(139,92,246,0.4), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(37,99,235,0.35), transparent 60%),
        #020617;
    box-shadow:
        0 18px 45px rgba(15,23,42,0.85),
        0 0 0 1px rgba(148,163,184,0.35);
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
}


.hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero h1 {
    font-size: 2.4rem;
    margin: 0 0 .2rem;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    color: var(--muted);
    font-weight: 500;
}

.summary {
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: .75rem;
}

.location {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}

/* =========================
   BUTONLAR
   ========================== */

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: .55rem 1.3rem;
    border: 1px solid var(--accent);
    text-decoration: none;
    font-size: .9rem;
    cursor: pointer;
    background: none;
    color: var(--accent);
    transition:
        background 0.23s,
        color 0.18s,
        border-color 0.19s,
        box-shadow 0.22s,
        transform 0.18s;
}

.btn.primary {
    background: var(--accent);
    color: white;
}

.btn.ghost {
    background: transparent;
    color: var(--accent);
}

.btn.small {
    padding: .4rem .9rem;
    font-size: .8rem;
}

.btn:hover,
.btn:focus {
    background: var(--accent-soft);
    color: var(--accent);
    transform: translateY(-2px) scale(1.025);
    box-shadow: 0 3px 18px 0 rgba(99,102,241,0.09);
    border-color: var(--accent);
    outline: none;
}

.btn.primary:hover,
.btn.primary:focus {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.socials a {
    margin-right: .8rem;
    font-size: .9rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s;
}

.socials a:hover,
.socials a:focus {
    color: var(--accent);
    outline: none;
}

.hero-avatar {
    flex: 0 0 auto;
}

.avatar-circle {
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #4f46e5, #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 2px 22px 0 rgba(99,102,241,0.07);
    transition: box-shadow 0.18s;
}

/* =========================
   TECH STRIP – MARQUEE
   ========================== */

.tech-strip {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 0;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px solid var(--border);
}

.tech-track {
    display: flex;
    width: fit-content;
    animation: techMarquee 28s linear infinite;
}

.tech-items {
    display: flex;
    gap: 1.5rem;
    padding-right: 1.5rem;
}

.tech-pill {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition:
        transform 0.18s,
        box-shadow 0.18s,
        border-color 0.18s;
}

.tech-pill img {
    width: 100%;
    height: 100%;
    padding: 6px;
    box-sizing: border-box;
    object-fit: contain;
    display: block;
}

.tech-pill:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

@keyframes techMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================
   GENEL SECTION / CARD STİLLERİ
   ========================== */

section {
    margin-top: 2.5rem;
}

section h3,
.section-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card-list {
    display: grid;
    gap: 1rem;
}

.card {
    width: 100%;
    max-width: 900px;
    margin: 2.2rem auto;
    padding: 2.3rem 2.6rem;
    background:
        radial-gradient(circle at top left, #0b1120 0, #020617 85%);
    border-radius: var(--radius);
    border: 1px solid rgba(148,163,184,0.24);
    line-height: 1.8;
    font-size: 1.03rem;
    box-shadow:
        0 24px 60px rgba(15,23,42,0.9),
        0 0 0 1px rgba(15,23,42,0.9) inset;
    transition:
        border-color 0.19s,
        box-shadow 0.21s,
        transform 0.17s;
}


.card h1,
.card h2,
.card h3,
.card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.1rem;
    max-width: 75ch; /* okuma genişliği */
}

/* Blog içeriği: satır sonlarını koru */
.post-content {
    margin-top: 1.5rem;
    white-space: pre-line;
}

.post-title {
    font-size: 2.1rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
}

.post-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}



.card:hover,
.card:focus-within {
    border-color: rgba(139, 92, 246, 0.9);
    box-shadow:
        0 26px 70px rgba(15,23,42,0.95),
        0 0 0 1px rgba(139,92,246,0.35) inset;
    transform: translateY(-4px);
    outline: none;
}


.muted {
    color: var(--muted);
    font-size: .85rem;
}

.small {
    font-size: .8rem;
}

/* Chipler */

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(99,102,241,0.4);
    font-size: .85rem;
    transition:
        border-color 0.15s,
        box-shadow 0.18s,
        transform 0.15s;
}

.chip:hover,
.chip:focus {
    border-color: var(--accent);
    box-shadow: 0 2px 12px 0 rgba(99,102,241,0.08);
    transform: translateY(-2px) scale(1.025);
    outline: none;
}

.chip small {
    color: var(--muted);
}

/* =========================
   PROJELER
   ========================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.2rem;
    border-radius: 16px;
    transition:
        border-color 0.19s,
        box-shadow 0.21s,
        transform 0.17s;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-6px) scale(1.014);
    border-color: #64748b;
    box-shadow: 0 7px 30px 0 rgba(99,102,241,0.09);
    outline: none;
}

.project-header h3 {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.15rem;
}

.project-desc {
    margin: 0.8rem 0;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.4rem;
}

.project-btn {
    display: inline-block;
    margin-top: 0.5rem;
    background: #1d4ed8;
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    transition:
        background 0.18s,
        box-shadow 0.19s,
        transform 0.16s;
    border: none;
}

.project-btn:hover,
.project-btn:focus {
    background: #3b82f6;
    box-shadow: 0 4px 14px 0 rgba(59,130,246,0.14);
    transform: translateY(-2px) scale(1.03);
    outline: none;
}

.project-row {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1rem 1.2rem;
    margin-top: 1rem;
    transition:
        border-color 0.18s,
        box-shadow 0.19s,
        transform 0.15s;
}

.project-row:hover,
.project-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 4px 18px 0 rgba(99,102,241,0.07);
    transform: translateY(-2px);
    outline: none;
}

.project-row h3 {
    margin: 0 0 0.4rem;
    color: #e2e8f0;
    font-size: 1rem;
}

.project-row p {
    margin: 0.2rem 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.project-tech {
    font-size: 0.8rem;
    color: #64748b;
}

.project-row-actions {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.project-btn.secondary {
    background: #111827;
    border: 1px solid #374151;
}

.project-btn.secondary:hover,
.project-btn.secondary:focus {
    background: #1f2937;
    border-color: var(--accent);
}

/* =========================
   BLOG KARTLARI (LİSTE)
   ========================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-top: 1.3rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1.1rem 1.2rem;
    transition:
        border-color 0.19s,
        box-shadow 0.22s,
        transform 0.15s;
}

.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-4px) scale(1.01);
    border-color: #475569;
    box-shadow: 0 3px 14px 0 rgba(99,102,241,0.08);
    outline: none;
}

.blog-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: #e5e7eb;
}

.blog-meta {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.blog-summary {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.blog-link {
    font-size: 0.85rem;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.17s, text-decoration 0.18s;
}

.blog-link:hover,
.blog-link:focus {
    text-decoration: underline;
    color: var(--accent);
    outline: none;
}

/* =========================
   SOSYAL LİNKLER
   ========================== */

.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.2rem;
}

.social-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid #1f2937;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
    text-decoration: none;
    transition:
        border-color 0.18s,
        box-shadow 0.19s,
        color 0.19s,
        transform 0.16s;
}

.social-item img {
    width: 20px;
    height: 20px;
}


::selection {
    background: rgba(139,92,246,0.35);
    color: #f9fafb;
}

a {
    color: #60a5fa;
    text-decoration: none;
}



/* =========================
   İLETİŞİM BÖLÜMÜ
   ========================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.contact-item h4 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.contact-item .btn {
    margin-top: 0.5rem;
}



a:hover,
a:focus {
    color: var(--accent);
    text-decoration: underline;
}


.social-item:hover,
.social-item:focus {
    border-color: #3b82f6;
    color: var(--accent);
    transform: translateY(-2px) scale(1.035);
    box-shadow: 0 3px 16px 0 rgba(99,102,241,0.07);
    outline: none;
}

/* =========================
   FOOTER
   ========================== */

.footer {
    border-top: 1px solid var(--border);
    padding: 1rem 0 2rem;
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
}

/* =========================
   RESPONSIVE
   ========================== */

@media (max-width: 720px) {
    .hero-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .hero {
        padding-top: 1.5rem;
    }

    .card {
        padding: 1.5rem 1.4rem;
        margin: 1.2rem auto;
    }
}
