/* ———————————————————————————————
   Design Tokens
——————————————————————————————— */
:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --ink:#101014;
  --muted:#8b8b92;
  --border:#e7e7ea;
  --focus:#a7a7a7;
  --proj: #18181a;
  --btn-01: #e9e9ea;
  --btn-01-hover: #e9e9ea;
  --link: color-mix(in oklab, #767680 12%, transparent);
  --radius:0px;           /* global radius 0 */
  --pad:28px;
  --measure:80ch;
  --tile: color-mix(in oklab, var(--surface) 92%, var(--ink) 8%);

  --gyro-angle: 160deg;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#121213; /* 0b0b0c */
    --surface:#121213;
    --ink:#e9e9ec;
    --muted:#a6a6ad;
    --border:#242428;
    --focus:#a7a7a7;
    --proj: #18181a;
    --btn-01: #18181a;
    --btn-01-hover: #4c4c52;
    --link: color-mix(in oklab, #767680 24%, transparent);
    --tile: color-mix(in oklab, var(--surface) 94%, var(--ink) 6%);
  }
}

/* ———————————————————————————————
   Base Reset
——————————————————————————————— */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  letter-spacing:-0.01em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg,video{ display:block; max-width:100%; }



/* ———————————————————————————————
   Layout
——————————————————————————————— */
.viewport{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:0;
  position:relative;
  z-index:1;
}
.sheet{
  width:min(920px,92vw);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:var(--pad);
  padding-top:2%;
  max-width:var(--measure);
  margin-inline:auto;
}
.sheet > *{ max-width:var(--measure); }

/* Başlık + dil toggle satırı */
.sheet-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:.6rem;
}

.sheet-header h1{
  margin:0;                 /* default bottom margin'ı kaldır */
  line-height:1.1;
}



/* ———————————————————————————————
   Typography
——————————————————————————————— */
.meta{ color:var(--muted); font-size:.86rem; margin-bottom:.25rem; }
.h1,h1{ font-size:clamp(1.5rem,1.1rem + 1vw,1.75rem); margin:0 0 .6rem; font-weight:600; }
.h2,h2{ font-size:1.25rem; margin:1.6rem 0 1rem; font-weight:600; }
.p,p{ line-height:1.7; margin:0 0 1rem; }
ul{ padding-left:1.1rem; margin:0 0 .8rem; }
li{ margin:.25rem 0; }

/* ———————————————————————————————
   Rules, Links, Focus
——————————————————————————————— */
hr{ border:0; border-top:1px solid var(--border); margin:1.4rem 0; }
a{ color:inherit; text-decoration-color:color-mix(in oklab,currentColor 18%,transparent); text-underline-offset:2px; }
a:hover{ text-decoration-color:currentColor; }
:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; border-radius:6px; }

/* ———————————————————————————————
   Background decoration (desktop only)
——————————————————————————————— */
.bg-container{
  position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.08;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(10,132,255,.10), transparent),
    radial-gradient(600px 400px at 20% 80%, rgba(0,0,0,.06), transparent);
}
/* Mobilde ARKA PLAN KONTEYNERİ TAMAMEN KAPALI */
@media (hover:none) and (pointer:coarse), (max-width:1024px){
  .bg-container{ display:none !important; background:none !important; }
}

/* ———————————————————————————————
   Sıralı fade-in
——————————————————————————————— */
.reveal{ opacity:0; transform:translateY(10px); }
.is-loaded .reveal{ animation:fadeUp .6s ease forwards; }
@keyframes fadeUp{ to{ opacity:1; transform:none; } }

.section-header{
  display:flex;
  align-items:center;
  gap:8px;
  margin:1.6rem 0 1rem;
}

.section-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:1.25rem;
  font-weight:600;
  margin:0; /* margin artık wrapper’da */
}

.section-icon{
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid transparent;
  display:grid;
  place-items:center;

  background:
    /* iç yüzey */
    linear-gradient(var(--proj), var(--proj)) padding-box,
    /* dış gradient border */
    linear-gradient(var(--gyro-angle),
      color-mix(in oklab, var(--proj-g1) var(--proj-border-alpha), transparent),
      color-mix(in oklab, var(--proj-g2) var(--proj-border-alpha), transparent) 55%,
      color-mix(in oklab, var(--proj-g3) var(--proj-border-alpha), transparent)
    ) border-box;

  font-size:.9rem;
  color:color-mix(in oklab, var(--ink) 74%, transparent);
  box-shadow:0 0 0 1px color-mix(in oklab, var(--proj) 40%, transparent);
}

