/* =========================================
   Onur Acar — Personal Website
========================================= */


/* ---------- Temel ---------- */

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

html {
    scroll-behavior: smooth;
}

:root {
    --background: #09090b;

    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.065);

    --text: #f5f5f7;
    --text-secondary: #92929a;
    --text-muted: #66666f;

    --border: rgba(255, 255, 255, 0.075);

    --tag-background: rgba(255, 255, 255, 0.025);
    --tag-border: rgba(255, 255, 255, 0.055);

    --accent-1: #8b5cf6;
    --accent-2: #4f7cff;

    --glow-1: rgba(139, 92, 246, 0.12);
    --glow-2: rgba(79, 124, 255, 0.035);
    --profile-glow: rgba(113, 91, 246, 0.15);
    --profile-glow-hover: rgba(113, 91, 246, 0.22);
    --accent-soft: rgba(139, 92, 246, 0.08);
    --selection: rgba(139, 92, 246, 0.35);

    --shadow: rgba(0, 0, 0, 0.16);
}


/* ---------- Renk Paletleri ---------- */

body.color-galaxy {
    --accent-1: #8b5cf6;
    --accent-2: #4f7cff;

    --glow-1: rgba(139, 92, 246, 0.12);
    --glow-2: rgba(79, 124, 255, 0.035);
    --profile-glow: rgba(113, 91, 246, 0.15);
    --profile-glow-hover: rgba(113, 91, 246, 0.22);
    --accent-soft: rgba(139, 92, 246, 0.08);
    --selection: rgba(139, 92, 246, 0.35);
}

body.color-gold {
    --accent-1: #f5c451;
    --accent-2: #d89a2b;

    --glow-1: rgba(245, 196, 81, 0.10);
    --glow-2: rgba(216, 154, 43, 0.035);
    --profile-glow: rgba(245, 196, 81, 0.14);
    --profile-glow-hover: rgba(245, 196, 81, 0.20);
    --accent-soft: rgba(245, 196, 81, 0.075);
    --selection: rgba(245, 196, 81, 0.30);
}

body.color-mint {
    --accent-1: #54d7b0;
    --accent-2: #2fb7a0;

    --glow-1: rgba(84, 215, 176, 0.09);
    --glow-2: rgba(47, 183, 160, 0.035);
    --profile-glow: rgba(84, 215, 176, 0.13);
    --profile-glow-hover: rgba(84, 215, 176, 0.19);
    --accent-soft: rgba(84, 215, 176, 0.07);
    --selection: rgba(84, 215, 176, 0.28);
}

body.color-sky {
    --accent-1: #59b9ff;
    --accent-2: #3986ee;

    --glow-1: rgba(89, 185, 255, 0.10);
    --glow-2: rgba(57, 134, 238, 0.035);
    --profile-glow: rgba(89, 185, 255, 0.14);
    --profile-glow-hover: rgba(89, 185, 255, 0.20);
    --accent-soft: rgba(89, 185, 255, 0.075);
    --selection: rgba(89, 185, 255, 0.30);
}


/* ---------- Aydınlık Mod ---------- */

body.light-mode {
    --background: #f5f5f7;

    --surface: rgba(255, 255, 255, 0.68);
    --surface-hover: rgba(255, 255, 255, 0.88);

    --text: #17171a;
    --text-secondary: #68686f;
    --text-muted: #96969d;

    --border: rgba(0, 0, 0, 0.08);

    --tag-background: rgba(0, 0, 0, 0.025);
    --tag-border: rgba(0, 0, 0, 0.055);

    --shadow: rgba(0, 0, 0, 0.08);
}


/* ---------- Body ---------- */

body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 50% -10%,
            var(--glow-1),
            transparent 38%
        ),
        radial-gradient(
            circle at 15% 45%,
            var(--glow-2),
            transparent 32%
        ),
        var(--background);

    color: var(--text);

    -webkit-font-smoothing: antialiased;

    transition:
        background-color 300ms ease,
        color 300ms ease;
}


