/* =========================================================
   DSA DESIGN SYSTEM — FINAL (Original Layout + Neon Theme)
   File: /assets/css/style.css
   ========================================================= */

   
:root {
  /* --- 1. NEON RENK PALETİ (DÜZELTİLDİ) --- */
  --bg: #030712;                      /* Değişken adı düzeltildi (bg-color yerine bg) */
  --accent-rgb: 0, 240, 255;          /* Neon Cyan */
  --accent: rgb(var(--accent-rgb));   

  --text: #ffffff;                    /* Tam Beyaz */
  --muted: #a5f3fc;                   /* Soluk Neon Mavi */
  --faint: #155e75;                   /* Koyu Mavi Detaylar */
  
  --panel: rgba(0, 240, 255, 0.03);
  --panel2: rgba(0, 240, 255, 0.08);
  --border: rgba(0, 240, 255, 0.25);  /* Parlak Çerçeve */
  --shadow: 0 0 35px rgba(0, 240, 255, 0.15); /* Neon Gölge */
  
  --accent2: rgba(0, 240, 255, 0.16);

  /* --- 2. ORİJİNAL BOYUT VE LAYOUT AYARLARI (HİÇ DOKUNULMADI) --- */
  --max: 1120px;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --h1: clamp(34px, 4.1vw, 54px);
  --h2: clamp(24px, 3vw, 34px);
  --h3: 18px;
  --p: 16px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* EKSTRA GÖSTERİŞ EFEKTİ */
.btn {
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4); /* Butonlar parlar */
  border-width: 1.5px; /* Çerçeveler daha kalın */
  font-weight: 800; /* Yazılar daha kalın */
}

.btn:hover {
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.7), inset 0 0 10px rgba(var(--accent-rgb), 0.5);
  background: var(--accent);
  color: #000 !important; /* Üzerine gelince yazı siyah olsun, daha okunaklı */
}

.hero-card, .card:hover {
  box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.2); /* Kartlar alttan renk saçar */
  border-color: var(--accent);
}



.btn:hover {
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.7), inset 0 0 10px rgba(var(--accent-rgb), 0.5);
  background: var(--accent);
  color: #000 !important;
  border-color: var(--accent);
}

.hero-card, .card:hover {
  box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent);
}

/* TEMEL AYARLAR */
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  /* Arkaplan Düzeltildi: Değişken ismi eşleştirildi */
  background:
    radial-gradient(1200px 650px at 20% 0%, rgba(0, 240, 255, .15), transparent 55%),
    radial-gradient(900px 520px at 90% 20%, rgba(0, 240, 255, .08), transparent 60%),
    radial-gradient(900px 600px at 55% 90%, rgba(255,255,255,.04), transparent 60%),
    var(--bg);
  background-attachment: fixed; /* Arkaplan sabitlendi */
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover{ color: var(--accent); }
img{ max-width: 100%; display:block; }

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

/* Pills / Tags */
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding: 9px 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  color: var(--muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dot{
  width:7px; height:7px; border-radius:999px; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent2);
}

.tagrow{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: 12px; }
.tag{
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(0,0,0,.16);
  padding: 7px 9px; border-radius: 999px;
  transition: border-color 0.2s;
}
.tag:hover{ border-color: var(--accent); color: var(--text); }

/* Header / Nav */
header{
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(3, 7, 18, 0.65);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px; padding: 14px 0;
}

.brand{
  display:flex; align-items:center; gap: 12px;
  min-width: 210px;
}

.logo{
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 0px;
}

.brand:hover .logo{
  transform: scale(1.03);
  transition: transform .2s ease;
}

.brand strong{ font-weight: 680; letter-spacing: .2px; }
.brand span{ display:block; font-size: 12px; color: var(--faint); margin-top: 1px; }

nav ul{
  display:flex; gap: 18px; padding:0; margin:0; list-style:none;
  align-items:center;
}

nav a{
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
  font-size: 14px;
}
nav a:hover{ background: rgba(255,255,255,.06); color: var(--text); }

.nav-right{
  display:flex; align-items:center; gap: 10px;
  min-width: 210px; justify-content:flex-end;
}

/* Language switch */
.lang{
  display:flex;
  border:1px solid rgba(0, 240, 255, .35);
  background: rgba(0, 240, 255, .06);
  border-radius: 999px;
  overflow:hidden;
}
.lang a{
  padding: 9px 10px;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  min-width: 44px;
  text-align:center;
  transition: background .2s ease, color .2s ease;
}
.lang a:hover{
  background: rgba(0, 240, 255, .14);
  color: var(--accent);
}

.lang a[aria-current="page"]{ display:none; }


/* Buttons (Base styles, Glow effects added at top) */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, .45);
  background: rgba(0, 240, 255, .10);
  color: var(--text);
  font-size: 8px; /* Orijinal font boyutu */
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover{
  transform: translateY(-1px);
}
.btn.secondary{
  border-color: var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  box-shadow: none;
}
.btn.secondary:hover{ background: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,0.3); }

/* Mobile */
.hamburger{ display:none; }
.mobile { display: none; }

