/* ============== */
/* Didem Gül Portfolio */
/* ============== */

:root{
  --bg: #0b1220;
  --bg-2: #0e182c;
  --card: rgba(255,255,255,.06);
  --card-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted-2: rgba(255,255,255,.55);
  --accent: #19f3ff;
  --accent-2: #00c8ff;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 70% 0%, rgba(25,243,255,.12), transparent 60%),
              radial-gradient(900px 600px at 20% 20%, rgba(0,200,255,.08), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.5;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: -999px;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 16px; top: 16px; }

.section{
  padding: 88px 0;
  position: relative;
}
.section-title{
  font-size: clamp(28px, 3.3vw, 44px);
  margin: 0 0 18px;
  letter-spacing: .2px;
}
.section-title.center{
  text-align: center;
  margin-bottom: 34px;
}

.section-subtitle{
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 46px 0 12px;
  letter-spacing: .2px;
  color: var(--accent);
}
.section-subtitle.center{ text-align: center; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,.62);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner{
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .3px;
}
.brand-dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(25,243,255,.9);
}
.brand-text{ font-size: 18px; }

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-link{
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.nav-link.active{
  color: var(--text);
  background: rgba(25,243,255,.10);
  border: 1px solid rgba(25,243,255,.28);
}
.nav-cta{
  color: #001317;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 35px rgba(0,200,255,.2);
}
.nav-cta:hover{
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #001317;
}

.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.85);
}

.hero{
  padding-top: 64px;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 38px;
  align-items: center;
}
.eyebrow{
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}
.hero-title{
  margin: 0;
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -1px;
  line-height: 1.02;
}
.hero-title .muted{
  color: rgba(255,255,255,.88);
  font-weight: 700;
}
.hero-role{
  margin: 14px 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .3px;
}
.hero-desc{
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 55ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  color: #001317;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 44px rgba(0,200,255,.18);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(0,200,255,.25);
}
.btn-ghost{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(25,243,255,.25);
}

.social-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.social:hover{
  transform: translateY(-1px);
  border-color: rgba(25,243,255,.28);
  background: rgba(25,243,255,.07);
}
.social svg{
  width: 18px; height: 18px;
  fill: currentColor;
}
.social span{ font-size: 13px; }

.hero-media{
  position: relative;
  display: grid;
  place-items: center;
}
.hero-photo{
  width: min(360px, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(25,243,255,.35);
  box-shadow: 0 0 0 8px rgba(25,243,255,.08), 0 30px 80px rgba(0,0,0,.55);
}
.glow-ring{
  position: absolute;
  width: min(390px, 86vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(25,243,255,.35), rgba(0,200,255,.08) 42%, transparent 72%);
  filter: blur(2px);
  box-shadow: 0 0 80px rgba(25,243,255,.18);
}
.hero-fade{
  position: absolute;
  inset: auto 0 -40px 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(11,18,32,.9));
}

/* ABOUT */
.about-card{
  display: grid;
  grid-template-columns: .95fr 1.25fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}
.about-photo{
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(25,243,255,.30);
  box-shadow: 0 0 0 10px rgba(25,243,255,.07);
}
.about-copy .section-title{
  color: var(--accent);
}
.about-text{
  color: var(--muted);
  margin: 0 0 16px;
}
.about-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.ticks{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

/* CARDS / GRIDS */
.grid{
  display: grid;
  gap: 18px;
}
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}
.skills-grid{
  grid-template-columns: repeat(3, 1fr);
}
.skill{
  padding: 18px;
  min-height: 148px;
}
.skill h3{
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: .2px;
}
.skill p{
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 600;
}
.meter{
  height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
}
.meter span{
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 25px rgba(25,243,255,.22);
}

.portfolio-grid{
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.project{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease;
  padding: 0;
}
.project:hover{
  transform: translateY(-2px);
  border-color: rgba(25,243,255,.28);
}
.project img{
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: contain; /* KESİLMESİN */
  background: rgba(0,0,0,.12);
  display: block;
}
.project::after{
  content: "Detay";
  position: absolute;
  inset: auto 14px 14px auto;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 12px;
  color: #001317;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transform: translateY(4px);
  transition: .18s ease;
}
.project:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* MODAL */
.modal{
  width: min(980px, calc(100% - 30px));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background: rgba(11,18,32,.82);
  color: var(--text);
  padding: 0;
  box-shadow: 0 30px 120px rgba(0,0,0,.6);
}
.modal::backdrop{
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
}
.modal-inner{
  padding: 18px;
}
.modal-close{
  position: absolute;
  right: 16px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
}
.modal-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start; /* daha iyi */
}
.modal-image{
  width: 100%;
  height: auto;
  max-height: 70vh;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  object-fit: contain; /* MODAL'DA DA KESİLMESİN */
  background: rgba(0,0,0,.18);
}
.modal-title{
  margin: 0 0 10px;
  font-size: 26px;
  color: var(--accent);
}
.modal-desc{
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
}
.modal-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* CONTACT */
.contact-card{
  display: grid;
  grid-template-columns: 1fr; /* sadece e-posta kaldığı için tek kolon */
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}
.contact-text{
  color: var(--muted);
  margin: 0 0 18px;
}
.contact-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.contact-list{
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.contact-list li{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}
.contact-list span{
  filter: drop-shadow(0 0 18px rgba(25,243,255,.25));
}

.footer{
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(11,18,32,.45);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.68);
  font-weight: 700;
}
.footer-top{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.04);
}

.to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.72);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* RESPONSIVE */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; }
  .about-card{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: repeat(2, 1fr); }
  .modal-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 680px){
  .nav-toggle{ display: inline-flex; }
  .nav{
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(11,18,32,.92);
    padding: 10px;
    box-shadow: 0 30px 90px rgba(0,0,0,.55);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav.open{ display: flex; }
  .nav-link{ justify-content: center; }
  .skills-grid{ grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}

/* Video tabs */
.section-sub{
  margin: 10px auto 0;
  max-width: 72ch;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

.tabs{
  margin-top: 18px;
}

.tab-buttons{
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn{
  flex: 0 0 auto;
  font: inherit;
  color: rgba(255,255,255,.88);
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}

.tab-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(25,243,255,.28);
}

.tab-btn.is-active{
  color: #001317;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

.tab-panel{
  margin-top: 14px;
}

.video-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.video-card{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

.ratio{
  position: relative;
  border-radius: calc(var(--radius) - 10px);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  padding-top: 56.25%; /* 16:9 */
}

.ratio iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-link{
  display: inline-flex;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(25,243,255,.9);
  text-decoration: none;
}

.video-link:hover{
  text-decoration: underline;
}

.video-subsection{
  margin-top: 24px;
}

/* === LANG TOGGLE === */
.lang-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.lang-toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(25,243,255,.28);
  background: rgba(25,243,255,.07);
}
.lang-toggle .flag{ font-size: 16px; line-height: 1; }
.lang-toggle .code{ font-size: 12px; letter-spacing: .6px; }

/* İngilizce’de kart üstü yazı */
html[lang="en"] .project::after{ content: "Details"; }

/* Language Switch (TR/EN) */
.lang-switch{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

.lang-btn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 12px;           /* TR/EN için ideal */
  font-weight: 900;
  letter-spacing: .6px;
  line-height: 1;
  color: rgba(255,255,255,.88);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.lang-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}

.lang-btn.is-active{
  color: #001317;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(0,200,255,.18);
}
