/* ---------- Kök Değişkenler & Temel Reset ---------- */
:root {
    --bg-1: #0d1b2a;
    --bg-2: #14233b;
    --gradient-start: #233067;
    --gradient-mid: #1e40af;
    --gradient-end: #0f172a;
    --accent: #00d1b2;
    --text: #e8eaf6;
    --danger: #ff2744;
    --card-bg: rgba(255, 255, 255, .02);
}

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

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg-1);
    overflow-x: hidden;
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

.container {
    width: min(90%, 1140px);
    margin-inline: auto
}

.btn-primary {
    display: inline-block;
    padding: .9rem 2.4rem;
    border: 2px solid var(--accent);
    border-radius: 55px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    transition: .3s all;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-1);
    box-shadow: 0 0 10px var(--accent)
}

h2.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.15;
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease
}

.in-view {
    opacity: 1 !important;
    transform: none !important
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 25% 30%, var(--gradient-start) 0%, transparent 55%),
        radial-gradient(circle at 75% 70%, var(--gradient-end) 0%, transparent 55%),
        linear-gradient(120deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    background-size: 200% 200%;
    animation: moveGradient 18s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: saturate(120%) contrast(115%);
}

@keyframes moveGradient {
    0% {
        background-position: 0 0
    }

    50% {
        background-position: 100% 100%
    }

    100% {
        background-position: 0 0
    }
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: .5rem .8rem;
    background: var(--accent);
    color: #000;
    border-radius: 5px;
    z-index: 1000
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(13, 27, 42, .45);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: background .3s ease;
}

header.scrolled {
    background: rgba(13, 27, 42, .85)
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0
}

.logo {
    height: auto;
    width: 200px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1;
}

@media (min-width: 1200px) {
    .logo img {
        height: 3.5rem;
    }
}


nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    font-size: .97rem;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: .25s;
}

nav a:hover {
    color: var(--accent)
}

nav a:hover::after,
nav a.active::after {
    width: 100%
}

.lang-switch {
    margin-left: .5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent)
}

.hamburger {
    display: none;
    width: 28px;
    cursor: pointer
}

.hamburger span {
    display: block;
    height: 3px;
    margin: 5px 0;
    background: var(--text);
    transition: .3s
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
    opacity: 0
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
}

@media(max-width:768px) {
    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        gap: 1.3rem;
        background: rgba(13, 27, 42, .95);
        padding: 2rem 3rem;
        height: calc(100vh - 70px);
        width: 260px;
        transition: .4s;
    }

    nav.open ul {
        right: 0
    }

    .hamburger {
        display: block
    }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative
}

.hero .content {
    transform: translateY(-4vh)
}

.hero .title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent), var(--gradient-start));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 500;
    margin-bottom: 2.7rem;
    opacity: .92
}

#about {
    position: relative;
    padding: 8rem 0 6rem;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 18px;
    padding: 3.5rem 3rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.illustration {
    position: relative;
    isolation: isolate;
    min-height: 260px;
}

.illustration picture,
.illustration img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, .45));
}

.text-block .section-title {
    text-align: left;
    margin-bottom: 1.4rem;
}

.text-block .text {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: .92;
    margin: 0 0 2rem;
}

@media (max-width: 991px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .illustration {
        order: -1;
        max-width: 100%;
        min-height: 0;
        margin: 0 0 2rem;
    }

    .text-block .section-title {
        text-align: center;
    }
}

#team {
    padding: 6rem 0;
    background: var(--bg-2)
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin-inline: auto
}

.member {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, .05);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: transform .3s;
    position: relative;
    overflow: hidden;
}

.member:hover {
    transform: translateY(-6px)
}

.member img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem
}

.member h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: .4rem
}

.member p.role {
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: .92rem
}

.member p {
    font-size: .9rem;
    line-height: 1.6;
    opacity: .85
}

#services {
    padding: 6rem 0
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem
}

.service {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: .3s;
}

.service:hover {
    box-shadow: 0 0 12px rgba(0, 0, 0, .3);
    transform: translateY(-6px)
}

.service svg {
    width: 42px;
    height: 42px;
    fill: var(--accent);
    margin-bottom: 1rem
}

.service h3 {
    font-weight: 600;
    margin-bottom: .6rem;
    font-size: 1.1rem
}

.service p {
    font-size: .9rem;
    line-height: 1.6;
    opacity: .85
}

#announcements {
    padding: 6rem 0;
    background: var(--bg-2)
}

.timeline {
    max-width: 760px;
    margin-inline: auto;
    position: relative
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: translateX(-50%)
}

