/* ============================================================
   MHK — Shared Stylesheet
   Replaces: bootstrap.min.css, popper.min.js, bootstrap.min.js
   Usage: <link href="../css/mhk.css" rel="stylesheet">
   ============================================================ */

/* ============================================================
   MHK — Local Font Declarations
   Dosyaları koyun: ../fonts/  klasörüne
   Syne    → https://gwfh.mranftl.com/fonts/syne?subsets=latin
   DM Sans → https://gwfh.mranftl.com/fonts/dm-sans?subsets=latin
   ============================================================ */

/* Syne */
@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-v24-latin-regular.woff2') format('woff2'),
       url('../fonts/syne-v24-latin-regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-v24-latin-600.woff2') format('woff2'),
       url('../fonts/syne-v24-latin-600.woff')  format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-v24-latin-700.woff2') format('woff2'),
       url('../fonts/syne-v24-latin-700.woff')  format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-v24-latin-800.woff2') format('woff2'),
       url('../fonts/syne-v24-latin-800.woff')  format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* DM Sans */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-v17-latin-300.woff2') format('woff2'),
       url('../fonts/dm-sans-v17-latin-300.woff')  format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2'),
       url('../fonts/dm-sans-v17-latin-regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-v17-latin-500.woff2') format('woff2'),
       url('../fonts/dm-sans-v17-latin-500.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --surface:   #16161f;
  --border:    rgba(255,255,255,0.07);
  --text:      #e8e8f0;
  --muted:     #7b7b96;
  --accent:    #00d4ff;
  --accent2:   #0066ff;
  --nav-bg:    rgba(10,10,15,0.85);
  --card-bg:   #16161f;
  --footer-bg: #0a0a0f;
  --radius:    12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

[data-theme="light"] {
  --bg:        #f5f5f7;
  --bg2:       #ffffff;
  --surface:   #ffffff;
  --border:    rgba(0,0,0,0.08);
  --text:      #1a1a2e;
  --muted:     #6b7280;
  --accent:    #0055cc;
  --accent2:   #0033aa;
  --nav-bg:    rgba(245,245,247,0.92);
  --card-bg:   #ffffff;
  --footer-bg: #1a1a2e;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: var(--accent); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p  { color: var(--muted); line-height: 1.75; font-weight: 300; }

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--muted); }
.text-center  { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.col      { flex: 1 1 0; min-width: 0; }
.col-half { flex: 1 1 calc(50% - 0.75rem); min-width: 260px; }
.col-third{ flex: 1 1 calc(33.33% - 1rem); min-width: 240px; }

/* ── NAV ── */
nav, .navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  flex: 1;
  margin: 0;
  padding: 0;
}

.nav-links a, .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted) !important;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  display: inline-block;
}

.nav-links a:hover, .nav-link:hover {
  color: var(--text) !important;
  background: var(--border);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 210px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 300;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show { display: block; }

.dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted) !important;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.dropdown-item:hover {
  color: var(--text) !important;
  background: var(--border);
  padding-left: 1rem;
}

/* Nav right controls */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-switch { display: flex; gap: 0.3rem; align-items: center; }
.lang-switch a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted) !important;
  text-decoration: none;
  transition: color var(--transition);
}
.lang-switch a:hover { color: var(--accent) !important; }
.lang-switch span { color: var(--muted); }

/* ── THEME BUTTON ── */
.theme-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #000 !important;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.btn-ghost {
  background: transparent;
  color: var(--accent) !important;
  padding: 0.5rem 0;
}
.btn-ghost:hover { opacity: 0.75; }

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit !important;
  display: block;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: rgba(0,212,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
[data-theme="light"] .card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,102,255,0.15));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
[data-theme="light"] .card-icon {
  background: linear-gradient(135deg, rgba(0,85,204,0.1), rgba(0,51,170,0.1));
  border-color: rgba(0,85,204,0.2);
}

.card h3 { margin-bottom: 0.75rem; }
.card p  { font-size: 0.9rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.card-arrow { transition: transform 0.2s; display: inline-block; }
.card:hover .card-arrow { transform: translateX(4px); }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  max-width: 560px;
}

/* ── BADGE / TAG ── */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.3);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-lg);
}
[data-theme="light"] .badge { border-color: rgba(0,85,204,0.3); }

/* ── DIVIDER ── */
hr, .divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── SURFACE BAND ── */
.band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
  box-shadow: 0 0 0 3px rgba(0,85,204,0.12);
}

textarea { resize: vertical; min-height: 120px; }

/* ── TABLE ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead tr { border-bottom: 2px solid var(--border); }
th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tr:hover td { background: var(--surface); }

/* ── ALERT / NOTICE ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: var(--surface);
}
.alert-info    { border-color: rgba(0,212,255,0.3); color: var(--accent); }
.alert-success { border-color: rgba(0,200,100,0.3); color: #00c864; }
.alert-warning { border-color: rgba(255,180,0,0.3); color: #ffb400; }
.alert-danger  { border-color: rgba(255,60,60,0.3); color: #ff4040; }

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
[data-theme="light"] .footer-links a:hover { color: #fff; }

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

.footer-email {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  transition: opacity var(--transition);
}
.footer-email:hover { opacity: 0.75; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.animate-fadeup { animation: fadeUp 0.8s ease both; }
.animate-fadein { animation: fadeIn 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── HERO BACKGROUND HELPERS ── */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,212,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(0,102,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* ── UTILITY ── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }

.d-flex   { display: flex; }
.d-grid   { display: grid; }
.d-block  { display: block; }
.d-none   { display: none; }

.align-center   { align-items: center; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.flex-wrap      { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.w-full { width: 100%; }
.max-w-sm  { max-width: 480px; }
.max-w-md  { max-width: 640px; }
.max-w-lg  { max-width: 860px; }
.max-w-xl  { max-width: 1100px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  h1 { font-size: 2.4rem; }
  .section { padding: 4rem 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .col-half, .col-third { flex: 1 1 100%; }
  .hide-mobile { display: none; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none; }
}
