/*
Theme Name: Barış Cansız Portfolio
Description: Responsive personal portfolio theme for Barış Cansız.
Version: 1.1.0
Text Domain: bariscansiz
*/

:root {
    color-scheme: dark;
    --bg: #0b1017;
    --surface: #111923;
    --surface-raised: #151f2b;
    --border: rgba(196, 220, 240, .12);
    --text: #edf5fb;
    --muted: #a6b4c1;
    --accent: #38bdf8;
    --accent-strong: #74d5ff;
    --content-width:  min(100% - 2rem, 76rem);
    --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2.75rem) 0 1.5rem;
    background: radial-gradient(ellipse at 50% 0%, #142332 0, var(--bg) 58rem);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
a { color: var(--accent-strong); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
button { font: inherit; }

.card-container {
    width: var(--content-width);
    margin-inline: auto;
    padding: clamp(1.25rem, 3.6vw, 3rem);
    overflow: clip;
    border: 1px solid var(--border);
    border-radius: clamp(1rem, 2vw, 1.75rem);
    background: linear-gradient(145deg, rgba(20, 30, 42, .97), rgba(14, 21, 30, .97));
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, .35), 0 0 3rem rgba(56, 189, 248, .055);
}
.profile-name { margin: 0; text-align: center; font-size: clamp(2.15rem, 4.5vw, 3.5rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 800; }
.profile-photo-frame { width: clamp(9rem, 13vw, 11rem); height: clamp(9rem, 13vw, 11rem); margin: 1.5rem auto .5rem; overflow: hidden; border: 3px solid var(--accent); border-radius: 50%; background: #eaf7fb; box-shadow: 0 .75rem 2rem rgba(56, 189, 248, .2); }
.profile-photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 27%; transform: scale(1.2); transform-origin: center 30%; }
.profile-title { max-width: 48rem; margin: .75rem auto 1.25rem; color: var(--accent-strong); text-align: center; font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 650; }
.profile-title span { display: inline-block; }
.intro-copy { max-width: 52rem; margin: 0 auto 1.4rem; color: var(--muted); }
.social-links, .action-buttons { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .75rem; }
.social-links { margin: 1.25rem 0 1.5rem; }
.social-links a { display: inline-flex; width: 2.8rem; height: 2.8rem; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.035); color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.social-links a:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(56,189,248,.12); }
.social-links a .fa-linkedin-in { color: #70baff; }
.social-img { display: block; width: 1.35rem; height: 1.35rem; object-fit: contain; }
.bionluk-img { border-radius: .25rem; }
.btn { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; gap: .55rem; padding: .7rem 1.2rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: .94rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #07121a; box-shadow: 0 .4rem 1.4rem rgba(56,189,248,.2); }
.btn-primary:hover { background: #8cddff; }
.btn-secondary { border-color: var(--border); background: rgba(255,255,255,.045); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.toggle-icon { transition: transform .25s ease; }
.card-container:not(.active) .toggle-icon { transform: rotate(180deg); }

.expandable-content { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--border); text-align: left; }
.card-container:not(.active) .expandable-content { display: none; }
.section-title { display: flex; align-items: center; gap: .65rem; margin: clamp(2rem, 4vw, 3rem) 0 1rem; color: var(--accent-strong); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; font-weight: 750; }
.section-title:first-child { margin-top: 0; }
.experience-grid, .education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.info-card { min-width: 0; padding: .9rem .25rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.info-card h3, .info-card h4 { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .35rem .8rem; margin: 0; color: var(--text); font-size: 1rem; line-height: 1.45; }
.info-card h3 span, .info-card h4 span { color: var(--accent-strong); font-size: .82rem; font-weight: 600; }
.sub-title { margin-top: .3rem; color: #d0dbe4; font-size: .9rem; font-weight: 600; }
.info-card ul { margin: .65rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.info-card li { margin: .2rem 0; font-size: .9rem; line-height: 1.55; }
.education-grid .info-card { min-height: 7rem; }
.skills-wrapper { display: flex; flex-wrap: wrap; gap: .55rem; }
.skill-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 99px; background: rgba(255,255,255,.04); color: #e3edf5; font-size: .86rem; }
.icon-ps { color: #31a8ff; font-weight: 800; }.icon-pr { color: #ea77ff; font-weight: 800; }
.skill-badge:nth-child(1) .fa-meta {
    background: linear-gradient(135deg, #0081fb 0%, #00c6ff 50%, #833ab4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.skill-badge:nth-child(2) i { color: #f472b6; }
.skill-badge:nth-child(3) i { color: #fb923c; }
.skill-badge:nth-child(4) i { color: #34d399; }
.skill-badge:nth-child(7) .capcut-brand-icon { color: #f5f7fa; }
.skill-badge:nth-child(8) i { color: #fbbf24; }
.skill-badge .icon-ps, .skill-badge .icon-pr { font-size: 1rem; }
.brand-icon { display: block; width: 1.15rem; height: 1.15rem; flex: 0 0 1.15rem; }
.capcut-brand-icon { width: 1.35rem; height: 1.35rem; flex-basis: 1.35rem; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.filter-btn { display: inline-flex; min-height: 2.65rem; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1px solid var(--border); border-radius: 99px; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; }
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); background: var(--accent); color: #07121a; font-weight: 700; }
#portfolioWrapper { display: none; }
#portfolioWrapper.is-open { display: block; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: start; gap: clamp(.8rem, 1.7vw, 1.25rem); }
.portfolio-card { display: flex; min-width: 0; flex-direction: column; align-items: stretch; }
.portfolio-item { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: .85rem; background: transparent; cursor: zoom-in; line-height: 0; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.portfolio-item:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 .6rem 1.5rem rgba(56,189,248,.14); }
.portfolio-item img, .portfolio-item video { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-caption { align-self: flex-start; margin-top: .5rem; padding: .2rem .65rem; border: 1px solid var(--border); border-radius: 99px; background: rgba(255,255,255,.04); color: var(--muted); font-size: .78rem; }
.portfolio-card.hide { display: none !important; }
.site-footer { width: var(--content-width); margin: 1.3rem auto 0; text-align: center; }
.site-footer p { margin: 0; color: #8292a0; font-size: .8rem; }
.site-footer strong { color: #b1bec9; }
.lightbox-modal { position: fixed; z-index: 10000; inset: 0; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(4,8,12,.96); backdrop-filter: blur(10px); }
.lightbox-modal.active { display: flex; }
.lightbox-box { position: relative; display: flex; max-width: min(92vw, 76rem); max-height: 90vh; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-box img, .lightbox-box video { display: block; max-width: 100%; max-height: 78vh; border: 1px solid var(--border); border-radius: .8rem; object-fit: contain; }
.lightbox-title { margin-top: .75rem; color: var(--accent-strong); font-weight: 650; }
.lb-close { position: absolute; z-index: 2; top: 1.5rem; right: 1.25rem; display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: white; font-family: Arial, sans-serif; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lb-close span { display: block; font-size: 0; }
.lb-close::before, .lb-close::after { position: absolute; width: .95rem; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.lb-close::before { transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-btn, .back-to-top { display: inline-flex; width: 2.9rem; height: 2.9rem; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: rgba(17,25,35,.94); color: white; cursor: pointer; }
.lb-btn { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); }
.lb-prev { left: .5rem; }.lb-next { right: .5rem; }
.lb-btn:hover { background: var(--accent); color: #07121a; }
.back-to-top { position: fixed; z-index: 90; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); border: 0; background: var(--accent); color: #07121a; box-shadow: 0 .35rem 1rem rgba(56,189,248,.3); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); }

@media (min-width: 100rem) { :root { --content-width: min(100% - 4rem, 84rem); } }
@media (max-width: 760px) { .experience-grid, .education-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    :root { --content-width: calc(100% - 1.1rem); }
    body { padding-top: .55rem; }
    .card-container { padding: 1.25rem 1rem; }
    .profile-photo-frame { margin-top: 1rem; }
    .profile-title span { display: block; margin-top: .15rem; }
    .action-buttons { flex-direction: column; }
    .action-buttons .btn { width: min(100%, 22rem); }
    .expandable-content { margin-top: 1.5rem; padding-top: 1.25rem; }
    .info-card h3, .info-card h4 { align-items: flex-start; flex-direction: column; }
    .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .lb-close { top: 1.5rem; right: 1.25rem; }
    .brand-caption { font-size: .72rem; }
    .lb-prev { left: .25rem; }.lb-next { right: .25rem; }
    .lb-btn { width: 2.5rem; height: 2.5rem; }
}
@media (max-width: 380px) { .portfolio-grid { grid-template-columns: 1fr; } .filter-btn { padding-inline: .7rem; font-size: .83rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Kart görünümünü ve portre çerçevesini geri yükle */
.profile-photo-frame {
    display: block;
    width: clamp(9rem, 13vw, 11rem);
    height: clamp(9rem, 13vw, 11rem);
    margin: 1.5rem auto .5rem;
    overflow: hidden;
    border: 3px solid var(--accent);
    border-radius: 50%;
    background: #eaf7fb;
    box-shadow: 0 .75rem 2rem rgba(56, 189, 248, .2);
}

.profile-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 0;
    transform: scale(1.15);
    transform-origin: center center;
}

/* Deneyim tarihlerini tek akışta, açık giriş/ayrılış bilgisiyle göster */
.experience-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 58rem;
    margin-inline: auto;
    gap: .8rem;
}

.education-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 58rem;
    margin-inline: auto;
    gap: .8rem;
}

.experience-dates {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .85rem;
    color: var(--accent-strong);
    font-size: .82rem;
    font-weight: 600;
    text-align: left;
}

.experience-dates time { white-space: nowrap; }

@media (max-width: 600px) {
    .experience-dates { gap: .2rem .65rem; font-size: .78rem; }
    .experience-dates time { white-space: normal; }
}

.info-card {
    min-width: 0;
    padding: clamp(1rem, 1.8vw, 1.35rem);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: .85rem;
    background: rgba(5, 11, 17, .38);
}

.latest-experience {
    grid-column: 1 / -1;
    border-color: rgba(56, 189, 248, .28);
    border-left: 4px solid var(--accent);
    border-radius: .85rem;
    background: linear-gradient(110deg, rgba(56, 189, 248, .12), rgba(5, 11, 17, .4));
}

.experience-highlight {
    display: inline-block;
    margin-bottom: .55rem;
    padding: .2rem .65rem;
    border: 1px solid rgba(56, 189, 248, .28);
    border-radius: 99px;
    color: var(--accent-strong);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .035em;
}
