/* =========================================================
   Hidayet Arslan — Portfolio
   Pastel Dark / Informatik Look
   Safe Reveal + Custom Cursor
   ========================================================= */

:root{
  --bg:#14161a;
  --bg-soft:#1b1e24;
  --fg:#f3f4f6;
  --muted:rgba(243,244,246,.65);
  --line:rgba(243,244,246,.14);
  --card:rgba(243,244,246,.05);

  --radius:20px;
  --radius-sm:14px;
  --max:1120px;
}

/* Language Select: schwarze Schrift */
.lang{
  background:#fff;          /* Dropdown-Hintergrund */
  color:#000;               /* Schrift schwarz */
  border:1px solid rgba(0,0,0,.25);
  border-radius:999px;
  padding:8px 10px;
}

/* Optionen im geöffneten Dropdown */
.lang option{
  color:#000;
  background:#fff;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(255,255,255,.08), transparent 40%),
    radial-gradient(900px 600px at 85% 10%, rgba(255,255,255,.06), transparent 45%),
    var(--bg);
  color:var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  letter-spacing:.2px;
}

a{color:inherit; text-decoration:none}
img{display:block; width:100%; height:100%; object-fit:cover}

.container{max-width:var(--max); margin:0 auto; padding:32px 20px 96px}
.section{padding:88px 0 0}
.muted{color:var(--muted)}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px;
  background:rgba(20,22,26,.75);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}
.brand{font-weight:700; letter-spacing:.4px}
.nav{display:flex; gap:14px; align-items:center}
.nav a{
  color:var(--muted);
  padding:8px 12px;
  border-radius:999px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover{color:var(--fg); background:rgba(255,255,255,.06)}
.nav .pill{border:1px solid var(--line); color:var(--fg); background:rgba(255,255,255,.04)}
.lang{
  background:rgba(255,255,255,.04);
  color:var(--fg);
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 10px;
}

/* Hero */
.hero{padding:72px 0 48px}
.hero-title{margin:0; font-size:clamp(36px, 5vw, 64px); line-height:1.05; font-weight:800}
.hero-title .muted{font-weight:600}
.hero-sub{margin:18px 0 26px; max-width:70ch; color:var(--muted); font-size:17px; line-height:1.65}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background:rgba(255,255,255,.1);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.btn.ghost{background:transparent}

/* Section Head */
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px; padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.section-head h2{margin:0; font-size:18px; letter-spacing:.4px; text-transform:uppercase}

/* Grid / Cards */
.grid{display:grid; grid-template-columns: repeat(12, 1fr); gap:18px; padding-top:24px}

.card{
  grid-column: span 6;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  overflow:hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
}

.thumb{
  aspect-ratio:16/10;
  background: radial-gradient(800px 400px at 20% 20%, rgba(255,255,255,.12), transparent 45%), var(--bg-soft);
  position:relative;
}
.thumb.noimg::after{
  content:"IMAGE";
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
  font-weight:700;
  letter-spacing:2px;
}

.thumb-overlay{position:absolute; inset:auto 12px 12px 12px; display:flex; justify-content:flex-end}
.thumb-chip{
  font-size:12px;
  color:var(--fg);
  border:1px solid var(--line);
  background:rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  padding:6px 10px;
  border-radius:999px;
}

.card-body{padding:16px 16px 18px}
.card-top{display:flex; justify-content:space-between; align-items:baseline}
.card h3{margin:0; font-size:17px}
.card p{margin:10px 0 0; font-size:14px; line-height:1.55; color:var(--muted)}
.card-mini{margin-top:10px; color:var(--muted)}

/* Tags */
.tags{display:flex; gap:8px; margin-top:12px; flex-wrap:wrap}
.tags span{
  font-size:12px;
  color:var(--muted);
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.04);
}