/* Sections */
section{ padding: 40px 0; }

.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap: 16px; margin-bottom: 16px;
}

h1{ font-size: var(--h1); margin: 14px 0 12px; letter-spacing: -0.4px; line-height: 1.05; }
h2{ font-size: var(--h2); margin:0; letter-spacing: -0.4px; }
.sub{ color: var(--muted); margin: 6px 0 0; max-width: 70ch; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

/* Cards */
.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card h3{ margin: 0 0 8px; font-size: var(--h3); }
.card p{ margin: 0; color: var(--muted); font-size: 14px; }

/* Hero (Home) */
.hero{ padding: 46px 0 24px; }

.hero-grid{
  display:grid;
  grid-template-columns: 15.05fr .5fr; /* Orijinal Kolon Yapısı */
  font-size: 10px;
  gap: 28px;
  align-items: stretch;
  margin-top: 18px;
}

.hero p{
  margin: 0 0 15px;
  font-size: 18px;
  color: var(--muted);
  max-width: 120ch;
}

.cta-row{ display:flex; flex-wrap:wrap; gap: 20px; align-items:center; }

.hero-card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow:hidden;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hero-card::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(420px 240px at 20% 10%, rgba(0, 240, 255, .22), transparent 60%),
    radial-gradient(520px 300px at 100% 30%, rgba(255,255,255,.10), transparent 60%);
  opacity:.9;
  pointer-events:none;
}

.hero-card > *{ position:relative; }

.metrics{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
}
.metric{
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
}
.metric strong{ display:block; font-size: 18px; color: var(--accent); }
.metric span{ display:block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Media blocks */
.mock{
  margin-top: 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    radial-gradient(600px 250px at 70% 15%, rgba(0, 240, 255, .16), transparent 60%);
  min-height: 220px;
  overflow:hidden;
  position: relative;
}

/* default mock images */
.mock > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,.40)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, transparent 1px, transparent 14px);
  opacity: .35;
  pointer-events:none;
}

.mock-label{
  position:absolute; left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.70);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

/* Project cards */
.projects{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.project{ overflow:hidden; padding: 0; }

.thumb{
  position: relative;
  overflow: hidden;
  height: 185px; /* Orijinal Yükseklik */
  background:
    radial-gradient(900px 260px at 20% 10%, rgba(0, 240, 255, .22), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-bottom: 1px solid var(--border);
}

.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.thumb::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.45));
  opacity:.8;
  z-index: 2;
}

.project-body{ padding: 16px 18px 18px; }
.meta{ font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.65); }
.project-body h3{ margin: 8px 0 8px; font-size: 17px; }
.project-body p{ margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.project-actions{ display:flex; gap: 10px; flex-wrap:wrap; }

/* Process steps */
.process{ grid-template-columns: repeat(4, minmax(0,1fr)); }
.step strong{
  display:flex; align-items:center; gap: 10px;
  font-size: 14px; margin-bottom: 8px;
}
.num{
  width: 28px; height: 28px; border-radius: 10px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(0, 240, 255, .16);
  border: 1px solid rgba(0, 240, 255, .28);
  color: var(--accent);
  font-family: var(--mono);
}

/* About */
.about-lead{ max-width: 200ch; font-size: 17px; line-height: 1.7; }
.about-text{ max-width: 150ch; margin-top: 12px; color: var(--muted); line-height: 1.7; }
.about-grid{
  margin-top: 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

/* Contact */
.contact-wrap{ margin-top: 18px; }

.contact-layout{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  align-items: stretch;
}

.form{ display:grid; gap: 10px; margin-top: 10px; }
label{ font-size: 12px; color: rgba(255,255,255,.75); }
input, textarea, select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  padding: 12px 12px;
  color: var(--text);
  outline: none;
  font: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--accent); background: rgba(0,0,0,.5); }

textarea{ min-height: 120px; resize: vertical; }
.hint{ font-size: 12px; color: var(--faint); margin-top: 8px; }

.mini-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.contact-logo{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}

.contact-logo img{
  width: 250px;
  max-width: 100%;
  height: auto;
}

.contact-box .line{
  display:flex; gap: 10px; align-items:flex-start;
  padding: 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  margin-top: 10px;
}
.icon{
  width: 30px; height: 30px; border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, .26);
  background: rgba(0, 240, 255, .10);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--mono);
  color: var(--accent);
  flex: 0 0 auto;
}
.map iframe{
  width: 100% !important;
  max-width: 100% !important;
  height: 240px;
  border: 0;
  border-radius: 14px;
}

/* Footer */
footer{
  padding: 18px 0 30px;
  color: var(--faint);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid, .contact-wrap{ grid-template-columns: 1fr; }
  .process{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .projects, .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  nav ul{ display:none; }

  .hamburger{
    display:inline-flex;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text);
    cursor:pointer;
  }
  .mobile{
    display:none;
    padding: 12px 0 18px;
  }
  .mobile.open{ display:block; }
  .mobile a{
    display:block; padding: 10px 10px;
    color: var(--muted);
    border-radius: 12px;
  }
  .mobile a:hover{ background: rgba(255,255,255,.06); color: var(--text); }
}

