:root {
  /* ─── YENİ SOFT-DARK PALET ─── */
  --bg: #1d2542;          /* Artık siyah değil, çok derin bir lacivert */
  --surface: #262f52;     /* Kartların zemini, arka plandan biraz daha açık */
  --panel: #333d66;       /* Paneller, derinlik algısı için daha belirgin */
  
  --accent: #d7ff00;
  --accent-rgb: 215, 255, 0;
  --accent-hover: #00e6c8;
  
  --accent2: #7b5cfa;
  --accent2-rgb: 123, 92, 250;
  
  --accent3: #ff4d6d;
  
  /* ─── YARDIMCI VE KOD BLOK RENKLERİ ─── */
  --cyan: #00ffe0;
  --cyan-rgb: 0, 255, 224;
  --yellow: #fbbf24;
  --pink: #f9a8d4;
  
  /* ─── METİN VE KENARLIKLAR ─── */
  --text: #e8eaf6;
  --muted: #cbd5e1;       /* Daha parlak, okunabilir bir gri */
  --border: rgba(255, 255, 255, 0.15); /* Hafif bir ışık süzmesi gibi */
  
  /* ─── EFEKTLER (GLOW) ─── */
  --glow: 0 0 40px rgba(var(--cyan-rgb), 0.2);
  --portfolio-glow: 0 0 40px rgba(var(--accent-rgb), 0.2);
}

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

html { 
  scroll-behavior: smooth;
  background-color: var(--bg); /* HTML etiketine de bu rengi tanımla */
}

/* ─── CUSTOM CURSOR GİZLEME (Sadece Fare Destekli Cihazlarda) ─── */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, select, .service-card, .p-card { 
    cursor: none !important; 
  }
}

body {
  /* Mevcut: background: var(--bg); */
  /* Yeni: */
  background: radial-gradient(circle at 50% -20%, #1a1f35 0%, #05070f 80%);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── GRID BG ─── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── CUSTOM CURSOR STYLES ─── */
#custom-cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  background-image: url('img/untitled.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10002;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cursor-hover {
  transform: translate(-50%, -50%) scale(1.6) !important; 
}

/* ─── CURSOR GLOW ─── */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s;
}

/* ─── NAVBAR ─── */
.navbar {
  background: rgb(29 37 66 / 85%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent) !important;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.navbar-brand span { color: var(--text); }

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--accent) !important; }

.btn-nav {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 1.2rem !important;
  border-radius: 2px;
  transition: all 0.25s;
}

.btn-nav:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--accent2-rgb), 0.2) 0%, transparent 70%);
  top: -100px; right: -100px;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), 0.12) 0%, transparent 70%);
  bottom: 0; left: -50px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(var(--cyan-rgb), 0.3);
  background: rgba(var(--cyan-rgb), 0.05);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-title .line-accent { color: var(--accent); }
.hero-title .line-italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.btn-primary-custom {
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px rgba(var(--cyan-rgb), 0.4);
  transform: translateY(-2px);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── CODE BLOCK ─── */
.hero-code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.7;
  position: relative;
}

.code-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.dot-r { background: var(--accent3); }
.dot-y { background: var(--yellow); }
.dot-g { background: var(--cyan); }

.code-file {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.code-body { padding: 1.5rem; }

.code-line { display: flex; gap: 1rem; }
.ln { color: rgba(255,255,255,0.15); min-width: 20px; text-align: right; user-select: none; }
.kw { color: var(--accent2); }
.fn { color: var(--cyan); }
.str { color: var(--yellow); }
.cm { color: var(--muted); }
.var { color: var(--pink); }

/* ─── MARQUEE ─── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.2rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marquee-item::after {
  content: '◆';
  color: var(--accent);
  font-size: 0.5rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SECTIONS ─── */
section { position: relative; z-index: 2; }

.section-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 450px;
}

/* ─── SERVICES ─── */
.services { padding: 120px 0; }

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 12px;
  height: 100%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(var(--cyan-rgb), 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-num {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}

.service-icon {
  width: 50px; height: 50px;
  background: rgba(var(--cyan-rgb), 0.05);
  border: 1px solid rgba(var(--cyan-rgb), 0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
}

/* ─── PORTFOLIO ─── */
.portfolio-section { padding: 120px 0; }

.p-card {
    position: relative;
    height: 480px;
    border-radius: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    margin-bottom: 30px;
}

.p-img-container { 
    position: absolute; 
    inset: 0; 
    z-index: 0; 
    overflow: hidden;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s ease, filter 0.5s ease;
}

.p-card:hover .p-img {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
    transform: scale(1.08);
}
.p-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5,7,15,0.95) 85%);
    z-index: 1;
}

