:root {
  /* Logo-matched palette: cyan → cobalt → charcoal */
  --primary: #1A2332;
  --secondary: #1E6FE8;
  --accent: #3BA9FF;
  --deep-blue: #0C4A9E;
  --charcoal: #2D3436;
  --gold: #3BA9FF; /* remapped to logo sky-blue (no gold in logo) */
  --bg: #F5F8FC;
  --text: #1A2332;
  --surface: #ffffff;
  --header-h: 80px;
}
[data-theme="dark"] {
  --bg: #0b1220;
  --text: #e2e8f0;
  --surface: #111827;
  --primary: #0F1623;
}
* { box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,.brand-logo,.btn,.section-title { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }
.section-padding { padding: 5rem 0; }
.section-padding-sm { padding: 3rem 0 1rem; }
.bg-surface { background: var(--surface); }
.text-accent { color: var(--accent) !important; }
.text-gold { color: var(--accent) !important; }
.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--deep-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-primary { background: var(--secondary); border-color: var(--secondary); }
.btn-primary:hover { background: var(--deep-blue); border-color: var(--deep-blue); }
.btn-accent { background: var(--accent); border: none; color: #fff; }
.btn-accent:hover { background: var(--secondary); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border: none; color: #fff; font-weight: 600;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--secondary), var(--deep-blue));
  color: #fff;
}
.page-loader {
  position: fixed; inset: 0; background: var(--primary); z-index: 9999;
  display: grid; place-items: center; transition: opacity .4s, visibility .4s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 48px; height: 48px; border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header .navbar {
  padding: .85rem 0;
  background: transparent !important;
}
.site-header.transparent {
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.94) 0%, rgba(26, 35, 50, 0.72) 45%, rgba(26, 35, 50, 0.15) 100%);
}
.site-header.scrolled {
  background: rgba(26, 35, 50, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .site-header.scrolled { background: rgba(15, 22, 35, 0.98); }
.brand-logo {
  display: flex;
  align-items: center;
}
.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.site-header.scrolled .brand-logo-img {
  height: 40px;
}
.nav-premium .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500;
  position: relative;
  margin: 0 0.35rem;
}
.nav-premium .nav-link:hover,
.nav-premium .nav-link:focus {
  color: #fff !important;
}
.nav-premium .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transition: width 0.25s;
}
.nav-premium .nav-link:hover::after,
.nav-premium .nav-link:focus::after { width: 100%; }
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.55) !important;
  padding: 0.4rem 0.55rem;
}
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(26, 35, 50, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  }
  .header-actions { margin-top: 0.75rem; }
}
.mega-menu {
  min-width: 520px; border: none; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15,23,42,.2); margin-top: .75rem;
}
.mega-link { display: flex; gap: .5rem; padding: .35rem 0; color: var(--text); }
.mega-link:hover { color: var(--secondary); }
.mega-project img { width: 100%; height: 70px; object-fit: cover; border-radius: 8px; }
.mega-project span { font-size: .75rem; display: block; margin-top: .25rem; }

main { padding-top: var(--header-h); }
main:has(.hero-section) { padding-top: 0; }

/* ============ FUTURISTIC HERO ============ */
.hero-section {
  min-height: 100vh;
  position: relative;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, #12253f 0%, #1A2332 45%, #0a1018 100%);
}
.hero-section .hero-content { padding-top: calc(var(--header-h) + 1rem); position: relative; z-index: 5; }

/* Canvas matrix */
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
}

/* Perspective grid */
.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(rgba(30,111,232,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,111,232,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 100%);
  animation: gridPulse 4s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Glowing orbs */
.hero-orbs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  animation: orbDrift 10s ease-in-out infinite;
}
.orb-1 { width: 340px; height: 340px; background: rgba(59,169,255,.22); top: -5%; left: -8%; }
.orb-2 { width: 280px; height: 280px; background: rgba(30,111,232,.22); bottom: -10%; right: -5%; animation-delay: 2s; animation-duration: 12s; }
.orb-3 { width: 200px; height: 200px; background: rgba(12,74,158,.18); top: 30%; right: 20%; animation-delay: 4s; animation-duration: 14s; }
.orb-4 { width: 160px; height: 160px; background: rgba(45,52,54,.2); top: 60%; left: 15%; animation-delay: 6s; animation-duration: 11s; }
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Floating tech icons */
.hero-floaters { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.floater {
  position: absolute;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.2rem;
  color: rgba(59,169,255,.4);
  border: 1px solid rgba(59,169,255,.15);
  border-radius: 10px;
  background: rgba(59,169,255,.05);
  backdrop-filter: blur(4px);
  animation: floaterFloat 8s ease-in-out infinite;
}
.floater-1 { top: 12%; left: 8%; animation-delay: 0s; }
.floater-2 { top: 22%; right: 12%; animation-delay: 1s; animation-duration: 9s; }
.floater-3 { top: 55%; left: 3%; animation-delay: 2s; animation-duration: 10s; }
.floater-4 { top: 70%; right: 8%; animation-delay: 3s; animation-duration: 7s; }
.floater-5 { top: 35%; left: 50%; animation-delay: 1.5s; animation-duration: 11s; color: rgba(30,111,232,.35); }
.floater-6 { top: 80%; left: 25%; animation-delay: 4s; animation-duration: 9s; color: rgba(12,74,158,.35); }
.floater-7 { top: 10%; right: 35%; animation-delay: 2.5s; animation-duration: 12s; color: rgba(59,169,255,.3); }
.floater-8 { top: 45%; right: 30%; animation-delay: 5s; animation-duration: 8s; }
@keyframes floaterFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-18px) rotate(5deg); opacity: 1; }
}