.entry {
    position: relative;
    width: 50%;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

.entry:nth-child(odd) {
    left: 0;
    text-align: right
}

.entry:nth-child(even) {
    left: 50%
}

.entry::before {
    content: "";
    position: absolute;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    right: -6px;
    /* odd */
}

.entry:nth-child(even)::before {
    left: -6px
}

.entry h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: .4rem
}

.entry time {
    font-size: .82rem;
    opacity: .8
}

.entry p {
    font-size: .9rem;
    line-height: 1.6;
    margin-top: .8rem;
    opacity: .85
}

@media(max-width:768px) {

    .entry,
    .entry:nth-child(even) {
        left: 0;
        width: 100%;
        text-align: left;
        padding-left: 3rem
    }

    .timeline::before {
        left: 20px
    }

    .entry::before,
    .entry:nth-child(even)::before {
        left: 14px;
        right: auto
    }
}

#contact {
    padding: 6rem 0
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin-inline: auto
}

form {
    display: grid;
    gap: 1.4rem
}

form input,
form textarea {
    width: 100%;
    padding: .85rem 1.1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font-family: inherit;
    resize: none;
}

form button {
    justify-self: start
}

.contact-info p {
    margin-bottom: .8rem;
    font-size: .95rem
}

.contact-info a {
    color: var(--accent);
    text-decoration: none
}

@media(max-width:768px) {
    .contact-wrapper {
        grid-template-columns: 1fr
    }
}

footer {
    padding: 2.2rem 0;
    background: #091422;
    text-align: center;
    font-size: .85rem;
    opacity: .8
}

#network {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none
}

/* ============ TEAM KARTLARI ============ */
#team .member{
  text-decoration:none;
  color:inherit;
  display:block;
  position:relative;
  overflow:hidden;
  transition:transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s cubic-bezier(.2,.7,.2,1);
  cursor:pointer;
  border-radius:14px; /* kartın kendisi yuvarlaksa kaldır */
}
#team .member:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

#team .member:hover img{ transform:scale(1.06); }

