/* ============================================================
   FLBEAI — style.css (Blue Edition)
   ============================================================ */

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

:root {
  --white: #ffffff;
  --off: #f8fbff;

  --ink: #0a0c10;
  --slate: #475569;
  --muted: #94a3b8;

  --blue: #2563eb;
  --blue2: #1d4ed8;
  --blue-lt: #eff6ff;
  --about-lt: #eff6ff;

  --border: #d4dae3;
  --radius: 12px;
  --shadow-lg: 0 20px 25px -5px rgba(37, 99, 235, 0.08),
    0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Figtree", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink2);
}
.logo-tagline {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--blue);
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border2);
  border-radius: 7px;
  overflow: hidden;
}
.lang-btn {
  padding: 5px 13px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  background: var(--blue);
  color: #fff;
  font-family: "Figtree", sans-serif;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--ink);
  color: #fff;
}

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 5% 100px;
  overflow: hidden;
  background: var(--white);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px; /* Madhësia e katrorëve */
  mask-image: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    black 0%,
    transparent 100%
  );
  opacity: 0.45;
  pointer-events: none;
}

.ai-bg{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.ai-bg span{
  position:absolute;
  width:6px;
  height:6px;
  background:#6366f1;
  border-radius:50%;
  opacity:.35;
  animation:aiFloat 14s linear infinite;
}

.ai-bg span:nth-child(1){left:15%; animation-delay:0s;}
.ai-bg span:nth-child(2){left:35%; animation-delay:3s;}
.ai-bg span:nth-child(3){left:55%; animation-delay:6s;}
.ai-bg span:nth-child(4){left:75%; animation-delay:9s;}
.ai-bg span:nth-child(5){left:90%; animation-delay:12s;}

@keyframes aiFloat{
  0%{
    transform:translateY(100vh) scale(.7);
    opacity:0;
  }
  20%{
    opacity:.4;
  }
  80%{
    opacity:.4;
  }
  100%{
    transform:translateY(-20vh) scale(1.2);
    opacity:0;
  }
}

.hero-bg-sphere-wrap {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  height: 80vh;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-sphere {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(37, 99, 235, 0.12) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  filter: blur(60px);
}

.hero-badge {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--white);
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero-title {
  position: relative;
  z-index: 10;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  max-width: 900px;
  color: var(--ink);
}

.hero-title em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  position: relative;
  z-index: 10;
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.ctas {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-pri {
  padding: 14px 32px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}
.btn-pri:hover {
  background: var(--blue2);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 14px 32px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
}
.btn-ghost:hover {
  background: var(--blue-lt);
  border-color: var(--blue);
}

.hero-stats {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 700px;
}

.stat-n {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.stat-l {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── TECH MARQUEE ─────────────────────────────────────────── */
.tech-marquee {
  background: var(--ink);
  color: var(--white);
  padding: 2rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-content span {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  margin: 0 4rem;
  text-transform: uppercase;
  opacity: 0.9;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── SERVICES ────────────────────────────────────────────── */
#services {
  padding: 40px 5%;
}
.sec-header-centered {
  max-width: 700px;
  margin: 0 auto 4rem;
}
.sec-tag {
  color: var(--blue);
  background: var(--blue-lt);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}
.sec-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.sec-sub {
  color: var(--slate);
  font-size: 1.05rem;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.svc-card {
  background: var(--white);
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: 0.4s;
  text-align: left;
  cursor: pointer;
}
.svc-card:hover {
  transform: translateY(-10px);
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}
.svc-card:hover .svc-icon-wrap {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.05);
}
.svc-card:hover .enterprise-icon {
  color: #ffffff;
  transform: rotate(-5deg);
}

.svc-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  opacity: 0.3;
}

.svc-icon-wrap {
  background: linear-gradient(135deg, var(--blue-lt) 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}
.duotone-icon {
  width: 100%;
  height: 100%;
}
.enterprise-icon {
  width:35px;
  height:35px;
  stroke-width:1.8;
  color: var(--blue);
  transition: all 0.3s ease;
  justify-content: center;
}

.secondary-fill {
  fill: var(--blue);
  opacity: 0.15;
  stroke: none;
}

.svc-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.svc-desc {
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.svc-footer-arrow {
  color: var(--blue);
  font-weight: 700;
  border: none;
}

/* ── ABOUT ───────────────────────────────────────────────── */
#about {
  padding: 100px 5%;
  background: rgba(239, 246, 255, 0.5);
}

.about-p {
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}
.about-flex-container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image-side {
  flex: 1;
  position: relative;
}
.about-text-side {
  flex: 1;
  text-align: left;
}

.img-wrapper img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.about-floating-card {
  position: absolute;
  bottom: -30px;
  right: -20px;
  background: var(--blue);
  color: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.chip {
  background: var(--white);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  display: inline-block;
  margin: 4px;
}
.chips-row {
  margin-bottom: 1rem;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.check-icon {
  color: var(--blue);
  font-size: 1.2rem;
}

/* ── AUDIENCE ────────────────────────────── */
#audience {
  padding: 80px 5%;
  background: var(--ink);
  text-align: center;
  color: var(--white);
}
.aud-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.aud-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  transition: all 0.25s;
}
.aud-card:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-4px);
}
.aud-card:hover .aud-name {
  color: var(--ink);
}

.aud-icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}
.aud-name {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

/* ── CONTACT ─────────────────────────────────────────────── */
#contact {
  padding: 100px 5%;
  max-width: 720px;
  margin: 0 auto;
}
.cform {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.fgrp {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.flbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
}
.finp,
.fsel,
.ftxt {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 15px;
  color: var(--ink);
  font-family: "Figtree", sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}
.finp:focus,
.fsel:focus,
.ftxt:focus {
  border-color: var(--ink);
  background: var(--white);
}
.fsubmit {
  width: 100%;
  padding: 14px;
  background: var(--blue2);
  color: var(--blue-lt);
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.fsubmit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(53, 99, 233, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(53, 99, 233, 0.05), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  padding: 80px 5% 32px;
  border-top: 1px solid rgba(20, 30, 50, 0.08);
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 30, 50, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 30, 50, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 85%);
  pointer-events: none;
  opacity: 0.5;
}

.ft-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  padding: 38px 42px;
  border: 1px solid rgba(20, 30, 50, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 10px 30px rgba(17, 24, 39, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* =========================
   LEFT / BRAND
========================= */
.ft-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* justify-content: space-between; */
  gap: 20px;
  min-width: 260px;
}

.ft-brand .logo-name {
  position: relative;
  color: var(--blue2);
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.ft-brand .logo-name::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue2), transparent);
  margin-top: 14px;
}

.ft-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
  max-width: 220px;
}

/* =========================
   RIGHT / INFO
========================= */
.ft-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 38px;
}

.ft-location-container {
  width: 100%;
}

.ft-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 700;
  text-align: right;
}