@media (max-width: 560px){
  .projects, .grid{ grid-template-columns: 1fr; }
  .process{ grid-template-columns: 1fr; }
  .nav{ flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .brand{ flex: 1 1 100%; min-width: 0; gap: 10px; }
  .logo{ width: 64px; height: 64px; }
  .brand span{ display: none; }
  .nav-right{
    flex: 1 1 100%;
    min-width: 0;
    justify-content: space-between;
    gap: 10px;
  }
  .lang a{ min-width: 38px; padding: 8px 9px; font-size: 12px; }
  section{ padding: 48px 0; }
  .card{ padding: 20px; }
  .card h3{ font-size: 18px; }
  .card p{ font-size: 15px; line-height: 1.7; }
  .btn{ padding: 12px 16px; font-size: 15px; min-height: 44px; }
  .metric strong{ font-size: 20px; }
  .metric span{ font-size: 13px; }
  .thumb{ height: 210px; }
  .project-body h3{ font-size: 18px; }
  .project-body p{ font-size: 15px; }
  .mini-grid{ grid-template-columns: 1fr; }
}

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

/* =========================================================
   PROJECT GALLERY (grid + lightbox)
   ========================================================= */

.grid.gallery-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.grid.gallery-grid .card{
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}
.grid.gallery-grid .thumb{ height: 240px; }
.grid.gallery-grid .thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px){
  .grid.gallery-grid{ grid-template-columns: 1fr; }
  .grid.gallery-grid .thumb{ height: 220px; }
}
.gcard{ width:100%; border:0; background:transparent; padding:0; text-align:inherit; cursor:pointer; }

/* ===== Lightbox ===== */
.lightbox{ position: fixed; inset: 0; z-index: 9999; display: none; }
.lightbox.is-open{ display:block; }
.no-scroll{ overflow:hidden; }
.lb-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.75); }
.lb-panel{
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 48px));
  height: min(62vh, 560px);
  background: #000;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}
#lbImg{ width: 100%; height: 100%; object-fit: contain; display:block; padding: 18px; box-sizing: border-box; -webkit-user-drag: none; user-select: none; }
.lb-close{
  position:absolute; right: 10px; top: 8px; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.92);
  font-size: 26px; line-height: 1; cursor: pointer; z-index: 2;
}
.lb-nav{
  position:absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 52px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92); font-size: 34px; cursor:pointer; z-index: 2;
}
.lb-nav.prev{ left: 10px; }
.lb-nav.next{ right: 10px; }
.lb-counter{
  position:absolute; left: 12px; top: 12px; padding: 8px 10px;
  font-size: 12px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px; z-index: 2;
}
@media (max-width: 820px){ .lb-panel{ width: calc(100vw - 24px); height: min(70vh, 520px); } }

/* =========================================================
   HERO SLIDER — Düzeltildi (Min-Height)
   ========================================================= */

.hero-slider{
  cursor: pointer;
  display:block;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  min-height: 450px; /* Slider yüksekliği zorunlu */
  -webkit-touch-callout: none;
  user-select: none;
}

@media (max-width: 980px){ .hero-slider{ min-height: 300px; } }
@media (max-width: 560px){ .hero-slider{ min-height: 240px; } }

.hero-slider .hs-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity .55s ease;
  will-change: opacity;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hero-slider .hs-img.is-active{ opacity: 1; }
.hero-slider .hs-img.is-exit{ opacity: 0 !important; }

@media (prefers-reduced-motion: reduce){ .hero-slider .hs-img{ transition: none; } }

/* =========================================================
   Featured Projects & About Cards
   ========================================================= */

#featuredProjects img{ pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
#featuredProjects a, #featuredProjects .thumb{ pointer-events: auto; }

.about-features { margin-top: 14px; }

@media (min-width: 720px) { .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .about-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.about-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  min-height: 168px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, border-color .18s ease, box-shadow 0.2s ease;
}

.about-card:hover { transform: translateY(-2px); border-color: var(--accent); }

.about-card h3 { margin: 0; font-size: 18px; letter-spacing: .2px; }
.about-card p { margin: 0; line-height: 1.55; color: rgba(255,255,255,.72); font-size: 14.5px; }
.about-card .meta { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .4px; text-transform: uppercase; }

.about-card .badge {
  width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0, 240, 255, .12);
  border: 1px solid rgba(0, 240, 255, .22);
  color: var(--accent);
  font-weight: 700; flex: 0 0 auto;
}

.about-card .top { display: flex; align-items: center; gap: 10px; }

.about-lead{ font-size: 17.5px; line-height: 1.8; font-weight: 600; color: rgba(255,255,255,.90); letter-spacing: .1px; }
.about-text{ font-size: 16px; line-height: 1.9; font-weight: 500; color: rgba(255,255,255,.80); }

@media (max-width: 520px){ .about-lead{ font-size: 16px; } .about-text{ font-size: 15px; } }
header nav a{ white-space: nowrap; }