.section-cta{
   margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;

  font-size:.86rem;
  font-weight:500;
  text-decoration:none;

  padding:4px 10px;
  border-radius:999px;

  background:color-mix(in oklab, var(--surface) 94%, transparent);
  color:color-mix(in oklab, var(--muted) 90%, transparent);

  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.section-cta i{
  font-size:.8rem;
  line-height:1;
}

.section-cta:hover,
.section-cta:focus-visible{
  color:var(--focus);
}


/* ———————————————————————————————
   Projeler — iOS tarzı, yumuşak köşe + gradient border
——————————————————————————————— */
.proj-list{
  list-style:none;
  padding:0;
  margin:.2rem 0 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Işık/Koyu’yu gözeten degrade renkler */
:root{
  --proj-r: 100px;                 /* köşe yarıçapı */
  --proj-g1: color-mix(in oklab, #ffffff 50%, transparent);
  --proj-g2: color-mix(in oklab, #525268 0%, transparent);
  --proj-g3: color-mix(in oklab, #ffffff 50%, transparent);
  --proj-border-alpha: 32%;       /* sınırın şeffaflığı */
}
@media (prefers-color-scheme: dark){
  :root{
    --proj-border-alpha: 50%;     /* dark’ta biraz daha belirgin */
  }
}

.btn-01{
  position:relative;
  display:flex;            /* ikon, başlık ve tag aynı satırda */
  align-items:center;
  gap:12px;
  text-decoration: none;  
  border-radius:var(--proj-r);
  padding:14px 25px 14px 20px; 
  isolation:isolate;
  border:1px solid transparent;
  background:
    /* iç yüzey */
    linear-gradient(var(--btn-01), var(--btn-01)) padding-box,
    /* dış gradient border */
    linear-gradient(var(--gyro-angle),
      color-mix(in oklab, var(--proj-g1) var(--proj-border-alpha), transparent),
      color-mix(in oklab, var(--proj-g2) var(--proj-border-alpha), transparent) 55%,
      color-mix(in oklab, var(--proj-g3) var(--proj-border-alpha), transparent)
    ) border-box;
  transition:.2s;
}
.btn-01:hover,
.btn-01:focus-within{
  background-color: var(--btn-01-hover);
  box-shadow: 0 2px 18px rgba(0,0,0,.2);
  transition: .2s;
}
.btn-01 h3{
  font-size:1rem;
  margin:0 0 .1rem;
  font-weight:400;
}
.btn-01 p{ display:none !important; }

.link{
  position:absolute;
  top:50%; 
  right:8px;
  transform:translateY(-50%) translateX(4px);
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  opacity:0;
  pointer-events:none;     /* tıklama tüm butona gitsin */
  color: color-mix(in oklab, var(--ink) 48%, transparent);
  transition:opacity .22s ease, transform .22s ease, color .2s ease;
  background:transparent;
  border: none;
}

/* Soldaki kare ikon alanı */
.proj-icon{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:12px;
  overflow:hidden;

  border:1px solid transparent;
  background:
    /* iç yüzey */
    linear-gradient(var(--proj), var(--proj)) padding-box,
    /* dış gradient border */
    linear-gradient(var(--gyro-angle),
      color-mix(in oklab, var(--proj-g1) var(--proj-border-alpha), transparent),
      color-mix(in oklab, var(--proj-g2) var(--proj-border-alpha), transparent) 55%,
      color-mix(in oklab, var(--proj-g3) var(--proj-border-alpha), transparent)
    ) border-box;
}

.proj-icon img{
  width:100%;
  height:100%;
  object-fit:cover;                 /* foto kareyi güzel doldursun */
  display:block;
}

/* Sağ taraftaki tag – butonla aynı border efekti */
.proj-tag{
  margin-left:0;        /* h3'ten sonra sağ tarafa yaslan */
  margin-right:0px;       /* sağdaki ikon için nefes payı */
  padding:4px 10px;
  font-size:.78rem;
  line-height:1;
  white-space:nowrap;

  border-radius:999px;
  border:1px solid transparent;
  background:
    /* iç yüzey */
    linear-gradient(var(--btn-01), var(--btn-01)) padding-box,
    /* dış gradient border */
    linear-gradient(var(--gyro-angle),
      color-mix(in oklab, var(--proj-g1) var(--proj-border-alpha), transparent),
      color-mix(in oklab, var(--proj-g2) var(--proj-border-alpha), transparent) 55%,
      color-mix(in oklab, var(--proj-g3) var(--proj-border-alpha), transparent)
    ) border-box;

  color:color-mix(in oklab, var(--ink) 80%, transparent);
  transition:transform .22s ease;  /* kayma animasyonu */
}

/* İlk tag başlıktan sonra geliyor, bloğu sağa iten bu */
.proj-tag:first-of-type{
  margin-left:auto;
}

/* Son tag, sağdaki ikon için ekstra boşluk bırakıyor */
.proj-tag:last-of-type{
  margin-right:0px;
}



/* İkon görünür olduğunda tag hafif sağa kayıyor */
.btn-01:hover .proj-tag,
.btn-01:focus-within .proj-tag{
  transform:translateX(-15px);
}

.link i{ font-size:16px; line-height:1; }

.btn-01:hover .link,
.btn-01:focus-within .link{
  opacity:1; pointer-events:auto; transform:translateY(-50%) translateX(0);
}
.link:hover,
.link:focus-visible{ color:var(--focus); }

/* ———————————————————————————————
   Mobil düzen: sayfa konteynerini şeffaf bırak
——————————————————————————————— */
@media (max-width:768px){
  .sheet{
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    padding:max(16px,4vw);
  }
  .viewport{ padding:max(4vh,32px) 4vw; }

 
}

/* ———————————————————————————————
   Sertifikalar — Responsive grid
   (Mobil 2, Tablet 3, Desktop 4 sütun)
——————————————————————————————— */
.cert-grid{
  display:grid;
  gap:12px;
}
@media (min-width:1200px){
  .cert-grid{ grid-template-columns:repeat(4,1fr); }
}
@media (min-width:768px) and (max-width:1199.98px){
  .cert-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:767.98px){
  .cert-grid{ grid-template-columns:repeat(2,1fr); } /* mobilde ikili */

    /* İlk tag kalsın, diğerleri gizlensin */
  .btn-01 .proj-tag:not(:first-of-type){
    display: none;
  }
}
.cert-card{
  background:transparent;
  border:0;
  border-radius:14px;
  overflow:hidden;
}

.cert-body{ padding:12px 14px 14px; }
.cert-body h3{ margin:0 0 .25rem; font-size:.98rem; font-weight:600; }
.cert-body .issuer{ margin:0; color:var(--muted); font-size:.85rem; }

.thumb{
  background:transparent;
  overflow:hidden;
  aspect-ratio: 1 / 1;        /* kare alan, her kartta aynı oran */
  display:flex;
  align-items:center;
  justify-content:center;
}

.thumb img{ 
  width:100%;
  height:100%;
  object-fit:contain;         /* taşma yok, komple sığsın */
}

/* Soldaki kare ikon alanı */
.link-icon{
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:999px;
  border:1px solid transparent;
  display:grid;
  place-items:center;

  background:
    /* iç yüzey */
    linear-gradient(var(--proj), var(--proj)) padding-box,
    /* dış gradient border */
    linear-gradient(var(--gyro-angle),
      color-mix(in oklab, var(--proj-g1) var(--proj-border-alpha), transparent),
      color-mix(in oklab, var(--proj-g2) var(--proj-border-alpha), transparent) 55%,
      color-mix(in oklab, var(--proj-g3) var(--proj-border-alpha), transparent)
    ) border-box;

  box-shadow:0 0 0 1px color-mix(in oklab, var(--proj) 40%, transparent);
  font-size:.9rem;
  color:color-mix(in oklab, var(--ink) 80%, transparent);
}

.link-icon i{
  line-height:1;
}


/* ———————————————————————————————
   Hareket tercihleri
——————————————————————————————— */
@media (prefers-reduced-motion:reduce){
  .is-loaded .reveal{ animation:none; opacity:1; transform:none; }
}


/* ———————————————————————————————
   Skills / Tech Stack
——————————————————————————————— */
.skill-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
  margin:.4rem 0 1.4rem;
}

.skill-group h3{
  font-size:.9rem;
  font-weight:600;
  margin:0 0 .35rem;
  color:color-mix(in oklab, var(--ink) 82%, transparent);
}

.skill-pills{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-start;
}

.skill-pill{
  padding:4px 10px;
  font-size:.82rem;
  line-height:1.3;
  border-radius:999px;
  border:1px solid transparent;
  background:
    linear-gradient(var(--btn-01), var(--btn-01)) padding-box,
    linear-gradient(135deg,
      color-mix(in oklab, var(--proj-g1) var(--proj-border-alpha), transparent),
      color-mix(in oklab, var(--proj-g2) var(--proj-border-alpha), transparent) 55%,
      color-mix(in oklab, var(--proj-g3) var(--proj-border-alpha), transparent)
    ) border-box;
  color:color-mix(in oklab, var(--ink) 80%, transparent);
}

/* ———————————————————————————————
   Timeline
——————————————————————————————— */
.timeline{
  list-style:none;
  margin:.4rem 0 1.6rem;
  padding:0 0 0 22px;
  position:relative;
  border-left:1px solid color-mix(in oklab, var(--border) 80%, transparent);
}

.timeline li{
  position:relative;
  padding:0 0 1.3rem;
}

.timeline li::before{
  content:"";
  position:absolute;
  left:-7px;
  top:4px;
  width:11px;
  height:11px;
  border-radius:999px;

}

.timeline-year{
  font-size:.82rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  margin-bottom:.05rem;
}

.timeline-body h3{
  margin:0 0 .15rem;
  font-size:.95rem;
  font-weight:500;
}

.timeline-body p{
  margin:0;
  font-size:.88rem;
  color:color-mix(in oklab, var(--ink) 82%, transparent);
}

.projects-header{
  margin-bottom: 1.5rem;
}

.breadcrumb-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: .4rem;
}

.breadcrumb-link i{
  font-size: .8rem;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible{
  color: var(--focus);
}

.page-title{
  font-size: 1.5rem;
  margin: 0 0 .2rem;
}

.page-subtitle{
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.projects-controls{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:12px;
}

.projects-controls label{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:.8rem;
  color:var(--muted);
}

.projects-controls select{
  border-radius:999px;
  border:1px solid color-mix(in oklab, var(--border) 90%, transparent);
  background:var(--surface);          /* dark temada da net */
  color:var(--ink);                   /* yazı rengi her zaman görünür */
  padding:4px 10px;
  font-size:.86rem;
  outline:none;
}

/* Açılan seçeneklerin de görünmesi için */
.projects-controls select option{
  background:var(--surface);
  color:var(--ink);
}

.projects-controls select:focus-visible{
  border-color:color-mix(in oklab, var(--focus) 60%, transparent);
}

/* Sadece projeler sayfası için: yukarı hizalı viewport */
.viewport--top{
  /* grid özelliklerini ez */
  place-items: initial;
  align-items: start;
  justify-items: center;

  /* biraz nefes payı */
  padding-top: 24px;
}

/* ———————————————————————————————
   Language switcher – sade bayrak menüsü
——————————————————————————————— */

.lang-switch{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Ortada görünen tek bayrak */
.lang-main{
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;

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

.lang-main:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.lang-main:hover .lang-flag{
  transform: scale(1.04);
}

/* Açılan bayrak listesi */
.lang-menu{
  position: absolute;
  top: 120%;
  right: 0;
  z-index: 20;

  padding: 4px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);

  display: flex;
  flex-direction: column;
  gap: 4px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

/* is-open olunca menü açılır */
.lang-switch.is-open .lang-menu{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Menüdeki her seçenek: sadece bayrak */
.lang-option{
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;

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

.lang-option:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Bayrak görselleri (hem ana hem menüdeki) */
.lang-flag{
  width: 26px;
  height: 18px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--border) 90%, transparent);
  transition: transform .12s ease, box-shadow .12s ease;
}

.lang-option:hover .lang-flag{
  transform: scale(1.03);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--focus) 75%, transparent);
}

/* ———————————————————————————————
   Page fade transitions (between pages)
——————————————————————————————— */

@keyframes pageFadeIn{
  from{ opacity:0; }
  to  { opacity:1; }
}

@keyframes pageFadeOut{
  from{ opacity:1; }
  to  { opacity:0; }
}

body.page-fade-in{
  animation:pageFadeIn .28s ease-out forwards;
}

body.page-fade-out{
  animation:pageFadeOut .22s ease-in forwards;
}

@media (prefers-reduced-motion:reduce){
  .is-loaded .reveal{ animation:none; opacity:1; transform:none; }

  body.page-fade-in,
  body.page-fade-out{
    animation:none;
    opacity:1;
  }
}

.page-fade-in {
  opacity: 0;
  animation: pageFadeIn 0.4s ease-out forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ———————————————————————————————
   Proje Detayı Sayfası Layout
——————————————————————————————— */

.project-detail-page{
  max-width:var(--measure);
  margin-inline:auto;
  padding:var(--pad);
}

/* Üst bar: başlık + geri link */
.proj-page-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:28px;
}

.proj-page-title{
  margin:0;
  font-size:1.1rem;
}

.proj-back-link{
  font-size:.85rem;
  text-decoration:none;
}

/* HERO: sol / sağ kolon */
.proj-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:32px;
  margin-bottom:32px;
}

.proj-hero-left{
  flex:1 1 0;
  max-width:520px;
    max-width:var(--measure);
}

.proj-hero-right{
  flex:0 0 260px;
  display:flex;
  justify-content:flex-end;
}

/* Kapak görseli için kare kutu */
.proj-cover-frame{
  width:260px;
  height:320px;
  border-radius:24px;
  border:1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background:rgba(255,255,255,0.04);
  overflow:hidden;
}

.proj-cover-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Hero içindeki metinler */
.proj-year-role{
  margin:0 0 6px;
  font-size:.85rem;
  opacity:.8;
}

.proj-hero-heading{
    font-size:1.4rem;
  font-weight:600;
  margin:4px 0 8px;
}

.proj-hero-sub{
  font-size:.96rem;
  margin:0 0 10px;
  color:color-mix(in oklab, var(--ink) 82%, transparent);
}

/* Tag satırı + linkler (butonlar) */
.proj-tags{
    display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:12px;
  justify-content:flex-start;
}

.proj-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:4px;
}

/* Satırlar arası ince çizgi */
.proj-separator{
  height:1px;
  background:color-mix(in oklab, var(--border) 55%, transparent);
  margin:24px 0;
}

/* AÇIKLAMA / TEKNOLOJİLER / GALERİ SATIRLARI */
.proj-row{
 margin-top:22px;
  margin-bottom:16px;
}

.proj-row-gallery .proj-row-body{
  display:block;
}

.proj-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
  justify-items:center;      /* grid item'ları ortala */
}

.proj-gallery-item{
  width:100%;
  max-width:720px;           /* tek foto varsa, ortaya geniş ama kontrollü */
  border-radius:14px;
  border:1px solid color-mix(in oklab, var(--border) 90%, transparent);
}

.proj-row-label{
   font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:600;
  color:var(--muted);
  margin-bottom:6px;
}

.proj-row-body{
   font-size:.9rem;
  line-height:1.7;
}

/* Tech list – küçük pill'ler halinde */
.proj-tech-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-start;
}

.proj-tech-list li{
  font-size:.8rem;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid color-mix(in oklab, var(--border) 80%, transparent);
}

/* GALERİ GRID: bir satırda en fazla 2 resim */
.proj-gallery-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.proj-gallery-grid img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  border:1px solid color-mix(in oklab, var(--border) 80%, transparent);
}