/* ============ MODAL İSKELET ============ */
.modal{ position:fixed; inset:0; z-index:100; display:none; }
.modal.open{ display:block; }
.modal-backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
}
.modal-dialog{
  position:relative;
  max-width: 720px;
  margin: clamp(24px, 7vh, 72px) auto;
  /* fallback + gelişmiş cam efekti */
  background: var(--card-bg);
  background: color-mix(in oklab, var(--card-bg) 88%, black 12%);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: clamp(16px, 2.2vw, 28px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: modalIn .3s cubic-bezier(.2,.8,.25,1);
  outline:none;
  overflow:auto;
  max-height: calc(100dvh - clamp(48px, 12vh, 140px));
}
@keyframes modalIn{
  from{ transform: scale(.96) translateY(10px); opacity:0; }
  to  { transform: scale(1)   translateY(0);    opacity:1; }
}
body.modal-open{ overflow:hidden; }

/* Kapat butonu */
.modal-close{
  position:absolute; top:.6rem; right:.8rem;
  background:transparent; border:0; color:var(--text);
  font-size:1.8rem; line-height:1; cursor:pointer;
}

/* ============ PROFİL BAŞLIĞI ============ */
.profile{
  display:grid; grid-template-columns:120px 1fr;
  gap:1rem; align-items:center; margin-bottom:1rem;
  position:sticky; top:0; z-index:2;
  padding:8px; border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(to bottom, rgba(0,0,0,.25), transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.profile img{
  border-radius:50%;
  box-shadow:0 0 0 3px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.35);
}
.profile-meta h3{
  margin:0;
  font-size:clamp(1.2rem, 1.2rem + 0.6vw, 1.7rem);
  line-height:1.2;
  letter-spacing:.2px;
}
.profile .role{
  color:var(--accent);
  font-weight:700;
  text-shadow:0 0 1px rgba(0,0,0,.25);
}

/* ============ SOSYAL BUTONLAR (ikonlu) ============ */
.social{ display:flex; gap:.5rem; }
.social .social-btn{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.12); border-radius:10px; text-decoration:none;
  background: rgba(255,255,255,.06);
  color:inherit;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.social .social-btn svg{ width:18px; height:18px; }
.social .social-btn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.social .social-btn:hover{ transform:translateY(-1px); }

/* marka hover’ları */
.social .social-btn[data-brand="linkedin"]:hover{ background:#0A66C2; color:#fff; border-color:transparent; }
.social .social-btn[data-brand="github"]:hover  { background:#fff;    color:#000; border-color:transparent; }
.social .social-btn[data-brand="website"]:hover { background:var(--accent); color:#000; border-color:transparent; }

/* screen-reader yardımcı sınıfı */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ============ İÇERİK DÜZENİ ============ */
.cv-grid{
  display:grid; gap:1.2rem; position:relative;
  grid-template-columns: 1.1fr .9fr;
  align-items:start; padding-block:6px;
}
/* kolon ayırıcı */
.cv-grid::before{
  content:""; position:absolute; left:50%; top:0; bottom:0; width:1px;
  transform: translateX(-.5px);
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.08), transparent);
  pointer-events:none;
}
@media (max-width:720px){
  .cv-grid{ grid-template-columns: 1fr; }
  .cv-grid::before{ display:none; }
}

/* Başlıklar */
.cv-grid section h4{
  margin:0 0 .6rem; font-size:1rem; opacity:.9;
}

/* Hakkında: geniş ve okunur */
.modal-body p{ line-height:1.7; }
.cv-grid section:first-child p{
  padding-left:.8rem;
  border-left:3px solid var(--accent);
  opacity:.95;
}

/* ============ İLETİŞİM ============ */
.contact{
  display:grid; grid-template-columns:max-content 1fr; gap:.4rem .8rem;
}
.contact dt{ opacity:.6; font-weight:600; }
.contact dd{ margin:0; opacity:.95; }
.contact a{ color:inherit; text-decoration: underline dotted; }
.contact a:hover{ text-decoration: underline; }

.contact-actions{ margin-top:.8rem; display:flex; gap:.6rem; }

/* ============ BUTONLAR ============ */
.btn-primary, .btn-ghost{
  padding:.5rem .8rem; border-radius:8px; font-weight:600; text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.btn-primary{ background:var(--accent); color:#000; border:0; }
.btn-primary:hover{ filter:brightness(1.05); transform: translateY(-1px); }
.btn-ghost{ background:transparent; border:1px solid rgba(255,255,255,.14); }
.btn-ghost:hover{ background: rgba(255,255,255,.06); }

/* ============ YETENEKLER ============ */
.skill-chips{
  display:flex; flex-wrap:wrap; gap:.4rem; margin:0 0 .6rem; padding:0; list-style:none;
}
.skill-chips li{
  padding:.3rem .55rem; border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-size:.85rem; font-weight:500;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.skill-chips li:hover{ background: var(--accent); color:#000; transform: translateY(-2px); }

.skill-row{ display:flex; align-items:center; gap:.6rem; margin-bottom:.5rem; }
.skill-row .name{ min-width:120px; opacity:.9; }

.skill-row .bar{
  flex:1; height:10px; border-radius:999px; background:rgba(255,255,255,.08);
  position:relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.skill-row .bar>span{
  position:absolute; left:0; top:0; bottom:0; border-radius:999px;
  width:0%;
  background: linear-gradient(90deg, var(--accent), #00ffc6);
  box-shadow: 0 1px 6px rgba(0,0,0,.25), inset 0 0 0 1px rgba(0,0,0,.05);
  transition: width .45s cubic-bezier(.2,.7,.2,1);
  overflow:hidden;
}
/* parıltılı şerit */
.skill-row .bar>span::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(255,255,255,.35) 0%, transparent 40%, transparent 60%, rgba(255,255,255,.35) 100%);
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer{
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ============ ERİŞİLEBİLİRLİK ============ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition:none !important; }
  .modal-dialog{ animation:none !important; }
}
/* ==== Boyut değişkenleri ==== */
:root{
  --avatar-size: clamp(90px, 12vw, 120px);
  --skill-name-w: clamp(110px, 26vw, 180px);
}

/* ==== Profil görseli asla basılmasın ==== */
.profile img{
  width: var(--avatar-size);
  height: var(--avatar-size);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.35);
}

/* ==== Skill satırı: grid ile sabit kolon + ellipsis ==== */
.skill-row{
  display: grid;
  grid-template-columns: var(--skill-name-w) 1fr; /* sabit ad kolonu + esnek bar */
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

/* uzun adlar tek satırda kalsın, kaydırmasın */
.skill-row .name{
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .92;
}

/* bar yapısı aynı kalsın ama hizalama garantili */
.skill-row .bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.skill-row .bar > span{
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #00ffc6);
  box-shadow: 0 1px 6px rgba(0,0,0,.25), inset 0 0 0 1px rgba(0,0,0,.05);
  transition: width .45s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.skill-row .bar > span::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(255,255,255,.35) 0%, transparent 40%, transparent 60%, rgba(255,255,255,.35) 100%);
  animation: shimmer 2s linear infinite;
}

/* dar ekranda ad kolonu biraz daralsın */
@media (max-width: 520px){
  :root{ --skill-name-w: clamp(90px, 42vw, 150px); }
}

/* parıltı animasyonu (mevcutsa tekrar tanımlamak sorun değil) */
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
/* Canvas arkaplan ise: */
#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh; /* iOS 16+’da dinamik viewport */
  display: block;
  pointer-events: none; /* tıklamaları engellemesin */
}
