/* =====================================================================
   NEXORA DIGITAL - Custom styles (css/style.css)
   ---------------------------------------------------------------------
   Tailwind (CDN) handles layout utilities. This file holds the brand
   theme, animated gradients, glass cards and component styling.
   Brand: Electric Blue #0096FF | Deep Blue #004AAD | Cyan #00D4FF
   ===================================================================== */

:root {
  --electric: #0096ff;
  --deep: #004aad;
  --cyan: #00d4ff;
  --black: #000000;
  --navy: #040b1a;
  --navy-2: #071226;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(0, 150, 255, 0.22);
  --text: #e6eefb;
  --muted: #8da2c4;
  --grad: linear-gradient(135deg, var(--deep) 0%, var(--electric) 55%, var(--cyan) 100%);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
}
::selection { background: var(--electric); color: #fff; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #020611; }
::-webkit-scrollbar-thumb { background: var(--deep); border-radius: 8px; }

/* ---------- Helpers ---------- */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section { padding: 96px 0; position: relative; }
.container-x { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
  color: var(--cyan); background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.3);
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-top: 14px; line-height: 1.2; }
.section-sub { color: var(--muted); max-width: 640px; margin: 14px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all .3s ease; border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(0, 150, 255, .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 212, 255, .45); }
.btn-outline { border-color: var(--electric); color: #fff; background: rgba(0, 150, 255, .06); }
.btn-outline:hover { background: var(--electric); transform: translateY(-3px); }

/* ---------- Navbar ---------- */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all .3s ease; }
#navbar.scrolled {
  background: rgba(4, 11, 26, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); box-shadow: 0 6px 30px rgba(0, 0, 0, .5);
}
.nav-link { position: relative; color: var(--text); font-size: 15px; font-weight: 500; transition: color .3s; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); transition: width .3s;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height .4s ease; background: rgba(4, 11, 26, .97); }
#mobile-menu.open { max-height: 480px; border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #000000, #04112b, #002a66, #04112b, #000000);
  background-size: 400% 400%; animation: gradientShift 16s ease infinite;
}
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: float 9s ease-in-out infinite; }
.orb.one { width: 380px; height: 380px; background: var(--electric); top: 8%; left: -80px; }
.orb.two { width: 320px; height: 320px; background: var(--cyan); bottom: 6%; right: -60px; animation-delay: -4s; opacity: .3; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-34px) scale(1.08); } }
.grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(0, 150, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 150, 255, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}
.hero-badge {
  display: inline-flex; gap: 8px; align-items: center; padding: 8px 18px; border-radius: 999px;
  background: rgba(0, 150, 255, .12); border: 1px solid var(--border); font-size: 13px; color: var(--cyan);
}

/* ---------- Cards ---------- */
.glass {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  backdrop-filter: blur(10px); transition: all .35s ease;
}
.service-card { padding: 32px 28px; height: 100%; }
.service-card:hover { transform: translateY(-8px); border-color: var(--cyan); box-shadow: 0 18px 50px rgba(0, 150, 255, .22); }
.icon-box {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; color: #fff; background: var(--grad); margin-bottom: 20px;
  box-shadow: 0 10px 26px rgba(0, 150, 255, .4);
}

/* ---------- About stats ---------- */
.stat { text-align: center; padding: 26px 14px; }
.stat-num { font-size: 40px; font-weight: 700; }

/* ---------- Portfolio ---------- */
.portfolio-item { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); cursor: pointer; }
.portfolio-thumb {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; color: rgba(255, 255, 255, .85);
  background: linear-gradient(135deg, #04112b, var(--deep)); background-size: cover; background-position: center;
  transition: transform .6s ease;
}
.portfolio-item:nth-child(3n+2) .portfolio-thumb { background-image: linear-gradient(135deg, #001a3d, var(--electric)); }
.portfolio-item:nth-child(3n) .portfolio-thumb { background-image: linear-gradient(135deg, #04112b, #007a99); }
.portfolio-item:hover .portfolio-thumb { transform: scale(1.12); }
.portfolio-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  background: linear-gradient(to top, rgba(0, 10, 30, .95), rgba(0, 74, 173, .35) 60%, transparent);
  opacity: 0; transform: translateY(14px); transition: all .4s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }

/* ---------- Pricing ---------- */
.price-card { padding: 38px 30px; height: 100%; position: relative; display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-8px); border-color: var(--cyan); }
.price-card.featured { background: linear-gradient(160deg, rgba(0, 74, 173, .45), rgba(0, 150, 255, .12)); border-color: var(--electric); box-shadow: 0 0 55px rgba(0, 150, 255, .25); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad);
  padding: 5px 18px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.price-card li { padding: 8px 0; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.price-card li i { color: var(--cyan); margin-top: 4px; }

/* ---------- Testimonials slider ---------- */
.slider { position: relative; max-width: 780px; margin: 0 auto; overflow: hidden; }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.slide { min-width: 100%; padding: 6px; }
.testimonial { padding: 40px 34px; text-align: center; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--grad); font-weight: 700; font-size: 24px;
}
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.dot { width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: all .3s; border: 0; }
.dot.active { width: 30px; background: var(--grad); }

/* ---------- Contact ---------- */
.form-input {
  width: 100%; padding: 14px 18px; border-radius: 12px; color: #fff; font-size: 15px; outline: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); transition: all .3s; font-family: inherit;
}
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, .15); }
.form-input::placeholder { color: #6b7f9f; }
.contact-info-item { display: flex; gap: 16px; align-items: center; padding: 18px; }
.contact-info-item .icon-box { width: 50px; height: 50px; font-size: 20px; margin: 0; flex-shrink: 0; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 32px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .5); transition: transform .3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Back to top ---------- */
#toTop {
  position: fixed; left: 22px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; border: 0; cursor: pointer; opacity: 0; pointer-events: none; transition: all .3s;
}
#toTop.show { opacity: 1; pointer-events: auto; }

/* ---------- Footer ---------- */
footer { background: #000; border-top: 1px solid var(--border); }
.footer-link { color: var(--muted); transition: all .3s; }
.footer-link:hover { color: var(--cyan); padding-left: 4px; }
.social {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(0, 150, 255, .12); border: 1px solid var(--border); transition: all .3s;
}
.social:hover { background: var(--grad); transform: translateY(-4px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 90px; right: 20px; z-index: 100; padding: 14px 22px; border-radius: 12px; font-weight: 500;
  background: #062b52; border: 1px solid var(--cyan); color: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  transform: translateX(130%); transition: transform .4s ease;
}
.toast.show { transform: translateX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .whatsapp-float { width: 54px; height: 54px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
