:root {
    --accent: #7c5cff;
    /* Sitenin ana rengi — istediğin renkle değiştir */
    --bg: #f6f6f9;
    --surface: #ffffff;
    --surface-hover: #ffffff;
    --text: #16161d;
    --muted: #5d5d6e;
    --border: rgba(20, 20, 40, 0.08);
    --shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 4px 16px rgba(20, 20, 40, 0.05);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d0d12;
        --surface: #17171f;
        --surface-hover: #1d1d27;
        --text: #ededf3;
        --muted: #9a9aab;
        --border: rgba(255, 255, 255, 0.07);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0d0d12;
    --surface: #17171f;
    --surface-hover: #1d1d27;
    --text: #ededf3;
    --muted: #9a9aab;
    --border: rgba(255, 255, 255, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Arka plan ışıkları */
.bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg span {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.18;
}

.bg span:first-child {
    top: -180px;
    left: -120px;
}

.bg span:last-child {
    bottom: -200px;
    right: -140px;
    opacity: 0.12;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 72px 16px 40px;
}

/* Tema butonu */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: 16px;
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: rotate(-15deg) scale(1.05);
}

/* Profil */
.profile {
    text-align: center;
    animation: fadeUp 0.6s ease both;
}

.avatar {
    width: 112px;
    height: 112px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #ff7ab6));
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px color-mix(in srgb, var(--accent) 45%, transparent);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: clamp(26px, 6vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.title {
    color: var(--accent);
    font-weight: 600;
    margin-top: 2px;
}

.location {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

.location i {
    margin-right: 4px;
}

.bio {
    color: var(--muted);
    margin: 16px auto 0;
    max-width: 480px;
}

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

.tags li {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

/* Linkler */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.links li {
    animation: fadeUp 0.5s ease both;
}

.link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.link:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    background: var(--surface-hover);
}

.link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.link-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 19px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    transition: background 0.2s, color 0.2s;
}

.link:hover .link-icon {
    background: var(--accent);
    color: #fff;
}

.link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.link-label {
    font-weight: 600;
}

.link-note {
    font-size: 13px;
    color: var(--muted);
}

.link-arrow {
    color: var(--muted);
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s;
}

.link:hover .link-arrow {
    opacity: 1;
}

/* Projeler */
.projects-section {
    margin-top: 48px;
}

.projects-section[hidden] {
    display: none;
}

.projects-section h2 {
    font-size: 18px;
    margin-bottom: 14px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.project {
    display: block;
    height: 100%;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s;
}

.project:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.project h3 {
    font-size: 15px;
}

.project p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 56px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}