/* =========================================================
   VexCore Teknoloji — Global Styles (Premium Motion tema)
   ========================================================= */

* { font-family: 'Inter', system-ui, sans-serif; }
html { scroll-behavior: smooth; }
body { background: #fff; color: #0A2540; overflow-x: hidden; }

.container-x { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container-x { padding: 0 40px; } }

/* =========================================================
   HEADER — Glass sticky (dark over hero, light when scrolled)
   ========================================================= */
.site-header {
  background: rgba(10, 37, 64, 0.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header .nav-link { color: rgba(255, 255, 255, 0.75); }
.site-header .nav-link:hover { color: #60a5fa; }
.site-header .logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: filter .3s ease, opacity .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #E5EAF0;
  box-shadow: 0 1px 12px rgba(10, 37, 64, 0.05);
}
.site-header.is-scrolled .nav-link { color: rgba(10, 37, 64, 0.75); }
.site-header.is-scrolled .nav-link:hover { color: #1E88E5; }
.site-header.is-scrolled .logo-img { filter: none; opacity: 1; }
.site-header.is-scrolled .menu-toggle { color: #0A2540; }

.menu-toggle { color: #fff; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #1E88E5, #1976D2);
  color: #fff; padding: 14px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  white-space: nowrap;
  position: relative; overflow: hidden;
  border: none; cursor: pointer;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #3b9fe8, #2180d8);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(30, 136, 229, 0.45); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 14px 28px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px; font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all .25s ease; white-space: nowrap;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(96, 165, 250, 0.5); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #0A2540;
  padding: 12px 24px; border-radius: 10px;
  border: 1px solid #E5EAF0;
  font-size: 14px; font-weight: 600;
  transition: all .25s ease; white-space: nowrap;
}
.btn-outline-dark:hover { border-color: #1E88E5; color: #1E88E5; background: rgba(30, 136, 229, 0.04); }

/* =========================================================
   EYEBROWS & CHIPS
   ========================================================= */
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 9999px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.12), rgba(96, 165, 250, 0.06));
  border: 1px solid rgba(96, 165, 250, 0.25);
  font-size: 13px; font-weight: 500; color: #c4dfff;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 9999px;
  background: rgba(30, 136, 229, 0.1);
  border: 1px solid rgba(30, 136, 229, 0.2);
  color: #1E88E5;
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-grid-anim {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridDrift 20s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 50px 50px; }
}

.glow-orb {
  position: absolute; border-radius: 9999px;
  filter: blur(120px); pointer-events: none;
}
.glow-orb.pulse-blue {
  background: #1E88E5; opacity: .4;
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.12); }
}

.hero-heading {
  font-size: 44px; line-height: 1.05; font-weight: 800;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) { .hero-heading { font-size: 64px; } }
@media (min-width: 1280px) { .hero-heading { font-size: 76px; } }

.hero-heading .word {
  display: inline-block;
  opacity: 0; transform: translateY(40px);
  animation: wordReveal .8s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes wordReveal { to { opacity: 1; transform: translateY(0); } }

.hero-reveal {
  opacity: 0; transform: translateY(24px);
  animation: wordReveal 1s cubic-bezier(.16, 1, .3, 1) forwards;
}

/* =========================================================
   GLASS LOGO CARD (hero right side)
   ========================================================= */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 56px 48px;
  text-align: center;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 30px 60px -20px rgba(10, 37, 64, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative; overflow: hidden;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.glass-card::before {
  content: ''; position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, transparent, rgba(96, 165, 250, 0.4), transparent 60%);
  animation: rotate 8s linear infinite;
  z-index: -1;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* =========================================================
   STATS ROW
   ========================================================= */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255, 255, 255, 0.12);
  border-radius: 16px; overflow: hidden;
  margin-top: 64px;
}
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }
.stat-cell {
  background: rgba(10, 37, 64, 0.6);
  padding: 24px 28px;
  backdrop-filter: blur(8px);
}
.stat-label {
  font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #60a5fa; font-weight: 700;
}
.stat-value { font-size: 20px; font-weight: 700; color: #fff; margin-top: 8px; }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-title {
  font-size: 36px; font-weight: 800; line-height: 1.08;
  letter-spacing: -0.025em; color: #0A2540; margin-top: 20px;
}
@media (min-width: 768px) { .section-title { font-size: 48px; } }
@media (min-width: 1024px) { .section-title { font-size: 56px; } }

.section-sub {
  margin-top: 22px; max-width: 680px;
  font-size: 17px; line-height: 1.7; color: #64748b;
}
@media (min-width: 768px) { .section-sub { font-size: 18px; } }

/* =========================================================
   SOLUTION CARDS (Çözümlerimiz)
   ========================================================= */
