/* ═══════════════════════════════════════════
   Tunahan Avcu – Global Stylesheet
   Dark Premium Tech Design System
═══════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --bg:        #07080f;
  --bg2:       #0e1020;
  --card-bg:   rgba(255, 255, 255, 0.03);
  --glass:     rgba(255, 255, 255, 0.04);
  --border:    rgba(255, 255, 255, 0.08);
  --accent:    #4f8ef7;
  --accent2:   #a78bfa;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --success:   #34d399;
  --danger:    #f87171;
  --input-bg:  rgba(255, 255, 255, 0.05);
  --font-body: 'DM Sans', sans-serif;
  --font-head: 'Playfair Display', serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow:    0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ─── LIGHT THEME OVERRIDES ─── */
body.light-theme {
  --bg:        #f8fafc;
  --bg2:       #ffffff;
  --card-bg:   rgba(15, 23, 42, 0.03);
  --glass:     rgba(15, 23, 42, 0.02);
  --border:    rgba(15, 23, 42, 0.08);
  --text:      #0f172a;
  --muted:     #64748b;
  --input-bg:  rgba(15, 23, 42, 0.04);
  --shadow:    0 16px 48px rgba(15, 23, 42, 0.08);
}
body.light-theme::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(79, 142, 247, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(167, 139, 250, 0.05) 0%, transparent 55%);
}
body.light-theme .navbar-dark-custom {
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
body.light-theme .navbar-dark-custom.scrolled {
  background: rgba(248, 250, 252, 0.96);
}
body.light-theme .nav-logo {
  color: #0f172a;
}
body.light-theme .nav-links li a {
  color: #475569;
}
body.light-theme .nav-links li a:hover,
body.light-theme .nav-links li a.active {
  color: var(--accent);
}
body.light-theme .mobile-menu {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
body.light-theme .mobile-menu a {
  color: #475569;
}
body.light-theme .test-card,
body.light-theme .sidebar-card,
body.light-theme .form-card,
body.light-theme .proj-card,
body.light-theme .service-card,
body.light-theme .info-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}
body.light-theme .form-control-dark {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}
body.light-theme .form-control-dark:focus {
  border-color: var(--accent);
  background: #ffffff;
}
body.light-theme h1, body.light-theme h2, body.light-theme h3, body.light-theme h4, body.light-theme .test-card .author strong {
  color: #0f172a;
}
body.light-theme .cookie-consent {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* ─── THEME TRANSITION SMOOTHNESS ─── */
body {
  transition: background-color 0.4s ease, color 0.4s ease;
}
.test-card, .sidebar-card, .form-card, .proj-card, .service-card, .navbar-dark-custom, .form-control-dark {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* ─── CUSTOM MOUSE CURSOR ─── */
.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  position: fixed;
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.3s;
}
.custom-cursor-circle {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent);
  position: fixed;
  border-radius: 50%;
  z-index: 99998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}
/* Hovering interactive items */
.custom-cursor-circle.hovered {
  width: 60px;
  height: 60px;
  background-color: rgba(79, 142, 247, 0.08);
  border-color: var(--accent2);
}
.custom-cursor-dot.hovered {
  width: 4px;
  height: 4px;
  background-color: var(--accent2);
}
@media (max-width: 1024px) {
  .custom-cursor-dot, .custom-cursor-circle { display: none !important; }
}

/* ─── MULTI-STEP WIZARD & CALC ─── */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}
.step-indicator::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.step-progress-bar {
  position: absolute;
  top: 14px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 2;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  z-index: 3;
  transition: border-color 0.4s, background-color 0.4s, color 0.4s, transform 0.3s;
}
.step-dot.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(79, 142, 247, 0.4);
}
.step-dot.completed {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}
.step-dot-label {
  position: absolute;
  top: 36px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-step-panel {
  display: none;
  animation: stepFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.form-step-panel.active {
  display: block;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Service Card selection in multi-step */
.service-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .service-select-grid { grid-template-columns: 1fr; }
}
.service-select-card {
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.3s, background-color 0.3s, transform 0.2s;
}
.service-select-card:hover {
  border-color: rgba(79, 142, 247, 0.3);
  transform: translateY(-2px);
}
.service-select-card.selected {
  border-color: var(--accent);
  background: rgba(79, 142, 247, 0.06);
  box-shadow: 0 0 20px rgba(79, 142, 247, 0.15);
}
.service-select-card input[type="radio"] {
  display: none;
}
.service-select-icon {
  font-size: 1.6rem;
}
.service-select-info {
  display: flex;
  flex-direction: column;
}
.service-select-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.service-select-desc {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Live Quote Box */
.live-price-box {
  background: rgba(79, 142, 247, 0.06);
  border: 1px dashed rgba(79, 142, 247, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.live-price-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.live-price-amount {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Step Wizard Actions */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.btn-prev-step {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-prev-step:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
body.light-theme .btn-prev-step:hover {
  background: rgba(0,0,0,0.03);
}
.btn-next-step {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: auto;
  transition: opacity 0.2s;
}
.btn-next-step:hover {
  opacity: 0.9;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ─── BASE ─── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated ambient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(79, 142, 247, 0.11) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(167, 139, 250, 0.09) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}



/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: #fff;
  line-height: 1.15;
}

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

a { color: var(--accent); transition: color 0.2s; text-decoration: none; }
a:hover { color: var(--text); }

strong { color: var(--text); font-weight: 600; }

/* ─── LAYOUT ─── */
main {
  padding-top: 80px; /* fixed navbar offset */
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── PAGE HERO (ortak tüm sayfalar) ─── */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 100px 0 60px;
  text-align: center;
}

.page-badge {
  display: inline-block;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── SECTION UTILITIES ─── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

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

.section-wrap {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

/* ─── GLASS CARD ─── */
.card-glass {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card-glass:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 142, 247, 0.25);
  box-shadow: var(--shadow);
}

/* ─── BUTTONS ─── */
.btn-primary,
.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(79, 142, 247, 0.3);
}
.btn-primary:hover,
.btn-primary-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 0 40px rgba(79, 142, 247, 0.45);
}

.btn-ghost,
.btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover,
.btn-ghost-cta:hover {
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: var(--text);
}

/* ─── BADGE ─── */
.badge-accent {
  display: inline-block;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
}

/* ─── CTA BANNER (ortak) ─── */
.cta-banner {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(79,142,247,0.15), rgba(167,139,250,0.1));
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 16px;
}
.cta-banner p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* ─── CTA STRIP ─── */
.cta-strip {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(79,142,247,0.12), rgba(167,139,250,0.08));
  border: 1px solid rgba(79,142,247,0.18);
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  backdrop-filter: blur(10px);
}
.cta-strip h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}
.cta-strip p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 0.9rem;
}

/* ─── FORM ELEMENTS ─── */
.input-dark,
.form-control-dark {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.input-dark::placeholder,
.form-control-dark::placeholder { color: var(--muted); }
.input-dark:focus,
.form-control-dark:focus {
  border-color: rgba(79, 142, 247, 0.5);
  background: rgba(79, 142, 247, 0.05);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}
select.form-control-dark { cursor: pointer; }
select.form-control-dark option { background: #1e293b; color: var(--text); }
textarea.form-control-dark { resize: vertical; min-height: 140px; }

/* ─── ALERTS ─── */
.alert-success,
.alert-success-dark {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.alert-error,
.alert-error-dark {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

/* ─── DIVIDER ─── */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  margin: 28px 0;
}

.divider-full {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LIVE DOT (online indicator) ─── */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  animation: pulse-dot 1.8s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}

/* ─── FADE UP ANIMATION ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.8s ease both; }
.fade-up-1 { animation: fadeUp 0.8s 0.15s ease both; }
.fade-up-2 { animation: fadeUp 0.8s 0.30s ease both; }
.fade-up-3 { animation: fadeUp 0.8s 0.45s ease both; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(79, 142, 247, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(79, 142, 247, 0.5); }

/* ─── SELECTION ─── */
::selection {
  background: rgba(79, 142, 247, 0.25);
  color: #fff;
}

/* ─── RESPONSIVE UTILITIES ─── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .container { padding: 0 16px; }
}

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

/* ─── BACK TO TOP BUTTON ─── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(79, 142, 247, 0.5);
}

/* ─── WHATSAPP BUTTON ─── */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  text-decoration: none;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PRELOADER ─── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(79, 142, 247, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.preloader-logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── PAGE TRANSITIONS ─── */
.page-transition {
  animation: pageEnter 0.5s ease both;
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── NAVBAR SCROLL EFFECT ─── */
.navbar-dark-custom.scrolled {
  background: rgba(7, 8, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.navbar-dark-custom.scrolled .navbar-inner {
  padding: 12px 24px;
}

/* ─── HAMBURGER X ANIMATION ─── */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── COOKIE CONSENT ─── */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 16, 32, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-consent.visible {
  transform: translateY(0);
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
}
.cookie-text p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}
.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-accept {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.cookie-accept:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.cookie-reject {
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-reject:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* ─── TESTIMONIAL SLIDER ─── */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 4px;
}
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}
.slider-btn {
  width: 44px;
  height: 44px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.slider-btn:hover {
  background: rgba(79,142,247,0.1);
  border-color: rgba(79,142,247,0.3);
  transform: scale(1.05);
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ─── STAT COUNTER ─── */
.stat-item .num {
  font-variant-numeric: tabular-nums;
}

/* ─── 404 PAGE ─── */
.error-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.error-code {
  font-family: var(--font-head);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease both;
}
.error-page h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.error-page p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.error-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.45s ease both;
}

/* ═══════════════════════════════════════
   COMPREHENSIVE RESPONSIVE
═══════════════════════════════════════ */

/* ─── TABLET (max-width: 900px) ─── */
@media (max-width: 900px) {
  .testimonial-slide {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cta-banner {
    padding: 48px 28px;
  }
  .cta-strip {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

/* ─── MOBILE (max-width: 768px) ─── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .container { padding: 0 16px; }

  main { padding-top: 70px; }

  .page-hero {
    padding: 80px 0 40px;
  }
  .page-hero h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  .page-hero p {
    font-size: 0.95rem;
  }

  .section-wrap {
    padding: 60px 0;
  }
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .cta-banner {
    padding: 40px 20px;
    border-radius: 18px;
  }
  .cta-banner h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .cta-strip {
    border-radius: 16px;
  }

  .btn-primary-cta {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  .btn-ghost-cta {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  /* WhatsApp & Back to top - smaller on mobile */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    bottom: 20px;
    left: 20px;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }

  /* Cookie consent mobile */
  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  /* Navbar mobile */
  .navbar-inner {
    padding: 14px 16px;
  }
  .navbar-dark-custom.scrolled .navbar-inner {
    padding: 10px 16px;
  }
}

/* ─── SMALL MOBILE (max-width: 480px) ─── */
@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 1.8rem;
  }

  .stats-row {
    gap: 24px;
  }
  .stat-item .num {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
  }
}

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

/* ═══════════════════════════════════════════
   PREMIUM DESIGN UPGRADES: TECH MESH & EFFECTS
═══════════════════════════════════════════ */

/* ─── GEOMETRIC TECH Izgarası (Tech Mesh Grid) ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-size: 44px 44px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}
body.light-theme::after {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.01) 1px, transparent 1px);
}

/* ─── GLOBAL RADIAL AMBIENT GLOW FOLLOWER ─── */
.ambient-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  filter: blur(40px);
}
body.light-theme .ambient-glow {
  background: radial-gradient(circle, rgba(79, 142, 247, 0.03) 0%, transparent 70%);
}

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 100001;
  transition: width 0.05s ease;
}

/* ─── CAM PARILTISI EFEKTİ (Glass Sweep Sheen) ─── */
.btn-primary, .btn-primary-cta, .btn-submit, .nav-cta, .btn-next-step, .nav-cta-mob {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .btn-primary-cta::before, .btn-submit::before, .nav-cta::before, .btn-next-step::before, .nav-cta-mob::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}
@keyframes btnSheen {
  0%   { left: -150%; }
  100% { left: 150%; }
}
.btn-primary:hover::before, 
.btn-primary-cta:hover::before, 
.btn-submit:hover::before, 
.nav-cta:hover::before, 
.btn-next-step:hover::before,
.nav-cta-mob:hover::before {
  animation: btnSheen 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── 3D CARD TILT PERSPECTIVE ─── */
.svc-card, .proj-card, .test-card, .sidebar-card, .info-card, .service-select-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
}

/* ═══════════════════════════════════════════
   PREMIUM EFFECTS: MOUSE TRAIL, GLOW BORDERS,
   MAGNETIC BUTTONS, TEXT REVEAL
═══════════════════════════════════════════ */

/* ─── MOUSE TRAIL PARTICLES ─── */
.trail-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 99997;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  animation: trailFade 0.8s ease-out forwards;
}
.trail-particle:nth-child(even) {
  background: var(--accent2);
  width: 4px;
  height: 4px;
}
@keyframes trailFade {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
}
@media (max-width: 1024px) {
  .trail-particle { display: none !important; }
}

/* ─── GLOWING CARD BORDER (fare pozisyonuna göre ışık) ─── */
.svc-card, .proj-card, .test-card, .info-card, .val-card {
  position: relative;
  overflow: hidden;
}
.svc-card::after, .proj-card::after, .test-card::after, .info-card::after, .val-card::after {
  content: '';
  position: absolute;
  top: var(--glow-y, 50%);
  left: var(--glow-x, 50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.svc-card:hover::after, .proj-card:hover::after, .test-card:hover::after,
.info-card:hover::after, .val-card:hover::after {
  opacity: 1;
}
/* Card content above glow */
.svc-card > *, .proj-card > *, .test-card > *, .info-card > *, .val-card > * {
  position: relative;
  z-index: 1;
}

/* ─── MAGNETIC BUTTON EFFECT ─── */
.btn-primary-cta, .btn-ghost-cta, .nav-cta, .btn-submit, .btn-next-step {
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.2s, box-shadow 0.2s;
}

/* ─── SMOOTH TEXT REVEAL ON SCROLL ─── */
.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.text-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PARALLAX FLOATING SHAPES (dekoratif) ─── */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.06;
  filter: blur(60px);
  z-index: 0;
}
.floating-shape-1 {
  width: 400px; height: 400px;
  background: var(--accent);
  top: 20%; left: -5%;
  animation: floatShape 18s ease-in-out infinite alternate;
}
.floating-shape-2 {
  width: 300px; height: 300px;
  background: var(--accent2);
  bottom: 10%; right: -5%;
  animation: floatShape 22s ease-in-out infinite alternate-reverse;
}
@keyframes floatShape {
  0%   { transform: translateY(0) translateX(0) scale(1); }
  50%  { transform: translateY(-30px) translateX(15px) scale(1.05); }
  100% { transform: translateY(10px) translateX(-10px) scale(0.95); }
}

/* ─── STAGGER ANIMATION FOR LISTS ─── */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── GLOW PULSE ON CTA BANNER ─── */
.cta-banner {
  animation: ctaGlowPulse 4s ease-in-out infinite;
}
@keyframes ctaGlowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(79, 142, 247, 0.08); }
  50%      { box-shadow: 0 0 60px rgba(79, 142, 247, 0.18), 0 0 120px rgba(167, 139, 250, 0.08); }
}

/* ─── GRADIENT BORDER ANIMATION (CTA kartı) ─── */
.teklif-cta-card {
  position: relative;
  overflow: hidden;
}
.teklif-cta-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: conic-gradient(from 0deg,
    var(--accent), var(--accent2), var(--accent), var(--accent2), var(--accent));
  border-radius: 24px;
  z-index: -1;
  animation: rotateBorder 6s linear infinite;
  opacity: 0.3;
}
@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

/* ─── SMOOTH NAVBAR LINK UNDERLINE ─── */
.nav-links a:not(.nav-cta) {
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  transform: scaleX(1);
  transform-origin: left;
}