/* About / Meta */
.about{display:grid; grid-template-columns: 1.2fr .8fr; gap:22px; padding-top:22px}
.meta{list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden}
.meta li{
  display:flex; justify-content:space-between;
  padding:14px 16px;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.meta li:first-child{border-top:none}

/* Contact */
.contact{padding-top:18px}
.biglink{display:inline-block; font-size: clamp(22px, 3vw, 34px); letter-spacing:.2px; padding:8px 0}
.links{display:flex; gap:14px; margin-top:10px; color:var(--muted)}
.links a:hover{color:var(--fg)}

/* Footer */
.footer{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 20px 32px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:14px;
  color:var(--muted);
}
.footer-right{display:flex; gap:10px; align-items:center}
.footer a:hover{color:var(--fg)}

/* Project page layout */
.backlink{display:inline-flex; margin-top:20px; color:var(--muted)}
.project-head{padding:18px 0 10px}
.project-title{margin:0; font-size: clamp(28px, 4vw, 44px); line-height:1.1}

.project-body{display:grid; grid-template-columns: 1fr .9fr; gap:18px; padding-top:18px}
.project-gallery{display:grid; gap:14px}
.shot{margin:0; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background:var(--card)}
.project-text h3{margin:0 0 10px; font-size:14px; color:var(--muted); letter-spacing:.4px; text-transform:uppercase}
.project-text p{margin:0 0 16px; color:var(--muted); line-height:1.7}
.project-cta{display:flex; gap:10px; flex-wrap:wrap}

/* Reveal SAFE */
.reveal{opacity:1; transform:none}
html.js .reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js .reveal.in{opacity:1; transform:none}

/* Responsive */
@media (max-width: 900px){
  .card{grid-column: span 12}
  .about{grid-template-columns: 1fr}
  .project-body{grid-template-columns: 1fr}
}

/* Custom Cursor (Desktop only) */
@media (pointer: fine){
  body{cursor:none}

  .cursor-dot{
    position:fixed; top:0; left:0;
    width:6px; height:6px;
    border-radius:50%;
    background:#fff;
    pointer-events:none;
    z-index:9999;
    mix-blend-mode:difference;
  }

  .cursor-trail{
    position:fixed; top:0; left:0;
    width:18px; height:18px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.6);
    pointer-events:none;
    z-index:9998;
    transition: transform .08s linear;
    mix-blend-mode:difference;
  }

/* =========================
   Theme Toggle (Dark / Light)
   ========================= */

/* Light Theme überschreibt nur Variablen */
html[data-theme="light"]{
  --bg:#f6f7fb;
  --bg-soft:#eef1f7;
  --fg:#12141a;
  --muted:rgba(18,20,26,.65);
  --line:rgba(18,20,26,.14);
  --card:rgba(18,20,26,.06);
}

/* Body Hintergrund nutzt schon var(--bg) – wir passen nur die "Glow"-Radials an */
html[data-theme="light"] body{
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(0,0,0,.06), transparent 40%),
    radial-gradient(900px 600px at 85% 10%, rgba(0,0,0,.05), transparent 45%),
    var(--bg);
}

/* Header im Light Mode etwas heller */
html[data-theme="light"] .site-header{
  background: rgba(246,247,251,.78);
}

/* Theme Button (passt optisch zu deinen Pills) */
.theme{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:38px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--fg);
  cursor:pointer;
  transition: transform .2s ease, background .2s ease;
}
.theme:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}
.theme-icon{
  font-size:16px;
  line-height:1;
}

/* Custom Cursor soll in Light Mode nicht "weiß" sein */
@media (pointer: fine){
  .cursor-dot{ background: var(--fg); }
  .cursor-trail{ border-color: rgba(18,20,26,.45); }
  html[data-theme="dark"] .cursor-trail{ border-color: rgba(255,255,255,.35); }
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-logo{
  width:28px;
  height:28px;
  border-radius:8px;   /* optional – wenn es “app-like” wirken soll */
  object-fit:cover;
}

.brand-name{
  font-weight:700;
  letter-spacing:.4px;
}
}