.p-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    transform: translateZ(30px);
}

.p-category {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.p-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.p-tags { display: flex; gap: 8px; margin-bottom: 20px; opacity: 0.6; }

.tag-small {
    font-size: 0.6rem;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.p-link {
    font-size: 0.8rem;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.p-card:hover { border-color: var(--accent); box-shadow: var(--portfolio-glow); }
.p-card:hover .p-img { opacity: 0.6; filter: grayscale(0%); transform: scale(1.1) translateZ(0); }
.p-card:hover .p-link { color: var(--accent); gap: 15px; }

/* ─── STACK ─── */
.stack-section { padding: 120px 0; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.stack-item {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
}

.stack-item:hover {
  border-color: var(--accent);
  background: rgba(var(--cyan-rgb), 0.02);
  transform: scale(1.05);
}

.p-card:hover .p-overlay {
    opacity: 0 !important;
    background: transparent !important;
}

.stack-item i { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.stack-item span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── STATS ─── */
.stats-section { padding: 80px 0; }

.stat-card {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ─── PROCESS ─── */
.process-section { padding: 120px 0; }

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  transition: all 0.3s;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  min-width: 60px;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.step-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

/* ─── CONTACT ─── */
.contact-section {
  padding: 120px 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
}

.form-control-custom {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Form Elemanlarına Odaklanma Durumu Eklendi */
.form-control-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
}

.form-label-custom {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}

textarea.form-control-custom { resize: vertical; min-height: 140px; }

.contact-info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.info-icon {
  width: 42px; height: 42px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

.info-label { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.info-value { font-size: 0.85rem; margin-top: 2px; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
}

.footer-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.7; margin-top: 0.75rem; max-width: 300px; }

.footer-heading {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { font-size: 0.72rem; color: var(--muted); }

.social-links { display: flex; gap: 0.75rem; }

.social-link {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── TOAST ─── */
.toast-custom {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--panel);
  border: 1px solid rgba(var(--cyan-rgb), 0.4);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}

.toast-custom.show { transform: translateY(0); opacity: 1; }

.toast-icon { color: var(--accent); font-size: 1.1rem; }
.toast-text { font-size: 0.82rem; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

@media (max-width: 768px) {
  .hero-code { display: none; }
  .process-step { flex-direction: column; gap: 1rem; }
  .contact-form { padding: 1.5rem; }
  .section-title { font-size: 2.2rem; }
  .p-card { height: 400px; }
}
/* ─── LANDING PAGE ÖZEL KOMPONENTLERİ ─── */

/* Mobil Uygulama Vurgu Rengi (Mor) */
.btn-mobile-accent {
    background: #7b5cfa;
    border-color: #7b5cfa;
    color: #fff !important;
}
.btn-mobile-accent:hover {
    background: #6a4cdb;
    box-shadow: 0 0 20px rgba(123, 92, 250, 0.3);
}

/* Masaüstü Yazılım Vurgu Rengi (Cyan) */
.btn-cyan-accent {
    background: #00ffe0;
    border-color: #00ffe0;
    color: #05070f !important;
    font-weight: 700;
}
.btn-cyan-accent:hover {
    background: #00d4b9;
    box-shadow: 0 0 20px rgba(0, 255, 224, 0.3);
}

/* Landing Page'lerdeki SSS ve Liste Özelleştirmeleri */
.feature-list-check { list-style: none; padding-left: 0; }
.feature-list-check li { 
    position: relative; 
    padding-left: 26px; 
    margin-bottom: 12px; 
    font-size: 0.95rem; 
    color: rgba(232,234,246,0.8); 
}
.feature-list-check li::before { 
    content: '\f00c'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    position: absolute; 
    left: 0; 
    color: var(--accent); 
}

/* Kartların üzerine gelince oluşan glow etkisi */
.solution-step { 
    background: var(--panel); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 32px; 
    height: 100%; 
    transition: all 0.3s; 
}
.solution-step:hover { 
    border-color: var(--accent); 
    transform: translateY(-4px); 
    box-shadow: var(--glow);
}