/* ---------- Yardımcı Butonlar ---------- */

.utility-buttons {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 50;

    display: flex;
    align-items: center;
    gap: 10px;
}

#theme-toggle,
#color-toggle {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        ),
        var(--surface);

    color: var(--text);

    cursor: pointer;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

#theme-toggle {
    font-size: 17px;
}

#color-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

#theme-toggle:hover,
#color-toggle:hover {
    transform: scale(1.06);

    background: var(--surface-hover);

    border-color: var(--border);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 0 22px var(--accent-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

#theme-toggle:active,
#color-toggle:active {
    transform: scale(0.94);
}


/* ---------- Renk Paneli ---------- */

.color-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 154px;

    padding: 9px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.02)
        ),
        var(--surface);

    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);

    box-shadow:
        0 20px 55px var(--shadow),
        0 0 30px var(--accent-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;

    transition:
        opacity 170ms ease,
        transform 170ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 170ms ease;
}

.color-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}

.color-panel-title {
    margin: 2px 7px 7px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.color-option {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 8px;

    border: 0;
    border-radius: 11px;

    background: transparent;
    color: var(--text-secondary);

    font: inherit;
    font-size: 12px;
    font-weight: 500;

    cursor: pointer;
    text-align: left;

    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.color-option:hover {
    background: var(--surface-hover);
    color: var(--text);
    transform: translateX(1px);
}

.color-option.active {
    background: var(--surface-hover);
    color: var(--text);
}

.color-swatch {
    width: 13px;
    height: 13px;

    flex: 0 0 13px;

    border-radius: 50%;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 0 10px currentColor;
}

.color-swatch.galaxy {
    color: #7d72ff;
    background: linear-gradient(135deg, #8b5cf6, #4f7cff);
}

.color-swatch.gold {
    color: #e8ad39;
    background: linear-gradient(135deg, #f5c451, #d89a2b);
}

.color-swatch.mint {
    color: #4ac7a5;
    background: linear-gradient(135deg, #54d7b0, #2fb7a0);
}

.color-swatch.sky {
    color: #4ea6f5;
    background: linear-gradient(135deg, #59b9ff, #3986ee);
}


/* ---------- Ana Konteyner ---------- */

.container {
    width: min(100% - 40px, 620px);

    margin: 0 auto;

    padding: 72px 0 60px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ---------- Profil ---------- */

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


/* ---------- Profil Butonu ---------- */

.profile-button {
    display: block;

    padding: 0;

    border: 0;

    background: none;

    color: inherit;

    cursor: pointer;

    border-radius: 50%;

    -webkit-tap-highlight-color: transparent;
}


/* ---------- Profil Halkası ---------- */

.profile-ring {
    width: 158px;
    height: 158px;

    display: block;

    padding: 2px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--accent-1),
            var(--accent-2)
        );

    box-shadow:
        0 0 28px var(--profile-glow);

    transition:
        box-shadow 300ms ease,
        transform 300ms ease,
        opacity 260ms ease;
}

.profile-button:hover .profile-ring {
    transform: scale(1.015);

    box-shadow:
        0 0 36px var(--profile-glow-hover);
}

.profile-button.is-lightbox-active .profile-ring {
    opacity: 0;
    transform: scale(0.97);
}


/* ---------- Profil Fotoğrafı ---------- */

.profile-ring img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid var(--background);

    background: var(--background);
}


/* ---------- İsim ---------- */

.container h1 {
    margin-top: 20px;

    color: var(--text);

    font-size: 32px;
    font-weight: 650;

    line-height: 1.2;

    letter-spacing: -1.1px;

    text-align: center;
}


/* ---------- Alt Başlık ---------- */

.subtitle {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 15px;
    font-weight: 400;

    line-height: 1.5;

    text-align: center;
}

.subtitle span {
    margin: 0 4px;

    color: var(--text-muted);
}


/* ---------- Sosyal Medya ---------- */

.socials {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 25px;
}

.socials a {
    position: relative;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        ),
        var(--surface);

    color: var(--text);

    text-decoration: none;

    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}


/* ---------- Sosyal İkonları ---------- */

.socials a svg {
    width: 24px;
    height: 24px;

    display: block;

    transition:
        transform 180ms ease;
}


/* ---------- Tooltip ---------- */

.socials a::after {
    content: attr(data-tooltip);

    position: absolute;

    left: 50%;
    bottom: calc(100% + 11px);

    transform:
        translateX(-50%)
        translateY(6px);

    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface-hover);

    color: var(--text);

    font-size: 11px;
    font-weight: 550;

    line-height: 1;

    white-space: nowrap;

    pointer-events: none;

    opacity: 0;

    box-shadow:
        0 10px 30px var(--shadow);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        opacity 170ms ease,
        transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* ---------- Tooltip Hover ---------- */

.socials a:hover::after {
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}


/* ---------- Sosyal Hover ---------- */

.socials a:hover {
    transform: translateY(-4px);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        ),
        var(--surface-hover);

    border-color: rgba(255, 255, 255, 0.12);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.16),
        0 0 24px var(--accent-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.socials a:hover svg {
    transform: scale(1.06);
}

.socials a:active {
    transform: translateY(-1px) scale(0.94);
}


/* ---------- Hakkımda ---------- */

.about-card,
.contact-card {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.018)
        ),
        var(--surface);

    backdrop-filter: blur(26px) saturate(135%);
    -webkit-backdrop-filter: blur(26px) saturate(135%);

    box-shadow:
        0 24px 70px var(--shadow),
        0 0 45px var(--accent-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transition:
        background 300ms ease,
        border-color 300ms ease,
        box-shadow 300ms ease;
}

.about-card {
    margin-top: 38px;
    padding: 27px;
}

.contact-card {
    margin-top: 14px;
    padding: 22px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body.light-mode .about-card,
body.light-mode .contact-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.65),
            rgba(255, 255, 255, 0.35)
        ),
        var(--surface);
}

