/* =========================================================
   
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ---------- THEME VARIABLES ---------- */
:root {
  /* Backgrounds */
  --bg-main: #030f24; /* page background */
  --bg-card: #141a24; /* cards/panels */
  --bg-soft: #101621; /* alt sections */

  /* Text */
  --text-main: #e5e7eb; /* soft white */
  --text-strong: #f9fafb;
  --text-muted: #9ca3af;

  /* Accents */
  --blue: #002c72; /* electric blue */
  --blue2: #0e3079; /* deeper blue */
  --blue-glow: rgba(10, 58, 136, 0.45);

  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.18);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 22px rgba(42, 78, 138, 0.22);

  /* Radius */
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* ---------- BASE ---------- */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  color: var(--text-main);

  /* Subtle neon glow in background (doesn't look tacky) */
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(59, 130, 246, 0.14), transparent 45%),
    radial-gradient(900px 500px at 80% 0%, rgba(37, 99, 235, 0.10), transparent 45%),
    radial-gradient(900px 500px at 50% 120%, rgba(239, 68, 68, 0.07), transparent 50%),
    var(--bg-main);

  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1150px, 92%);
  margin: 0 auto;
}

/* ---------- ACCESSIBILITY SKIP LINK ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  background: #0b1220;
  color: white;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.skip-link:focus {
  left: 10px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  /* glassy dark header */
  background: rgb(4, 32, 80);

  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.20));
}

.brand-name {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.nav {
  display: flex;
  gap: 14px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-strong);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 820px) {
  .nav,
  .header-actions {
    display: none;
  }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--r-md);
  padding: 10px 14px;

  font-weight: 900;
  border: 1px solid transparent;

  transition: transform 0.08s ease, background 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  color: white;
  box-shadow: 0 0 0 rgba(59, 130, 246, 0);
}
.btn-primary:hover {
  box-shadow: 0 0 18px var(--blue-glow);
  filter: brightness(1.03);
}

.btn-secondary {
  background: rgba(59, 130, 246, 0.10);
  border-color: rgba(59, 130, 246, 0.22);
  color: var(--text-strong);
}
.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.16);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn-full {
  width: 100%;
}

/* =========================================================
   HERO 
   ========================================================= */
.hero {
  padding: 18px 0 28px;
}

/* s*/
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--text-strong);
  font-weight: 900;

  margin: 10px 0 14px;

  /* friendly mini bounce on load */
  animation: popIn 700ms var(--ease) both;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: stretch;
}

/* Big image panel */
.hero-image {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: #0b1220;
  overflow: hidden;
  max-height: 400px;
  min-height: 320px;
  position: relative;

  box-shadow: var(--shadow-soft);
  transform-origin: center;
  animation: fadeUp 700ms var(--ease) 80ms both;
}

/* subtle neon edge */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.92;
  transform: scale(1.02);
}

/* Image fallback */
.image-fallback {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.32), rgba(239, 68, 68, 0.14));
}

.fallback-title {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 1.1rem;
}
.fallback-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

/* Quick info card */
.quick-card {
  border-radius: var(--r-lg);
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(20, 26, 36, 0.85);
  position: relative;
  padding: 18px;
  overflow: hidden;

  box-shadow: var(--shadow-soft);
  animation: fadeUp 700ms var(--ease) 160ms both;
}

/* subtle animated neon glow in card background */
.quick-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 60%);
  filter: blur(2px);
  animation: slowFloat 6s ease-in-out infinite;
}

.quick-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--text-strong);

  /* little friendly wiggle */
  animation: wiggle 1.6s ease-in-out 1;
}

.quick-title {
  margin: 30px 0 4px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.quick-subtitle {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-weight: 800;
}

.quick-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text-main);
  font-weight: 650;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.tiny-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Mobile: stack hero */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-image {
    min-height: 240px;
  }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 44px 0;
}

/* Alternate sections: subtle neon wash */
.section-alt {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--text-strong);

  /* small friendly slide in (looks nice) */
  animation: fadeLeft 700ms var(--ease) both;
}

.section-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-weight: 650;
}

/* =========================================================
   SERVICES 
   ========================================================= */
.grid-3 {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--r-sm); /* square-ish */
  background: var(--bg-card);
  padding: 16px;
  min-height: 160px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-shadow: var(--shadow-soft);

  /* r */
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 16px rgba(59, 130, 246, 0.10);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-card h3 {
  margin: 0;
  font-weight: 900;
  color: var(--text-strong);
}

.service-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.service-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--text-strong);

  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

/* =========================================================
   AREAS (list + image)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.area-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 700;
}

.side-image-card {
  border: 1px solid rgba(2, 103, 128, 0.37);
  background: rgba(20, 26, 36, 0.85);
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
}

.side-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.92;
}

/* =========================================================
   WHY CHOOSE
   ========================================================= */
.grid-2 {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.feature {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.feature h3 {
  margin: 0 0 6px;
  font-weight: 900;
  color: var(--text-strong);
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  background: var(--bg-card);
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}

.contact-item .label {
  color: var(--text-muted);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-item .value {
  display: inline-block;
  margin-top: 6px;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text-strong);
}

.contact-item .value:hover {
  text-decoration: underline;
}

.contact-item .hint {
  margin-top: 4px;
  color: var(--text-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 22px 0 86px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-weight: 800;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* =========================================================
   FLOATING ACTIONS 
   ========================================================= */
.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 100;
}

.fab {
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  border: 1px solid var(--border);
  background: rgba(20, 26, 36, 0.88);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  text-align: center;
  min-width: 120px;
  transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.fab:hover {
  transform: translateY(-2px);
}

.fab-call {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(59, 130, 246, 0.22);
  animation: pulseBlue 2.6s ease-in-out infinite;
}

.fab-wa {
  border-color: rgba(68, 239, 125, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(239, 68, 68, 0.18);
}

@media (min-width: 900px) {
  .fab {
    min-width: 110px;
    padding: 10px 12px;
  }
}

/* =========================================================
   REVEAL ANIMATIONS (used by script.js)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

/* =========================================================
   KEYFRAMES 
   ========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes slowFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, 10px);
  }
}

/* subtle one-time wiggle */
@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-1.5deg);
  }
  40% {
    transform: rotate(1.5deg);
  }
  60% {
    transform: rotate(-1deg);
  }
  80% {
    transform: rotate(1deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* glow for the call button */
@keyframes pulseBlue {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(59, 130, 246, 0.18);
  }
  50% {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 26px rgba(59, 130, 246, 0.28);
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