/* Mobil uyum: her şey alt alta */
@media (max-width:768px){
  .project-detail-page{
    padding-inline:16px;
  }

  .proj-page-header{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .proj-hero{
      display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:24px;
  }




  .proj-hero-right{
     align-self:stretch; /* yazı ile aynı genişliğe yayılsın */
  }

  .proj-cover-frame{
    width:100%;
  border-radius:20px;
  overflow:hidden;
  border:1px solid transparent;
  background:
    linear-gradient(var(--proj), var(--proj)) padding-box,
    linear-gradient(var(--gyro-angle),
      color-mix(in oklab, var(--proj-g1) var(--proj-border-alpha), transparent),
      color-mix(in oklab, var(--proj-g2) var(--proj-border-alpha), transparent) 55%,
      color-mix(in oklab, var(--proj-g3) var(--proj-border-alpha), transparent)
    ) border-box;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  }

  .proj-cover-frame img{
  display:block;
  width:100%;
  height:auto;
}

  .proj-row{
    grid-template-columns:1fr;
    row-gap:8px;
  }

  .proj-gallery-grid{
    grid-template-columns:1fr; /* mobilde tek sütun */
  }
}

/* Bu sınıf JS tarafında createLinkButton ile veriliyor */
.btn-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  font-size:.85rem;
  text-decoration:none;
  gap:6px;

  border:1px solid transparent;
  background:
    linear-gradient(var(--btn-01), var(--btn-01)) padding-box,
    linear-gradient(var(--gyro-angle),
      color-mix(in oklab, var(--proj-g1) var(--proj-border-alpha), transparent),
      color-mix(in oklab, var(--proj-g2) var(--proj-border-alpha), transparent) 55%,
      color-mix(in oklab, var(--proj-g3) var(--proj-border-alpha), transparent)
    ) border-box;

  color:color-mix(in oklab, var(--ink) 85%, transparent);
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.btn-link.btn-primary{
  border-color:transparent; /* degrade zaten var, ekstra renge gerek yok */
}

.btn-link:hover,
.btn-link:focus-visible{
  filter:brightness(.98);
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

.footer {
  display: flex;
  justify-content: center;
  color:var(--muted); font-size:.85rem;
}