/* =========================================================
   High Strategic Solutions - Main Stylesheet
   ========================================================= */
:root {
  --navy: #0a2556;
  --navy-deep: #061a3f;
  --blue: #1467e6;
  --blue-light: #2f8bff;
  --sky: #e9f2ff;
  --text: #4a5878;
  --muted: #7a87a3;
  --border: #e3ebf7;
  --white: #ffffff;
  --shadow-sm: 0 6px 20px rgba(20, 70, 160, 0.07);
  --shadow-md: 0 14px 40px rgba(20, 70, 160, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 90, 230, 0.22);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: #f7faff;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; color: var(--navy); font-weight: 700; }
a { text-decoration: none; }
img { max-width: 100%; }
.text-blue { color: var(--blue) !important; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-inner img { width: 200px; animation: pulseLogo 1.4s ease-in-out infinite; }
.loader-bar { width: 200px; height: 4px; background: var(--sky); border-radius: 4px; margin: 18px auto 0; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--blue), var(--blue-light)); border-radius: 4px; animation: loadBar 1.1s ease-in-out infinite; }
@keyframes loadBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes pulseLogo { 50% { transform: scale(1.05); } }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 8px; height: 8px; background: var(--blue); }
.cursor-ring {
  width: 38px; height: 38px; border: 2px solid rgba(20, 103, 230, .45);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s;
}
.cursor-ring.hover { width: 64px; height: 64px; background: rgba(20, 103, 230, .1); border-color: rgba(20, 103, 230, .2); }
.cursor-ring.click { width: 28px; height: 28px; }
@media (hover: none), (max-width: 991px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000;
  background: linear-gradient(90deg, var(--blue), var(--blue-light), #6fc3ff);
  box-shadow: 0 0 10px rgba(47, 139, 255, .6);
}

/* ---------- Buttons ---------- */
.btn-primary-hs, .btn-outline-hs {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px; border-radius: 50px; font-weight: 600; font-size: .9rem;
  position: relative; overflow: hidden; transition: all .35s var(--ease); z-index: 1;
}
.btn-primary-hs {
  background: linear-gradient(135deg, var(--blue), #0a52c9); color: #fff; border: none;
  box-shadow: 0 10px 24px rgba(20, 103, 230, .35);
}
.btn-primary-hs::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  opacity: 0; transition: opacity .35s;
}
.btn-primary-hs:hover { color: #fff; box-shadow: 0 16px 34px rgba(20, 103, 230, .45); }
.btn-primary-hs:hover::before { opacity: 1; }
.btn-primary-hs i, .btn-outline-hs i { transition: transform .35s var(--ease); }
.btn-primary-hs:hover i.bi-arrow-right, .btn-outline-hs:hover i.bi-arrow-right { transform: translateX(5px); }
.btn-outline-hs { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline-hs:hover { background: var(--blue); color: #fff; }
.btn-sm-hs { padding: 9px 20px; font-size: .82rem; }
.play-mini { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .8rem; }
.btn-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Navbar ---------- */
.navbar { padding: 14px 0; transition: all .4s var(--ease); background: transparent; }
.navbar.scrolled { padding: 8px 0; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); box-shadow: 0 6px 30px rgba(10, 37, 86, .08); }
.brand-logo { height: 54px; transition: height .4s var(--ease); }
.navbar.scrolled .brand-logo { height: 44px; }
.navbar .nav-link {
  color: var(--navy); font-weight: 500; font-size: .9rem; margin: 0 8px; padding: 8px 4px !important; position: relative;
}
.navbar .nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
  background: var(--blue); border-radius: 2px; transition: all .35s var(--ease); transform: translateX(-50%);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--blue); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 100%; }
.nav-caret { font-size: .7rem; margin-left: 2px; display: inline-block; transition: transform .3s var(--ease); }
.nav-item.dropdown:hover .nav-caret, .nav-link.show .nav-caret { transform: rotate(180deg); }
.services-dropdown {
  border: 1px solid var(--border); border-radius: 14px; padding: 8px; min-width: 250px; box-shadow: var(--shadow-lg);
}
.services-dropdown .dropdown-item {
  display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 500; color: var(--navy);
  padding: 8px 12px; border-radius: 8px; transition: all .25s var(--ease);
}
.services-dropdown .dropdown-item i { color: var(--blue); font-size: 1rem; width: 18px; text-align: center; }
.services-dropdown .dropdown-item:hover, .services-dropdown .dropdown-item:focus { background: #eef5ff; color: var(--blue); padding-left: 16px; }
.services-dropdown .dropdown-item.active { background: transparent; color: var(--navy); }
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .services-dropdown { display: block; margin-top: 0; }
}
.navbar-toggler { border: none; padding: 6px; box-shadow: none !important; }
.toggler-line { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .3s; }
.navbar-toggler:not(.collapsed) .toggler-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler:not(.collapsed) .toggler-line:nth-child(2) { opacity: 0; }
.navbar-toggler:not(.collapsed) .toggler-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 991px) {
  .navbar-collapse { background: #fff; border-radius: 14px; padding: 16px; margin-top: 10px; box-shadow: var(--shadow-md); }
  .navbar .nav-link { margin: 0; }
  .navbar .nav-link::after { left: 0; transform: none; }
}

/* ---------- Eyebrow & titles ---------- */
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.section { padding: 80px 0; position: relative; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; margin-bottom: 10px; }
.section-sub { color: var(--text); font-size: .95rem; max-width: 560px; line-height: 1.7; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: min(100vh, 860px); padding: 130px 0 90px; overflow: hidden;
  background: linear-gradient(115deg, #ffffff 0%, #f3f8ff 40%, #dcebff 70%, #c4dcff 100%);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; top: 0; right: 0; width: 62%; height: 100%;
  background: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 30%, #000 65%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 30%, #000 65%);
  opacity: .95; filter: grayscale(1) sepia(1) hue-rotate(180deg) saturate(4) brightness(.85) contrast(1.1);
}
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 45%, rgba(47,139,255,.45), transparent 60%); }
.hero-bg::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #f3f8ff 0%, rgba(243,248,255,.4) 35%, transparent 70%); }
#heroCanvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero .container { z-index: 2; }
.hero-title { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 800; margin: 6px 0 24px; letter-spacing: -1.5px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 4px; }
.hero-title .word { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.hero-title.show .line:nth-child(1) .word { transform: none; transition-delay: .1s; }
.hero-title.show .line:nth-child(2) .word { transform: none; transition-delay: .25s; }
.hero-title.show .line:nth-child(3) .word { transform: none; transition-delay: .4s; }
.hero-title .text-blue { background: linear-gradient(90deg, var(--blue), var(--blue-light), var(--blue)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine 4s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-text { font-size: 1.05rem; max-width: 470px; line-height: 1.7; color: #33426a; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 50px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.stat h3 { font-size: 1.9rem; font-weight: 800; margin: 0; color: var(--navy); }
.stat p { font-size: .78rem; margin: 0; color: var(--muted); }

/* hero visual */
.hero-visual { position: relative; height: 520px; perspective: 1200px; }
.hero-visual > * { will-change: transform; }
.globe-wrap { position: absolute; right: -60px; top: 0; width: 480px; height: 480px; }
.globe {
  position: absolute; inset: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(160, 215, 255, .9), rgba(20, 103, 230, .75) 45%, rgba(6, 26, 80, .9) 80%);
  box-shadow: 0 0 80px rgba(47, 139, 255, .7), inset -30px -30px 80px rgba(0, 0, 50, .5), inset 10px 10px 40px rgba(255,255,255,.4);
  overflow: hidden;
}
.globe-grid {
  position: absolute; inset: 0; border-radius: 50%; opacity: .55;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(180, 225, 255, .5) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(180, 225, 255, .5) 22px 23px);
  animation: spinGrid 18s linear infinite;
}
@keyframes spinGrid { to { background-position: 0 0, 460px 0; } }
.globe-shine { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 40%); }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(47, 139, 255, .45); animation: orbit 14s linear infinite; }
.orbit span { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #8fd0ff; box-shadow: 0 0 18px 4px #2f8bff; }
.orbit-1 { transform: rotateX(70deg) rotateZ(0deg); }
.orbit-2 { inset: -20px; animation-duration: 20s; animation-direction: reverse; border-style: dashed; opacity: .6; }
.orbit-3 { inset: 20px; animation-duration: 10s; border-color: rgba(255,255,255,.5); }
@keyframes orbit { to { transform: rotate(360deg); } }
.orbit-1 { animation-name: orbitTilt; }
@keyframes orbitTilt { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }

.laptop { position: absolute; left: 6%; top: 120px; width: 420px; transform-style: preserve-3d; animation: floatY 6s ease-in-out infinite; }
.laptop-screen {
  position: relative; background: #0d1424; border-radius: 14px 14px 4px 4px; padding: 12px;
  box-shadow: 0 30px 60px rgba(6, 26, 63, .35), 0 0 0 2px #2a3550; transform: rotateY(-14deg) rotateX(4deg);
}
.screen-inner { background: linear-gradient(160deg, #ffffff, #eef5ff); border-radius: 6px; aspect-ratio: 16/10; display: grid; place-items: center; padding: 26px; overflow: hidden; position: relative; }
.screen-inner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(47,139,255,.12) 50%, transparent 70%); animation: scan 4s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.screen-inner img { width: 82%; position: relative; }
.screen-glare { position: absolute; inset: 12px; border-radius: 6px; background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 45%); pointer-events: none; }
.laptop-base {
  height: 18px; margin: 0 -34px; background: linear-gradient(180deg, #d4dbe8, #8e9ab0);
  border-radius: 2px 2px 18px 18px; box-shadow: 0 25px 40px rgba(6, 26, 63, .35); transform: rotateY(-14deg) rotateX(4deg); position: relative;
}
.laptop-base span { position: absolute; left: 50%; top: 0; width: 80px; height: 6px; transform: translateX(-50%); background: #7b869c; border-radius: 0 0 8px 8px; }
@keyframes floatY { 50% { translate: 0 -14px; } }
.light-streak { position: absolute; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #9fd7ff, #fff, transparent); filter: drop-shadow(0 0 8px #2f8bff); }
.light-streak.s1 { width: 70%; bottom: 60px; left: 10%; transform: rotate(-8deg); animation: streak 3.5s ease-in-out infinite; }
.light-streak.s2 { width: 50%; bottom: 30px; left: 30%; transform: rotate(-4deg); animation: streak 4.5s ease-in-out infinite 1s; }
@keyframes streak { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.float-chip {
  position: absolute; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  padding: 10px 16px; border-radius: 40px; font-size: .8rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-md); display: flex; gap: 8px; align-items: center;
}
.float-chip i { color: var(--blue); }
.chip-1 { left: 0; top: 70px; animation: floatY 5s ease-in-out infinite; }
.chip-2 { right: 10px; bottom: 90px; animation: floatY 5.5s ease-in-out infinite .8s; }

.scroll-down { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--navy); border-radius: 14px; z-index: 3; }
.scroll-down span { position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--navy); border-radius: 2px; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 991px) {
  .hero { padding-top: 110px; }
  .hero-bg { width: 100%; opacity: .25; }
  .hero-visual { height: 420px; margin-top: 40px; }
  .globe-wrap { width: 380px; height: 380px; right: 50%; margin-right: -190px; }
  .laptop { left: 50%; margin-left: -170px; width: 340px; top: 90px; }
  .hero-stats { gap: 26px; }
}
@media (max-width: 480px) {
  .globe-wrap { width: 300px; height: 300px; margin-right: -150px; }
  .laptop { width: 280px; margin-left: -140px; }
  .chip-1 { top: 10px; } .chip-2 { bottom: 40px; }
  .hero-visual { height: 360px; }
}

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, #f7faff, #eef5ff); }
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1199px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: box-shadow .4s var(--ease), border-color .4s; transform-style: preserve-3d;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 139, 255, .12), transparent 40%);
}
.service-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue-light)); transition: width .5s var(--ease); }
.service-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { width: 100%; }
.icon-box {
  width: 54px; height: 54px; border-radius: 14px; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 22px; transition: all .4s var(--ease);
}
.service-card:hover .icon-box { background: var(--blue); color: #fff; transform: rotate(-8deg) scale(1.08); box-shadow: 0 10px 20px rgba(20,103,230,.35); }
.service-card h4 { font-size: 1.02rem; margin-bottom: 10px; }
.service-card p { font-size: .82rem; line-height: 1.6; margin-bottom: 22px; min-height: 52px; }
.learn-more { font-size: .8rem; font-weight: 600; color: var(--blue); display: inline-flex; gap: 6px; align-items: center; }
.learn-more i { transition: transform .3s; }
.learn-more:hover i { transform: translateX(6px); }

/* ---------- Service detail page ---------- */
.page-hero {
  position: relative; padding: 160px 0 90px; overflow: hidden;
  background: linear-gradient(115deg, #ffffff 0%, #f3f8ff 40%, #dcebff 70%, #c4dcff 100%);
}
.page-hero #heroCanvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin: 6px 0 18px; }
.breadcrumb-hs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; font-weight: 600; margin-bottom: 18px; }
.breadcrumb-hs a { color: var(--muted); } .breadcrumb-hs a:hover { color: var(--blue); }
.breadcrumb-hs span { color: var(--blue); }
.breadcrumb-hs i { color: var(--muted); font-size: .7rem; align-self: center; }
.page-hero-icon {
  width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  font-size: 5.5rem; color: #fff; animation: floatY 6s ease-in-out infinite;
  background: radial-gradient(circle at 35% 30%, rgba(160, 215, 255, .95), var(--blue) 50%, var(--navy-deep) 90%);
  box-shadow: 0 0 80px rgba(47, 139, 255, .6), inset -20px -20px 60px rgba(0, 0, 50, .45);
}
@media (max-width: 991px) { .page-hero { padding: 130px 0 70px; } .page-hero-icon { width: 160px; height: 160px; font-size: 4rem; margin-top: 30px; } }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
@media (max-width: 991px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .offer-grid { grid-template-columns: 1fr; } }
.offer-grid .service-card p { min-height: 0; margin-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; font-size: .9rem; color: var(--navy); font-weight: 500; }
.check-list i { color: var(--blue); font-size: 1.1rem; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 32px; counter-reset: step; }
@media (max-width: 1199px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm); position: relative; transition: box-shadow .4s, transform .4s var(--ease);
}
.process-step:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.process-step::before {
  counter-increment: step; content: '0' counter(step); display: block; font-family: 'Poppins', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--sky); -webkit-text-stroke: 1px var(--blue); margin-bottom: 10px;
}
.process-step h5 { font-size: .95rem; margin-bottom: 8px; }
.process-step p { font-size: .8rem; margin: 0; line-height: 1.6; }