.about-card h2,
.contact-card h2 {
    color: var(--text);

    font-size: 18px;
    font-weight: 600;

    letter-spacing: -0.3px;
}

.about-card > p,
.contact-card p {
    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.7;
}

.about-card > p {
    margin-top: 10px;
}

.contact-card p {
    margin-top: 6px;
}


/* ---------- Bilgi Kutuları ---------- */

.tags {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 24px;
}

.info-item {
    min-height: 72px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 12px 15px;

    border: 1px solid var(--tag-border);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.01)
        ),
        var(--tag-background);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.info-item:hover {
    background: var(--surface-hover);

    border-color: var(--border);

    transform: translateY(-1px);
}

.info-label {
    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 500;

    line-height: 1.3;
}

.info-item strong {
    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 550;

    line-height: 1.4;
}


/* ---------- İletişim ---------- */

.contact-copy {
    min-width: 0;
}

.contact-link {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 82px;
    padding: 11px 16px;

    border: 1px solid var(--tag-border);
    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.01)
        ),
        var(--tag-background);

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 550;

    text-decoration: none;
    white-space: nowrap;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.contact-link:hover {
    transform: translateY(-2px);

    background: var(--surface-hover);

    border-color: var(--border);

    color: var(--text);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.10),
        0 0 18px var(--accent-soft);
}


/* ---------- Profil Önizleme ---------- */

.profile-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 300ms ease,
        visibility 300ms ease;
}

.profile-lightbox.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.profile-lightbox-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(5, 5, 10, 0.56);

    backdrop-filter: blur(16px) saturate(115%);
    -webkit-backdrop-filter: blur(16px) saturate(115%);

    opacity: 0;

    transition: opacity 320ms ease;
    cursor: pointer;
}

.profile-lightbox.is-visible .profile-lightbox-backdrop {
    opacity: 1;
}

