:root {
  --c-bg-900: #020617;
  --c-bg-800: #0f172a;
  --c-bg-700: #111827;
  --c-bg-600: #1e293b;
  --c-primary: #0ea5e9;
  --c-secondary: #38bdf8;
  --c-tertiary: #22d3ee;
  --c-text: #ffffff;
  --c-muted: #94a3b8;
  --c-glow: #00d4ff;
  --shadow-soft: 0 20px 40px rgba(2, 6, 23, 0.5);
  --shadow-neon: 0 0 30px rgba(0, 212, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--c-text);
  background: radial-gradient(circle at 20% 15%, rgba(14, 165, 233, 0.15), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.12), transparent 38%),
    var(--c-bg-900);
  overflow-x: hidden;
}

main,
section {
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.86));
  pointer-events: none;
  z-index: -2;
}

.font-heading {
  font-family: "Playfair Display", serif;
}

.font-modern {
  font-family: "Poppins", sans-serif;
}

.font-brand {
  font-family: "Montserrat", sans-serif;
}

.brand-logo {
  display: block;
  width: 142px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.footer-logo {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
}

.glass {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.glow-border {
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: var(--shadow-neon);
}

.nav-scrolled {
  background: rgba(2, 6, 23, 0.82) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
}

.section-title {
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.premium-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.premium-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 45%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.premium-btn:hover::before {
  transform: translateX(120%);
}

.premium-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.35);
}

.service-card,
.solution-card,
.team-card,
.testimonial-card,
.benefit-card,
.gallery-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover,
.solution-card:hover,
.team-card:hover,
.testimonial-card:hover,
.benefit-card:hover,
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.3);
  border-color: rgba(0, 212, 255, 0.45);
}

.card-image {
  transition: transform 0.6s ease;
}

.service-card:hover .card-image,
.solution-card:hover .card-image,
.gallery-item:hover .card-image {
  transform: scale(1.08);
}

.hero-overlay {
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.48), rgba(14, 165, 233, 0.2));
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  position: relative;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 9px;
  border-radius: 999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-glow);
  animation: indicator 1.6s infinite;
}

@keyframes indicator {
  0% {
    top: 6px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 23px;
    opacity: 0;
  }
}

#scrollProgress {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-glow));
  z-index: 70;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-bg-900);
  display: grid;
  place-items: center;
}

.loader-ring {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 3px solid rgba(56, 189, 248, 0.25);
  border-top-color: var(--c-glow);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#mouseGlow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.17) 0%, transparent 65%);
  transform: translate(-50%, -50%);
}

.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.faq-item button[aria-expanded="true"] + .faq-content {
  max-height: 220px;
  opacity: 1;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease;
}

.masonry {
  column-count: 3;
  column-gap: 1rem;
}

.masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 60;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 12px 25px rgba(2, 6, 23, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 34px rgba(0, 212, 255, 0.22);
}

.footer-link,
.nav-link {
  transition: color 0.25s ease;
}

.footer-link:hover,
.nav-link:hover {
  color: var(--c-tertiary);
}

.premium-input {
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--c-text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.premium-input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(14, 165, 233, 0.1);
  color: #bae6fd;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  pointer-events: none;
}

[data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}

#scrollTopBtn {
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .masonry {
    column-count: 2;
  }
  .parallax {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .masonry {
    column-count: 1;
  }
  #mouseGlow {
    display: none;
  }

  .home-hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 4.5rem;
  }

  .home-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.78) 45%, rgba(2, 6, 23, 0.92));
  }

  .home-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    line-height: 1.03;
  }

  .home-hero .grid {
    gap: 1.25rem;
  }

  .home-hero .glass {
    background: rgba(15, 23, 42, 0.72);
  }

  .floating-actions {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }
}