/* =========================
   LOCATION CARDS
========================= */
.location-grid {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.ft-loc-item {
  min-width: 180px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 30, 50, 0.07);
  box-shadow: 0 4px 18px rgba(20, 30, 50, 0.035);
  transition: all 0.28s ease;
}

.ft-loc-item:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 99, 233, 0.16);
  box-shadow: 0 12px 28px rgba(53, 99, 233, 0.08);
}

.icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue2);
  background: rgba(53, 99, 233, 0.08);
  border: 1px solid rgba(53, 99, 233, 0.1);
  flex-shrink: 0;
}

.icon-wrapper svg {
  width: 16px;
  height: 16px;
}

.loc-details {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.city {
  color: var(--slate);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.country {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

/* =========================
   COPYRIGHT
========================= */
.ft-copy-section {
  width: 100%;
}

.ft-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(20, 30, 50, 0.08) 20%,
    rgba(20, 30, 50, 0.08) 80%,
    transparent 100%
  );
  margin-bottom: 18px;
  width: 100%;
}

.ft-copy-wrapper {
  display: flex;
  justify-content:end; 
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.brand-copyright {
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.01em;
}

.lang-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.lang-group span {
  transition: opacity 0.25s ease;
}

.lang-group span:hover {
  opacity: 0.75;
}

.lang-sep {
  color: rgba(20, 30, 50, 0.18);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 992px) {
  .ft-wrapper {
    flex-direction: column;
    gap: 42px;
    padding: 30px 24px;
  }

  .ft-brand {
    min-width: unset;
    width: 100%;
    gap: 16px;
  }

  .ft-info {
    align-items: flex-start;
    width: 100%;
  }

  .ft-title {
    text-align: left;
  }

  .location-grid {
    justify-content: flex-start;
  }

  .ft-copy-wrapper {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 60px 5% 24px;
  }

  .ft-wrapper {
    border-radius: 24px;
    gap: 34px;
  }

  .ft-brand .logo-name {
    font-size: 1.7rem;
  }

  .ft-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .location-grid {
    flex-direction: column;
    width: 100%;
  }

  .ft-loc-item {
    width: 100%;
  }

  .ft-copy-wrapper,
  .lang-group {
    text-align: left;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-badge {
  animation: fadeUp 0.5s ease both;
}
.hero-title {
  animation: fadeUp 0.5s 0.1s ease both;
}
.hero-sub {
  animation: fadeUp 0.5s 0.18s ease both;
}
.ctas {
  animation: fadeUp 0.5s 0.26s ease both;
}

/* ── RESPONSIVE & UTILS ──────────────────────────────────── */

/* Tablet & Mobile (Standard) */
@media (max-width: 992px) {
  .about-flex-container {
    flex-direction: column;
    gap: 60px;
    text-align: center;
  }
  .about-text-side {
    text-align: center;
  }
  .check-list {
    align-items: center;
    text-align: left;
  }
}

@media (max-width: 768px) {
  /* 1. Hamburger Navigation Logic */
  .nav-links {
    display: none;
  }

  /* 2. Hero Adjustments */
  #hero {
    padding: 120px 5% 60px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
  }
  .ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  /* 3. Services Grid */
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .sec-title {
    font-size: 2.2rem;
  }

  /* 4. About Floating Card Fix */
  .about-floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    width: 85%;
    max-width: 260px;
    margin: -40px auto 0;
    padding: 20px;
    z-index: 5;
  }

  /* 5. Footer Fixes */
  .ft-wrapper {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .ft-brand {
    flex-direction: column;
    gap: 10px;
  }
  .ft-tagline {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 10px;
  }
  .ft-info {
    flex-direction: column;
    gap: 15px;
  }
  .ft-copy {
    border-left: none;
    padding-left: 0;
  }
}

/* iPhone 12 Pro & Small Devices (Specific Fixes) */
@media (max-width: 400px) {
  .sec-title {
    font-size: 1.8rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .frow {
    grid-template-columns: 1fr; /* Form inputs stack */
  }
  .cform {
    padding: 1.5rem;
  }
}

/* Language Visibility Logic */
[data-lang] {
  display: none;
}
[data-lang="en"] {
  display: revert;
}