/* ---------- About ---------- */
.about { background: #fff; overflow: hidden; }
.about-media { position: relative; height: 560px; overflow: hidden; }
.about-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.2s var(--ease); }
.about-media:hover .about-img { transform: scale(1.16); }
.about-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6, 26, 80, .85), rgba(20, 103, 230, .55)); mix-blend-mode: multiply; }
.about-arc { position: absolute; right: -180px; top: -10%; width: 360px; height: 120%; border-radius: 50%; background: #fff; box-shadow: -20px 0 60px rgba(47, 139, 255, .6), inset 12px 0 0 rgba(47,139,255,.35); }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%;
  border: none; background: #fff; color: var(--blue); font-size: 2.2rem; display: grid; place-items: center; z-index: 2;
  box-shadow: 0 0 0 10px rgba(255,255,255,.2); transition: transform .3s var(--ease);
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
.play-btn .ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: ripplePulse 2s ease-out infinite; }
.play-btn .r2 { animation-delay: 1s; }
@keyframes ripplePulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.about-content { padding: 60px 8% 60px 6%; }
.about-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 32px; }
.feat { text-align: center; font-size: .78rem; font-weight: 600; color: var(--navy); }
.feat-icon { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); font-size: 1.4rem; background: var(--sky); transition: all .4s var(--ease); }
.feat:hover .feat-icon { background: var(--blue); color: #fff; transform: translateY(-6px); box-shadow: 0 10px 20px rgba(20,103,230,.3); }
@media (max-width: 991px) { .about-media { height: 380px; } .about-arc { display: none; } .about-content { padding: 50px 20px; } }
@media (max-width: 480px) { .about-features { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Technologies ---------- */
.technologies { background: linear-gradient(180deg, #f2f7ff, #fff); }
.tech-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0; }
.filter-btn {
  border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: .8rem; font-weight: 600;
  padding: 7px 22px; border-radius: 30px; transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(20,103,230,.3); }
.tech-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
@media (max-width: 1199px) { .tech-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 767px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
.tech-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; height: 64px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .82rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s, opacity .4s, filter .4s;
}
.tech-item i { font-size: 1.7rem; transition: transform .5s var(--ease); }
.tech-item i.bi { color: var(--blue); font-size: 1.5rem; }
.tech-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(20,103,230,.3); }
.tech-item:hover i { transform: rotate(360deg) scale(1.15); }
.tech-item.dim { opacity: .18; filter: grayscale(1); transform: scale(.92); }
.tech-item.pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---------- Why ---------- */
.why { background: #fff; }
.why-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); height: 100%; transition: box-shadow .4s, border-color .4s;
}
.why-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.why-icon { flex: 0 0 54px; height: 54px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.5rem; transition: all .4s var(--ease); }
.why-card:hover .why-icon { background: var(--blue); color: #fff; transform: scale(1.1) rotate(10deg); }
.why-card h5 { font-size: .95rem; margin-bottom: 6px; }
.why-card p { font-size: .8rem; margin: 0; }

/* ---------- Projects ---------- */
.projects { background: linear-gradient(180deg, #fff, #f4f8ff); }
.project-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); height: 100%; transition: box-shadow .4s; }
.project-card:hover { box-shadow: var(--shadow-lg); }
.project-img { position: relative; height: 170px; overflow: hidden; background: var(--navy); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-img img { transform: scale(1.12); }
.project-hover { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(10, 37, 86, .75)); display: grid; place-items: center; opacity: 0; transition: opacity .4s; }
.project-hover i { width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; transform: scale(0) rotate(-90deg); transition: transform .45s var(--ease); }
.project-card:hover .project-hover { opacity: 1; }
.project-card:hover .project-hover i { transform: scale(1) rotate(0); }
.project-body { padding: 18px; }
.project-body h5 { font-size: .95rem; margin-bottom: 6px; }
.project-body p { font-size: .8rem; margin-bottom: 14px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--blue); background: var(--sky); padding: 4px 12px; border-radius: 20px; }

/* ---------- Testimonials ---------- */
.testimonials { background: #f4f8ff; }
.slider-nav { display: flex; gap: 10px; }
.nav-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--blue); transition: all .3s; }
.nav-arrow:hover { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(20,103,230,.3); }
.testi-viewport { overflow: hidden; padding: 10px 4px 20px; margin: -10px -4px 0; }
.testi-track { display: flex; gap: 20px; transition: transform .7s var(--ease); cursor: grab; }
.testi-track.dragging { transition: none; cursor: grabbing; }
.testi-card {
  flex: 0 0 calc((100% - 40px) / 3); background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); position: relative; user-select: none; transition: box-shadow .4s, transform .4s var(--ease);
}
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
@media (max-width: 991px) { .testi-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .testi-card { flex-basis: 100%; } }
.quote-mark { position: absolute; right: 22px; top: 10px; font-size: 3.2rem; color: var(--sky); }
.testi-card p { font-size: .88rem; line-height: 1.7; color: #33426a; position: relative; min-height: 96px; }
.testi-author { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.testi-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sky); }
.testi-author h6 { font-size: .85rem; margin: 0; }
.testi-author small { font-size: .72rem; color: var(--muted); }
.stars { margin-left: auto; color: #f5b301; letter-spacing: 2px; font-size: .85rem; }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.testi-dots button { width: 8px; height: 8px; border-radius: 8px; border: none; background: #c9d8f0; padding: 0; transition: all .3s; }
.testi-dots button.active { width: 26px; background: var(--blue); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, #f4f8ff, #eaf2ff); padding-bottom: 120px; }
.contact-info { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.ci { display: flex; gap: 12px; align-items: center; }
.ci-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 1.15rem; box-shadow: var(--shadow-sm); transition: all .35s var(--ease); }
.ci:hover .ci-icon { background: var(--blue); color: #fff; transform: rotate(-12deg); }
.ci h6 { font-size: .82rem; margin: 0; }
.ci a, .ci span { font-size: .78rem; color: var(--text); }
.ci a:hover { color: var(--blue); }
.contact-form { background: #fff; padding: 28px; border-radius: 20px; box-shadow: var(--shadow-md); border: 1px solid var(--border); position: relative; }
.contact-form::before { content: ''; position: absolute; inset: -2px; border-radius: 22px; z-index: -1; background: linear-gradient(135deg, var(--blue), transparent 40%, transparent 60%, var(--blue-light)); opacity: .5; }
.contact-form .form-control { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: .85rem; transition: all .3s; }
.contact-form .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,103,230,.12); }
.contact-form .form-control.is-invalid { border-color: #e5484d; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Footer ---------- */
.footer {
  position: relative; background: radial-gradient(ellipse at top right, #0e3478, var(--navy-deep) 60%); color: #b6c4e0;
  padding: 90px 0 20px; margin-top: -60px; border-radius: 60px 60px 0 0; overflow: hidden;
}
#footerCanvas { position: absolute; inset: 0; pointer-events: none; opacity: .6; }
.footer-logo { height: 70px; margin-bottom: 18px; }
.footer p { font-size: .82rem; line-height: 1.7; }
.footer h6 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; font-size: .82rem; }
.footer ul a { color: #b6c4e0; transition: all .3s; position: relative; }
.footer ul a:hover { color: #fff; padding-left: 6px; }
.contact-list li { display: flex; gap: 10px; }
.contact-list i { color: var(--blue-light); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: all .35s var(--ease); }
.socials a:hover { background: var(--blue); transform: translateY(-5px); box-shadow: 0 8px 18px rgba(47,139,255,.4); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .78rem; }
.footer-bottom p { margin: 0; font-size: .78rem; }
.footer-bottom a { color: #b6c4e0; } .footer-bottom a:hover { color: #fff; }
.footer-bottom span { margin: 0 10px; opacity: .4; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; width: 50px; height: 50px; border-radius: 50%; z-index: 999;
  background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .4s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue); color: #fff; }
.back-to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.back-to-top circle { fill: none; stroke: var(--blue-light); stroke-width: 3; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; stroke-linecap: round; }
.back-to-top i { position: relative; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 90px; width: 56px; height: 56px; border-radius: 50%; z-index: 1000;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  opacity: 0; transform: scale(0) rotate(-180deg); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .4s;
}
.wa-float.show { opacity: 1; transform: none; animation: waBounce 4s ease-in-out 1s infinite; }
.wa-float::before, .wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: waPulse 2s ease-out infinite;
}
.wa-float::after { animation-delay: 1s; }
.wa-float i { animation: waWiggle 4s ease-in-out infinite; }
.wa-float:hover { color: #fff; background: #1ebe5b; animation-play-state: paused; }
.wa-float:hover i { animation: none; transform: scale(1.15); }
.wa-tip {
  position: absolute; right: calc(100% + 14px); top: 50%; white-space: nowrap;
  background: #fff; color: var(--navy); font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 20px;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translate(10px, -50%); transition: all .3s var(--ease); pointer-events: none;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translate(0, -50%); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes waBounce { 0%, 80%, 100% { transform: translateY(0); } 85% { transform: translateY(-10px); } 90% { transform: translateY(0); } 95% { transform: translateY(-5px); } }
@keyframes waWiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-15deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
@media (max-width: 575px) { .wa-float { right: 18px; bottom: 84px; width: 52px; height: 52px; font-size: 1.55rem; } .wa-tip { display: none; } }

/* ---------- Toast ---------- */
.hs-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 120px); z-index: 3000;
  background: var(--navy); color: #fff; padding: 14px 24px; border-radius: 40px; font-size: .88rem;
  box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); display: flex; gap: 10px; align-items: center;
}
.hs-toast i { color: #4ade80; }
.hs-toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal.in, .reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-left, .reveal-right, .hero-title .word { opacity: 1; transform: none; }
}