.solution-card {
  display: block; background: #fff;
  border: 1px solid #E5EAF0; border-radius: 20px;
  padding: 32px 28px;
  transition: all .35s cubic-bezier(.16, 1, .3, 1);
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
}
.solution-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #1E88E5, #60a5fa);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
.solution-card:hover {
  border-color: #1E88E5;
  box-shadow: 0 30px 60px -20px rgba(30, 136, 229, 0.2);
  transform: translateY(-6px);
}
.solution-card:hover::before { transform: scaleX(1); }
.solution-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.15), rgba(30, 136, 229, 0.05));
  color: #1E88E5; border: 1px solid rgba(30, 136, 229, 0.15);
  display: flex; align-items: center; justify-content: center;
}
.solution-card h3 { font-size: 20px; font-weight: 700; color: #0A2540; margin-top: 24px; }
.solution-card p { font-size: 14px; line-height: 1.7; color: #64748b; margin-top: 12px; }
.solution-card .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; color: #1E88E5; font-size: 14px; font-weight: 600;
  transition: gap .3s ease;
}
.solution-card:hover .arrow { gap: 10px; }

/* =========================================================
   WHY VEXCORE CARDS (scroll-triggered)
   ========================================================= */
.why-card {
  position: relative; background: #fff;
  border: 1px solid #E5EAF0; border-radius: 20px;
  padding: 36px 32px;
  opacity: 0; transform: translateY(60px) scale(.95);
  transition:
    opacity .9s cubic-bezier(.16, 1, .3, 1),
    transform .9s cubic-bezier(.16, 1, .3, 1),
    border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.why-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.why-card::before {
  content: ''; position: absolute; top: -100%; left: 0; right: 0; height: 100%;
  background: linear-gradient(180deg, rgba(30, 136, 229, 0.08), transparent);
  transition: top .6s cubic-bezier(.16, 1, .3, 1);
}
.why-card.is-visible::before { top: 0; }
.why-card:hover {
  border-color: #1E88E5;
  box-shadow: 0 30px 60px -20px rgba(30, 136, 229, 0.25);
  transform: translateY(-4px);
}
.why-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.15), rgba(30, 136, 229, 0.05));
  color: #1E88E5; border: 1px solid rgba(30, 136, 229, 0.15);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.why-card h3 { font-size: 19px; font-weight: 700; color: #0A2540; margin-top: 24px; position: relative; z-index: 1; }
.why-card p { font-size: 14px; line-height: 1.7; color: #64748b; margin-top: 12px; position: relative; z-index: 1; }

/* =========================================================
   Generic fade-up (for section heads, paragraphs, form cards)
   ========================================================= */
.fade-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   TECH VISION (Dashboard mockup) — dark section
   ========================================================= */
.dashboard-mockup {
  background: rgba(10, 37, 64, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}
.dashboard-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}
.dashboard-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  background: rgba(30, 136, 229, 0.15); color: #60a5fa;
  border: 1px solid rgba(30, 136, 229, 0.25);
  white-space: nowrap;
}
.dashboard-chip.red { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.25); }
.dashboard-chip.green { background: rgba(34, 197, 94, 0.15); color: #86efac; border-color: rgba(34, 197, 94, 0.25); }

/* =========================================================
   FORM
   ========================================================= */
.form-card {
  background: #fff; border: 1px solid #E5EAF0; border-radius: 24px;
  padding: 32px; box-shadow: 0 30px 60px -20px rgba(10, 37, 64, 0.08);
}
@media (min-width: 768px) { .form-card { padding: 40px; } }

.form-input {
  width: 100%; padding: 14px 18px; border: 1px solid #E5EAF0;
  border-radius: 10px; font-size: 14px;
  transition: border .2s, box-shadow .2s;
  background: #fff; color: #0A2540;
  font-family: inherit;
}
.form-input:focus { outline: none; border-color: #1E88E5; box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12); }
.form-label { font-size: 13px; font-weight: 600; color: #0A2540; margin-bottom: 8px; display: block; }

.form-status { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-top: 16px; }
.form-status.success { background: rgba(34, 197, 94, 0.1); color: #15803d; border: 1px solid rgba(34, 197, 94, 0.25); }
.form-status.error { background: rgba(239, 68, 68, 0.1); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.25); }

/* =========================================================
   MOBILE MENU
   ========================================================= */
[data-mobile-menu].hidden { display: none; }

.site-header:not(.is-scrolled) [data-mobile-menu] {
  background: rgba(10, 37, 64, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}
.site-header:not(.is-scrolled) [data-mobile-menu] a {
  color: rgba(255, 255, 255, 0.8);
}
.site-header:not(.is-scrolled) [data-mobile-menu] a:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================================
   BREADCRUMB (on detail pages)
   ========================================================= */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.65); transition: color .2s; }
.breadcrumb a:hover { color: #60a5fa; }

/* =========================================================
   UTILITY
   ========================================================= */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.3), transparent);
}