.profile-lightbox-image {
    position: fixed;
    left: 50%;
    top: 50%;

    width: min(82vw, 560px);
    height: min(82vw, 560px);

    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center;

    border-radius: 24px;

    opacity: 1;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    cursor: zoom-out;

    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.40);

    will-change: transform, width, height, border-radius;

    transform:
        translate(-50%, -50%)
        translate(0, 0)
        scale(0);

    transform-origin: center center;

    transition:
        transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
        width 400ms cubic-bezier(0.22, 1, 0.36, 1),
        height 400ms cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 400ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 400ms ease;
}

.profile-lightbox-image.is-expanded {
    transform:
        translate(-50%, -50%)
        translate(0, 0)
        scale(1);
}

body.lightbox-open {
    overflow: hidden;
}


.profile-ring img,
.profile-lightbox-image {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}


/* ---------- Seçim ---------- */

::selection {
    background: var(--selection);
    color: #ffffff;
}


/* ---------- Mobil ---------- */

@media (max-width: 600px) {

    .utility-buttons {
        top: 18px;
        right: 18px;

        gap: 8px;
    }

    #theme-toggle,
    #color-toggle {
        width: 41px;
        height: 41px;
    }

    #color-toggle svg {
        width: 17px;
        height: 17px;
    }

    .container {
        width: min(100% - 32px, 500px);

        padding-top: 62px;
    }

    .profile-ring {
        width: 138px;
        height: 138px;
    }

    .container h1 {
        font-size: 29px;
    }

    .subtitle {
        font-size: 14px;
    }

    .socials {
        gap: 9px;

        margin-top: 26px;
    }

    .socials a {
        width: 46px;
        height: 46px;

        border-radius: 15px;
    }

    .socials a svg {
        width: 22px;
        height: 22px;
    }

    /* Mobilde tooltip yok */

    .socials a::after {
        display: none;
    }

    .about-card {
        margin-top: 36px;

        padding: 23px;

        border-radius: 21px;
    }

    .tags {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;

        margin-top: 20px;
    }

    .info-item {
        min-height: 64px;

        padding: 9px 11px;

        border-radius: 14px;
    }

    .info-label {
        margin-bottom: 3px;

        font-size: 10px;
    }

    .info-item strong {
        font-size: 11.5px;
        line-height: 1.3;
    }

    .contact-card {
        margin-top: 12px;

        padding: 19px 20px;

        flex-direction: column;
        align-items: stretch;

        gap: 15px;

        border-radius: 21px;
    }

    .contact-card p {
        font-size: 13px;
        line-height: 1.6;
    }

    .contact-link {
        width: 100%;

        padding: 11px 13px;

        border-radius: 13px;
    }

    .profile-lightbox-backdrop {
        backdrop-filter: blur(13px) saturate(112%);
        -webkit-backdrop-filter: blur(13px) saturate(112%);
    }

    .profile-lightbox-image {
        width: min(82vw, 460px);
        height: min(82vw, 460px);

        border-radius: 21px;

        transition:
            transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
            width 360ms cubic-bezier(0.22, 1, 0.36, 1),
            height 360ms cubic-bezier(0.22, 1, 0.36, 1),
            border-radius 360ms cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 360ms ease;
    }
}


/* ---------- Küçük Telefonlar ---------- */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 24px);
    }

    .profile-ring {
        width: 128px;
        height: 128px;
    }

    .socials {
        gap: 7px;
    }

    .socials a {
        width: 43px;
        height: 43px;
    }

    .socials a svg {
        width: 21px;
        height: 21px;
    }

    .about-card {
        padding: 20px;
    }

    .contact-card {
        padding: 18px;
    }

    .info-item {
        min-height: 58px;
        padding: 8px 9px;
    }

    .info-label {
        font-size: 9px;
    }

    .info-item strong {
        font-size: 10.5px;
    }
}


/* ---------- Hareket Azaltma ---------- */

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

    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        transition-duration:
            0.01ms !important;
        animation-duration:
            0.01ms !important;
        animation-iteration-count:
            1 !important;
    }
}

html.reduce-motion {
    scroll-behavior: auto;
}
