/* =============================================
   NEXTVIA — Premium Website Stylesheet
   ============================================= */

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

:root {
  --bg:        #08090c;
  --bg-2:      #0d0f14;
  --bg-card:   #111318;
  --bg-card-h: #161920;
  --border:    rgba(255,255,255,0.07);
  --accent:    #5b8ef0;
  --accent-2:  #8b5cf6;
  --accent-g:  linear-gradient(135deg, #5b8ef0 0%, #8b5cf6 100%);
  --text:      #e8eaf0;
  --text-muted:#7a7f8e;
  --text-dim:  #3a3f50;
  --white:     #ffffff;
  --radius:    14px;
  --radius-lg: 22px;
  --font:      'Inter', sans-serif;
}

html { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  height: 100%;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ══════════════════════════════════════
   FULLPAGE SECTIONS
   Desktop: JS sets position:fixed + transforms
   Mobile: normal flow, free scroll
══════════════════════════════════════ */
.fp-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
}

.fp-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ── ENTRANCE ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.fp-section.fp-animate > * {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fp-section.fp-animate > *:nth-child(2) { animation-delay: 0.07s; }
.fp-section.fp-animate > *:nth-child(3) { animation-delay: 0.14s; }
.fp-section.fp-animate > *:nth-child(4) { animation-delay: 0.21s; }
.fp-section.fp-animate > *:nth-child(5) { animation-delay: 0.28s; }

/* ── TYPOGRAPHY ── */
.gradient-text {
  background: var(--accent-g);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  background: rgba(91,142,240,0.1); border: 1px solid rgba(91,142,240,0.25);
  border-radius: 100px; padding: 4px 14px; margin-bottom: 16px;
}
.section-header { text-align: center; max-width: 600px; margin: 0 auto 36px; }
.section-header h2 { font-size: clamp(24px,3.5vw,38px); font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.section-header p  { color: var(--text-muted); font-size: 15px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-g); color: #fff; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 100px; border: none; cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(91,142,240,.3);
}
.btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(91,142,240,.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 15px; font-weight: 500;
  padding: 13px 6px; transition: color .2s; cursor: pointer;
}
.btn-ghost:hover { color: var(--white); }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(8,9,12,.9);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon { height: 32px; width: auto; object-fit: contain; }
.logo-text { font-size: 18px; font-weight: 900; letter-spacing: -.5px; color: var(--white); }
.logo-text em { font-style: normal; background: var(--accent-g); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover { background: rgba(255,255,255,.05); }
.nav-cta {
  color: var(--white)!important; background: var(--accent-g)!important;
  padding: 8px 18px!important; border-radius: 100px!important;
}

.nav-right { display: flex; align-items: center; gap: 10px; }

/* Language toggle */
.lang-toggle {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s; font-family: var(--font);
}
.lang-toggle:hover { color: var(--white); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.lang-toggle--mobile {
  align-self: flex-start; margin-top: 8px;
}

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  background: rgba(8,9,12,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border); padding: 12px 20px 20px; gap: 2px;
}
.mobile-menu a {
  font-size: 16px; font-weight: 500; color: var(--text-muted);
  padding: 14px 0; border-bottom: 1px solid var(--border); transition: color .2s; cursor: pointer;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }
.mobile-menu.open { display: flex; }

/* ══════════════════════════════════════
   SECTION DOTS (desktop only)
══════════════════════════════════════ */
.fp-dots {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 1999; display: flex; flex-direction: column; gap: 10px;
}
.fp-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18);
  border: none; cursor: pointer; transition: background .3s, transform .3s; padding: 0;
}
.fp-dot:hover { background: rgba(255,255,255,.5); transform: scale(1.3); }
.fp-dot--active { background: var(--accent)!important; transform: scale(1.25); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 0;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .15; }
.glow-1 { width: 600px; height: 600px; top: -180px; left: -100px; background: radial-gradient(circle,#5b8ef0,transparent 70%); }
.glow-2 { width: 500px; height: 500px; bottom: -120px; right: -80px; background: radial-gradient(circle,#8b5cf6,transparent 70%); }

.hero-content {
  position: relative; z-index: 1; max-width: 780px;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  background: rgba(91,142,240,.08); border: 1px solid rgba(91,142,240,.2);
  border-radius: 100px; padding: 5px 16px; margin-bottom: 20px;
}
#hero h1 {
  font-size: clamp(32px, 6vw, 68px); font-weight: 900;
  line-height: 1.08; letter-spacing: -2px; color: var(--white); margin-bottom: 20px;
}
.hero-sub { font-size: clamp(14px, 1.8vw, 17px); color: var(--text-muted); line-height: 1.7; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 1; display: flex; align-items: center;
  padding: 18px 36px; margin-top: 28px; align-self: center;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-bottom: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat { display: flex; flex-direction: column; align-items: center; padding: 0 28px; }
.stat-num {
  font-size: 32px; font-weight: 900; letter-spacing: -2px; line-height: 1;
  background: var(--accent-g); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-num sup { font-size: 16px; }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-top: 5px; letter-spacing: .5px; text-align: center; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  animation: hintPulse 2.5s ease-in-out infinite;
}
@keyframes hintPulse {
  0%,100% { opacity: .4; transform: translateX(-50%) translateY(0); }
  50%      { opacity: .9; transform: translateX(-50%) translateY(-4px); }
}
.scroll-arrow { width: 16px; height: 16px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

/* ══════════════════════════════════════
   HİZMETLER
══════════════════════════════════════ */
#hizmetler { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 64px; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; flex-direction: column;
  transition: border-color .3s, background .3s, transform .3s;
}
.service-card:hover { border-color: rgba(91,142,240,.3); background: var(--bg-card-h); transform: translateY(-3px); }
.service-card--featured { border-color: rgba(91,142,240,.3); background: linear-gradient(160deg,rgba(91,142,240,.07) 0%,var(--bg-card) 60%); }
.service-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 16px; }
.service-icon svg { width: 100%; height: 100%; }
.service-number { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 8px; }
.featured-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); background: rgba(91,142,240,.12); border: 1px solid rgba(91,142,240,.25);
  border-radius: 100px; padding: 3px 10px; margin-bottom: 8px; width: fit-content;
}
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.service-card > p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.service-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.service-features li { font-size: 12.5px; color: var(--text-muted); padding-left: 14px; position: relative; }
.service-features li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .5; }
.service-link { font-size: 13px; font-weight: 600; color: var(--accent); transition: color .2s; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; cursor: pointer; }
.service-link:hover { color: var(--white); }

/* ══════════════════════════════════════
   HAKKIMIZDA
══════════════════════════════════════ */
#hakkimizda { background: var(--bg); border-top: 1px solid var(--border); padding-top: 64px; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: clamp(24px,3.5vw,40px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 18px; }
.about-text p { color: var(--text-muted); font-size: 14.5px; line-height: 1.75; margin-bottom: 14px; }
.about-text .btn-primary { margin-top: 10px; }
.about-pillars { display: flex; flex-direction: column; gap: 16px; }
.pillar { display: flex; gap: 12px; align-items: flex-start; }
.pillar-icon { width: 28px; height: 28px; min-width: 28px; display: flex; align-items: center; justify-content: center; background: rgba(91,142,240,.08); border: 1px solid rgba(91,142,240,.18); border-radius: 7px; color: var(--accent); font-size: 13px; margin-top: 2px; }
.pillar strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.pillar span { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* ══════════════════════════════════════
   NEXTAPPS
══════════════════════════════════════ */
#nextapps { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 16px; }
.apps-grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.apps-grid5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.apps-sublabel { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; margin-top: 4px; }
.apps-sublabel--proto { color: rgba(255,255,255,.35); margin-top: 8px; }
.live-pulse { width: 8px; height: 8px; flex-shrink: 0; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.proto-icon { font-size: 12px; line-height: 1; }
.card-live-badge { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .8px; color: #22c55e; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); border-radius: 4px; padding: 1px 5px; margin-top: 2px; }
.card-test-badge { color: #f59e0b; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); }
.app4-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s, transform .3s;
}
.app4-card:hover { border-color: rgba(91,142,240,.3); transform: translateY(-3px); }
.app4-header { display: flex; flex-direction: column; gap: 10px; }
.app4-img { width: 100%; height: 65px; object-fit: cover; border-radius: 7px; background: rgba(255,255,255,.03); }
.app4-title-block h3 { font-size: 15px; font-weight: 800; color: var(--white); line-height: 1.2; }
.product-plus { background: var(--accent-g); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.app4-sub { font-size: 11px; color: var(--accent); font-weight: 500; margin-top: 3px; }
.app4-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.app4-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.app-tag { display: inline-block; font-size: 10px; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 5px; padding: 2px 8px; }

/* ══════════════════════════════════════
   İLETİŞİM
══════════════════════════════════════ */
#iletisim { background: var(--bg); border-top: 1px solid var(--border); padding-top: 64px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-text h2 { font-size: clamp(24px,3.5vw,40px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 14px; }
.contact-text p { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 24px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.contact-item svg { width: 16px; height: 16px; min-width: 16px; color: var(--accent); }
.contact-item a { color: var(--text-muted); transition: color .2s; }
.contact-item a:hover { color: var(--white); }
.footer-logo-img { max-width: 180px; height: auto; opacity: .7; border-radius: 8px; transition: opacity .2s; }
.footer-logo-img:hover { opacity: 1; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 13px; font-size: 14px; font-family: var(--font); color: var(--text);
  outline: none; transition: border-color .2s, background .2s; resize: vertical; -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7f8e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer;
}
.form-group select option { background: #161920; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { border-color: rgba(91,142,240,.5); background: rgba(91,142,240,.04); }
.form-group input::placeholder,.form-group textarea::placeholder { color: var(--text-dim); }
.form-footer { text-align: center; font-size: 11px; color: var(--text-dim); }

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.lightbox-trigger { cursor: zoom-in; transition: opacity .2s, transform .2s; }
.lightbox-trigger:hover { opacity: .85; transform: scale(1.03); }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lbFade .25s ease both; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
#lightboxImg {
  max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7); animation: lbZoom .3s cubic-bezier(0.22,1,0.36,1) both; cursor: default;
}
@keyframes lbZoom { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; font-size: 32px; line-height: 1;
  color: rgba(255,255,255,.6); background: none; border: none; cursor: pointer;
  transition: color .2s, transform .2s;
}
.lightbox-close:hover { color: #fff; transform: scale(1.15); }

/* ══════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .apps-grid4 { grid-template-columns: repeat(2,1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════ */
@media (max-width: 767px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .fp-dots { display: none; }

  /* Hero */
  #hero { padding-top: 80px; padding-left: 16px; padding-right: 16px; }
  #hero h1 { letter-spacing: -1.5px; }
  .hero-stats {
    flex-wrap: wrap; justify-content: center; gap: 16px 0;
    padding: 16px 20px; border-radius: 16px 16px 0 0;
  }
  .stat { padding: 0 16px; }
  .stat-num { font-size: 26px; }
  .stat-divider { width: 1px; height: 30px; }
  .scroll-hint { display: none; }

  /* Sections padding */
  #hizmetler, #hakkimizda, #nextapps, #iletisim { padding-top: 80px; padding-bottom: 40px; }
  .fp-center { justify-content: flex-start; padding-top: 16px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .section-header { margin-bottom: 24px; }

  /* Apps */
  .apps-grid4 { grid-template-columns: 1fr; gap: 12px; }
  .app4-img { height: 120px; }

  /* About */
  .about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 18px; }

  /* Buttons */
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .about-pillars { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 40px; height: 1px; }
}
