/* ========================================= */
/* 1. GENEL AYARLAR & DEĞİŞKENLER (ROOT)     */
/* ========================================= */
:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-glass: rgba(30, 41, 59, 0.5);
  --primary: #3b82f6;
  --accent: #06b6d4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.05);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --shadow-glow: 0 10px 20px rgba(59, 130, 246, 0.3);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Yardımcı Sınıflar (Utilities) */
.container {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================= */
/* 2. HEADER & NAVBAR                        */
/* ========================================= */
header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(15px);
  padding: 1.2rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--text-main);
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.cta-btn {
  background: var(--gradient);
  color: white !important;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* ========================================= */
/* 3. HERO SECTION                           */
/* ========================================= */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

/* Binary Background Animation */
.binary-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.binary-digit {
  position: absolute;
  font-family: monospace;
  color: var(--primary);
  opacity: 0.15;
  user-select: none;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0.8); opacity: 0; }
  20% { opacity: 0.2; }
  80% { opacity: 0.2; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
  z-index: 1;
}

/* ========================================= */
/* 4. STATS SECTION                          */
/* ========================================= */
.stats-section {
  background: var(--bg-card);
  padding: 4rem 5%;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ========================================= */
/* 5. GRID LAYOUTS                           */
/* ========================================= */
.grid-3, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

/* ========================================= */
/* 6. GENEL KART TASARIMLARI                 */
/* ========================================= */
/* Base Card Style */
.card, .project-card, .services-card, .legal-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Standart Özellik Kartı */
.card {
  padding: 3rem 2.5rem;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before { transform: scaleX(1); }

.card:hover, .project-card:hover, .services-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
}

.card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.card h3, .services-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.card p, .services-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Hizmetler (Services) Kartı Özel */
.services-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.services-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-glow);
}

.services-icon i {
  color: white;
  font-size: 1.8rem;
}

/* Proje Kartı Özel */
.project-card {
  display: flex;
  flex-direction: column;
}

.project-cover {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-cover img { transform: scale(1.05); }

.project-logo-box {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  margin-top: -45px;
  margin-left: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-content-new {
  padding: 1rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.visit-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  transform: translateX(5px);
}

/* ========================================= */
/* 7. SAYFA & SÜREÇ YAPILARI                 */
/* ========================================= */
.page-header {
  padding: 6rem 5% 4rem;
  text-align: center;
  background: radial-gradient(
    circle at center bottom,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(15, 23, 42, 0) 60%
  );
}

/* Süreç (Process) Adımları */
.process-step {
  background: var(--bg-card-glass);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-light);
  position: relative;
  transition: var(--transition);
  height: 100%;
}

.process-step:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.step-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-glow);
}

.step-icon i {
  color: #fff !important;
  font-size: 1.8rem !important;
  margin-bottom: 0 !important;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
}

/* ========================================= */
/* 8. HAKKIMIZDA & REFERANSLAR               */
/* ========================================= */
.about-intro {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
}

.about-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  color: var(--primary);
}

.about-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.highlight-quote {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-left: 4px solid var(--primary);
  backdrop-filter: blur(12px);
}

.about-values .card {
  text-align: center;
}

.about-image-container {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.about-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: 0.5s;
}

.about-image-container:hover img {
  filter: brightness(1);
  transform: scale(1.05);
}

.ref-logo {
  background: var(--bg-card);
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.3rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  filter: grayscale(100%);
  opacity: 0.7;
}

.ref-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* ========================================= */
/* 9. İLETİŞİM FORMU                         */
/* ========================================= */
.contact-wrapper {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 320px;
}

.contact-title {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  margin-bottom: 2rem;
}

.contact-block { margin-bottom: 2rem; }

.contact-label {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-text {
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-social a {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.contact-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

form input, form textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  color: #fff;
  border-radius: 12px;
  font-family: var(--font-body);
  transition: var(--transition);
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.contact-submit {
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
}

/* ========================================= */
/* 10. LEGAL & POLICY (YASAL SAYFALAR)       */
/* ========================================= */
.legal-card {
  background: rgba(30, 41, 59, 0.25);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 3rem;
}

.legal-section-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.legal-list li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}

.legal-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ========================================= */
/* 11. FOOTER (BİRLEŞTİRİLMİŞ)               */
/* ========================================= */
footer {
  background: #090c14;
  padding: 4rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.legal-links a, .footer-links a, .legal-footer a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.85;
  transition: var(--transition);
  margin: 0 0.4rem;
}

.legal-links a:hover, .footer-links a:hover, .legal-footer a:hover {
  opacity: 1;
  color: var(--primary);
  text-decoration: underline;
}

.legal-footer {
  margin-top: 2rem;
}

/* ========================================= */
/* 12. RESPONSIVE / MOBILE NAV               */
/* ========================================= */
.mobile-nav { display: none; }
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--text-main);
  z-index: 1100;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 0;
    width: 75%;
    height: calc(100vh - 70px);
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    gap: 1.8rem;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    border-left: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-nav.open { transform: translateX(0); }

  .mobile-nav a {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav { display: none !important; }
}

body.menu-open { overflow: hidden; }