:root{
  /* Brand palette */
  --b-blue: #2f80ed;
  --b-blue-2: #56ccf2;
  --b-ink: #0b1220;
  --b-muted: rgba(11,18,32,.68);
  --b-card: rgba(255,255,255,.78);
  --b-border: rgba(47,128,237,.18);
  --b-shadow: 0 18px 50px rgba(47,128,237,.14);
  --b-radius: 18px;
}

/* ============ Global ============ */
html{ scroll-behavior:smooth; }

body{
  color: var(--b-ink);
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(47,128,237,.18), rgba(47,128,237,0) 55%),
    radial-gradient(900px 520px at 88% 22%, rgba(86,204,242,.14), rgba(86,204,242,0) 55%),
    linear-gradient(135deg, #ffffff 0%, #eef7ff 55%, #dff0ff 100%);
}

.container{ max-width: 1120px; }

/* Better section spacing */
.section{
  padding: clamp(64px, 6vw, 96px) 0;
  position: relative;
}

.section-title{
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  margin-bottom: 18px;
}

.section-title::after{
  width: 64px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--b-blue), rgba(47,128,237,0));
}

/* ============ Navbar ============ */
.navbar{
  background: rgba(255,255,255,.72) !important;
  border-bottom: 1px solid rgba(47,128,237,.10);
  backdrop-filter: blur(12px);
}

.navbar.scrolled{
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  border-bottom-color: rgba(47,128,237,.16);
}

.nav-link{
  font-weight: 650;
  color: rgba(11,18,32,.72) !important;
}

.nav-link:hover{
  color: rgba(11,18,32,.95) !important;
}

.nav-link::after{
  height: 2px;
  border-radius: 99px;
}

/* ============ Buttons ============ */
.btn-primary-custom,
.btn.btn-primary-custom{
  background: linear-gradient(135deg, var(--b-blue), var(--b-blue-2));
  border: none;
  box-shadow: 0 14px 30px rgba(47,128,237,.22);
}

.btn-primary-custom:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(47,128,237,.28);
}

.btn-outline-custom{
  background: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(47,128,237,.35) !important;
  backdrop-filter: blur(10px);
}

.btn-outline-custom:hover{
  background: rgba(47,128,237,.10) !important;
  color: rgba(11,18,32,.92) !important;
  border-color: rgba(47,128,237,.55) !important;
  box-shadow: 0 14px 34px rgba(47,128,237,.14);
}

/* ============ Hero ============ */
.hero{
  height: auto;
  min-height: 100svh;
  padding-top: 96px; /* avoid navbar overlap */
}

.hero-title{
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 3.2vw, 3.4rem);
}

.hero-subtitle{
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.75;
  color: var(--b-muted);
}

.hero-image{
  filter: drop-shadow(0 26px 50px rgba(47,128,237,.16));
}

/* SVG animation robustness */
.bahtera-hero-svg .float{ animation: bFloatY 3.8s ease-in-out infinite; }
.bahtera-hero-svg .float-slow{ animation: bFloatY 5.6s ease-in-out infinite; }
@keyframes bFloatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* ============ About panel ============ */
.cyber-panel{
  background: var(--b-card);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow);
}

/* ============ Services ============ */
.services{ background: transparent; }

#servicesGrid{ row-gap: 18px; }

.service-card{
  width: 100%;
  background: var(--b-card);
  border: 1px solid rgba(47,128,237,.16);
  border-radius: var(--b-radius);
  box-shadow: 0 14px 40px rgba(47,128,237,.10);
  padding: 18px 18px 16px;
  position: relative;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(900px 220px at 20% 0%, rgba(47,128,237,.18), transparent 60%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events:none;
}

.service-card:hover{
  transform: translateY(-4px);
  border-color: rgba(47,128,237,.32);
  box-shadow: 0 18px 52px rgba(47,128,237,.16);
}

.service-card:hover::before{ opacity: 1; }

.service-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(47,128,237,.10);
  border: 1px solid rgba(47,128,237,.20);
  margin-bottom: 12px;
}

.service-icon i{ color: var(--b-blue); font-size: 18px; }

.service-title{ font-weight: 850; font-size: 1.15rem; margin: 0 0 8px; }

.service-description{ margin: 0; color: var(--b-muted); line-height: 1.65; }

/* ============ Partners marquee ============ */
.partners-marquee{
  border-radius: var(--b-radius);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(47,128,237,.14);
  box-shadow: var(--b-shadow);
}

/* ============ Clients grid ============ */
.client-logo{
  border-radius: var(--b-radius);
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(47,128,237,.14);
  box-shadow: 0 12px 34px rgba(47,128,237,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.client-logo:hover{ transform: translateY(-4px); box-shadow: 0 18px 46px rgba(47,128,237,.14); }

/* ============ Contact cards ============ */
.contact-item{
  border-radius: var(--b-radius);
  border: 1px solid rgba(47,128,237,.14) !important;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 34px rgba(47,128,237,.10);
}

.contact-item a{ text-decoration: none !important; }
.contact-item a:hover{ text-decoration: underline !important; }

/* ============ Footer ============ */
.footer{
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(47,128,237,.18), rgba(47,128,237,0) 60%),
    radial-gradient(900px 520px at 80% 10%, rgba(86,204,242,.14), rgba(86,204,242,0) 60%),
    linear-gradient(180deg, #0b1220 0%, #070b14 100%);
  color: rgba(255,255,255,.82);
}

.footer .footer-description,
.footer .footer-links a,
.footer .footer-links p{ color: rgba(255,255,255,.72); }

.footer .footer-links a:hover{ color: #fff; }

.social-link{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.10);
}

.social-link:hover{
  background: rgba(47,128,237,.22);
  border-color: rgba(47,128,237,.35);
}

.platform{
  background: rgba(255,255,255,.06);
  border-left-color: rgba(47,128,237,.75);
}

.platform-link{ color: rgba(255,255,255,.78); }
.platform:hover .platform-link span{ color: #fff; }

.copyright{ border-top: 1px solid rgba(255,255,255,.08); }

/* ============ Back to top ============ */
.back-to-top{ box-shadow: 0 16px 40px rgba(47,128,237,.22); }

/* ============ Responsive refinements ============ */
@media (max-width: 992px){
  .hero{ padding-top: 88px; }
  .hero-content{ text-align: center; margin: 0 auto; }
  .hero .d-flex{ justify-content: center; }
}

@media (max-width: 576px){
  .navbar-brand img{ width: 150px; }
  .service-card{ padding: 16px; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
}