/* Horizontal scan line */
.hero-scanline {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(59,169,255,.3), transparent);
  animation: scanDown 6s linear infinite;
  pointer-events: none;
}
@keyframes scanDown {
  0% { top: -2px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(59,169,255,.35);
  background: rgba(59,169,255,.1);
  backdrop-filter: blur(6px);
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Title */
.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.text-gradient-glow {
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--deep-blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.typed-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: cursorBlink .8s step-end infinite;
  margin-left: 2px;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Subtitle */
.hero-sub {
  max-width: 600px;
  font-size: 1.05rem;
  color: rgba(226,232,240,.75);
  line-height: 1.7;
}

/* Mini code block */
.hero-code {
  max-width: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(26,35,50,.75);
  border: 1px solid rgba(30,111,232,.25);
  backdrop-filter: blur(10px);
  margin-top: 1.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.hero-code-header {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(30,111,232,.15);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot-r { background: #ef4444; }
.code-dot-y { background: #f59e0b; }
.code-dot-g { background: #22c55e; }
.code-title { margin-left: auto; font-size: .68rem; color: rgba(148,163,184,.6); font-family: 'Fira Code', monospace; }
.hero-code-body {
  padding: .8rem 1rem;
  margin: 0;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: .78rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.hero-code-body code { background: none; color: inherit; font-size: inherit; }
.code-kw { color: #7EB6FF; }
.code-fn { color: #3BA9FF; }
.code-cls { color: #93C5FD; }
.code-str { color: #60A5FA; }
.code-bool { color: #BFDBFE; }

/* Hero buttons */
.btn-hero-primary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border: none; color: #fff; font-weight: 600;
  border-radius: 12px; padding: .7rem 1.8rem;
  box-shadow: 0 8px 25px rgba(30,111,232,.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-hero-primary:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 12px 35px rgba(30,111,232,.55);
}
.btn-hero-outline {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-weight: 600;
  border-radius: 12px; padding: .7rem 1.8rem;
  backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

/* Stats row */
.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1rem 0;
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat span {
  font-size: .78rem;
  color: rgba(148,163,184,.75);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-stat-divider {
  width: 1px; height: 36px;
  background: rgba(148,163,184,.15);
}

/* Floating browser mockup */
.hero-browser {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30,111,232,.25);
  background: rgba(26,35,50,.65);
  backdrop-filter: blur(12px);
  box-shadow:
    0 30px 60px rgba(0,0,0,.4),
    0 0 80px rgba(30,111,232,.1),
    inset 0 1px 0 rgba(255,255,255,.05);
  animation: browserFloat 6s ease-in-out infinite;
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
}
@keyframes browserFloat {
  0%, 100% { transform: perspective(800px) rotateY(-4deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(800px) rotateY(-2deg) rotateX(0deg) translateY(-12px); }
}
.browser-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .9rem;
  background: rgba(0,0,0,.3);
  border-bottom: 1px solid rgba(30,111,232,.12);
}
.browser-url {
  margin-left: auto;
  font-size: .65rem;
  color: rgba(148,163,184,.5);
  font-family: monospace;
  background: rgba(0,0,0,.2);
  padding: .15rem .6rem;
  border-radius: 6px;
}
.browser-body { padding: 1rem; }
.browser-skeleton { display: flex; flex-direction: column; gap: .6rem; }
.skel-header {
  width: 40%; height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(30,111,232,.2), rgba(59,169,255,.2));
  animation: skelPulse 2s ease-in-out infinite;
}
.skel-nav {
  width: 100%; height: 6px; border-radius: 6px;
  background: rgba(148,163,184,.08);
  animation: skelPulse 2s ease-in-out infinite .2s;
}
.skel-hero-block {
  width: 100%; height: 70px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(30,111,232,.18), rgba(59,169,255,.1));
  animation: skelPulse 2s ease-in-out infinite .4s;
}
.skel-row { display: flex; gap: .5rem; }
.skel-card {
  flex: 1; height: 50px; border-radius: 8px;
  background: rgba(148,163,184,.06);
  border: 1px solid rgba(148,163,184,.06);
  animation: skelPulse 2s ease-in-out infinite .6s;
}
.skel-card.skel-wide { flex: 2; }
@keyframes skelPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Scroll mouse */
.scroll-mouse {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(59,169,255,.45);
  border-radius: 20px;
  z-index: 5;
}
.scroll-mouse span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 4px;
  animation: wheel 1.4s infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 22px; } }

/* Mobile adjustments */
@media (max-width: 767.98px) {
  .hero-code { max-width: 100%; }
  .hero-stats { gap: 1rem; }
  .hero-stat strong { font-size: 1.2rem; }
  .hero-floaters { display: none; }
}
/* ============ END FUTURISTIC HERO ============ */

.section-title { font-weight: 800; color: var(--primary); }
[data-theme="dark"] .section-title { color: #f8fafc; }
.service-card {
  background: var(--surface); border-radius: 20px; padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(15,23,42,.06); transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(148,163,184,.15);
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(30,111,232,.15); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #fff; font-size: 1.4rem; margin-bottom: 1rem;
}
.project-card { display: block; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px rgba(15,23,42,.08); transition: transform .3s; }
.project-card:hover { transform: translateY(-6px); }
.project-thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-thumb img { transform: scale(1.08); }
.project-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.75), transparent);
  opacity: 0; transition: opacity .3s; display: flex; flex-direction: column; justify-content: end; padding: 1rem;
}
.project-card:hover .project-overlay { opacity: 1; }
.view-btn { color: #fff; font-weight: 600; }
.project-body { padding: 1.25rem; }
.stats-section { background: linear-gradient(135deg, var(--primary), var(--deep-blue)); color: #fff; }
.stat-box { padding: 1rem; }
.stat-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.testimonial-card { max-width: 720px; background: var(--surface); border-radius: 20px; padding: 2rem; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.testimonial-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.tech-logos { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.tech-badge {
  padding: .5rem 1rem; border-radius: 999px; background: var(--surface);
  border: 1px solid rgba(30,111,232,.22); font-weight: 600; animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.03)} }
.blog-card { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.cta-banner {
  background: linear-gradient(120deg, var(--deep-blue), var(--secondary), var(--accent));
  border-radius: 24px; margin: 0 1rem; max-width: calc(100% - 2rem);
}
@media (min-width: 992px){ .cta-banner { margin: 0 auto; max-width: 1140px; } }
.page-hero { background: linear-gradient(180deg, rgba(30,111,232,.08), transparent); }
.team-card img { width: 100%; border-radius: 16px; aspect-ratio: 1; object-fit: cover; }
.timeline-item { background: var(--surface); padding: 1rem; border-radius: 12px; height: 100%; border-left: 4px solid var(--accent); }
.project-banner {
  min-height: 360px; background-size: cover; background-position: center; position: relative;
}
.project-banner::before { content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(15,23,42,.85), rgba(15,23,42,.35)); }
.project-banner-inner { position: relative; color: #fff; padding-top: 4rem; }
.gallery-masonry { columns: 2; gap: 1rem; }
@media (min-width:768px){ .gallery-masonry { columns: 3; } }
.gallery-item { display: block; break-inside: avoid; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; }
.gallery-item img { width: 100%; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }

.site-footer {
  position: relative; background: linear-gradient(160deg, #1A2332, #0C4A9E); color: #e2e8f0; margin-top: 4rem;
}
.footer-wave {
  position: absolute; top: -1px; left: 0; right: 0; height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23F5F8FC' d='M0,32L80,37.3C160,43,320,53,480,58.7C640,64,800,64,960,58.7C1120,53,1280,43,1360,37.3L1440,32L1440,0L0,0Z'/%3E%3C/svg%3E") center top/cover no-repeat;
}
[data-theme="dark"] .footer-wave {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%230b1220' d='M0,32L80,37.3C160,43,320,53,480,58.7C640,64,800,64,960,58.7C1120,53,1280,43,1360,37.3L1440,32L1440,0L0,0Z'/%3E%3C/svg%3E") center top/cover no-repeat;
}
.footer-title { font-weight: 700; margin-bottom: 1rem; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #cbd5e1; display: block; padding: .2rem 0; }
.footer-links a:hover { color: var(--accent); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.footer-bar a { color: #cbd5e1; }
.footer-social a {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); margin-right: .35rem; color: #fff;
}
.footer-social a:hover { background: var(--accent); }

.floating-actions {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1020; display: flex; flex-direction: column; gap: .5rem;
}
.float-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn-color, var(--secondary)); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .2s;
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
