/* ================================================================
   TUNEXY SERVICES LIMITED — DESIGN SYSTEM v3
   Fonts: Plus Jakarta Sans + Inter
   Colors: Brand Blue (#108ecf / #122a73) + Amber (#e8a020)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Brand blues — pulled from logo */
  --blue-900:  #0a1a4a;
  --blue-800:  #122a73;
  --blue-700:  #1a3d99;
  --blue-600:  #1f56c3;
  --blue-500:  #108ecf;
  --blue-400:  #38aee8;
  --blue-300:  #7fcef5;
  --blue-200:  #bae3fa;

  /* Navy aliases — used in PHP templates */
  --navy:      #07091a;
  --navy-800:  #122a73;
  --navy-700:  #1a3d99;
  --navy-600:  #1f56c3;
  --navy-500:  #108ecf;
  --navy-400:  #38aee8;
  /* Gold aliases — used in PHP templates */
  --gold:       #e8a020;
  --gold-light: #f5c35a;
  --gold-dark:  #b87a0f;
  --gold-pale:  rgba(232,160,32,0.1);

  /* Amber accent */
  --amber:       #e8a020;
  --amber-light: #f5c35a;
  --amber-dark:  #b87a0f;
  --amber-pale:  rgba(232,160,32,0.1);

  /* Neutrals */
  --white:     #ffffff;
  --off-white: #f6f8ff;
  --gray-50:   #f0f4ff;
  --gray-100:  #e2e8f8;
  --gray-200:  #cdd5ee;
  --gray-300:  #b0bbd8;
  --gray-400:  #8896bb;
  --gray-500:  #6372a0;
  --gray-600:  #4a5580;
  --gray-700:  #303d65;
  --gray-800:  #1e2a4a;
  --gray-900:  #111830;

  /* Semantic */
  --color-text:       #1a2240;
  --color-text-muted: #5a6a95;
  --color-text-light: #8896bb;
  --color-bg:         #eef0f8;
  --color-bg-alt:     #e2e5f3;
  --color-card:       #ffffff;
  --color-border:     #c9d1e9;
  --color-nav:        rgba(238,240,248,0.95);

  /* Brand shortcuts */
  --primary:      var(--blue-700);
  --primary-dark: var(--blue-800);
  --primary-lite: var(--blue-500);
  --accent:       var(--amber);
  --accent-light: var(--amber-light);

  /* Status */
  --success: #16a34a;
  --danger:  #dc2626;
  --warning: #d97706;
  --info:    var(--blue-500);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(18,42,115,0.08);
  --shadow-sm: 0 2px 8px rgba(18,42,115,0.08), 0 0 0 1px rgba(18,42,115,0.04);
  --shadow-md: 0 8px 32px rgba(18,42,115,0.13);
  --shadow-lg: 0 20px 60px rgba(18,42,115,0.18);
  --shadow-xl: 0 40px 100px rgba(18,42,115,0.24);
  --shadow-amber: 0 8px 28px rgba(232,160,32,0.3);
  --shadow-gold:  0 8px 28px rgba(232,160,32,0.3);
  --shadow-blue:  0 8px 28px rgba(16,142,207,0.3);

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-2xl: 48px;
  --r-pill: 999px;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    0.18s;
  --dur-mid:     0.32s;
  --dur-slow:    0.55s;

  /* Z-index */
  --z-loader: 9999;
  --z-cursor: 9998;
  --z-sticky: 1000;
  --z-overlay: 800;
  --z-modal: 900;
}

/* Dark mode */
[data-theme="dark"] {
  --color-text:       #dce5ff;
  --color-text-muted: #8896bb;
  --color-text-light: #5a6a95;
  --color-bg:      #07091a;
  --color-bg-alt:  #0b0e23;
  --color-card:    #10162b;
  --color-border:  #232b4a;
  --color-nav:     rgba(7,9,26,0.96);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.55);
  --blue-500: #38aee8;
  --blue-400: #7fcef5;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); line-height: 1.65; overflow-x: hidden; max-width: 100vw; transition: background var(--dur-mid), color var(--dur-mid); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; color: var(--color-text); }
button { font-family: var(--font-body); }
::selection { background: rgba(16,142,207,0.2); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }

/* ---- Page Loader ---- */
#pageLoader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--blue-900);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity 0.6s, visibility 0.6s;
}
#pageLoader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-monogram {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
.loader-monogram img { width: 72px; height: 72px; object-fit: contain; }
.loader-progress { width: 140px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.loader-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-500), var(--amber-light)); border-radius: 99px; animation: loaderBar 1.8s ease-out forwards; }
.loader-text { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.3); font-family: var(--font-body); }
@keyframes loaderPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.07)} }
@keyframes loaderBar { to { width: 100%; } }

/* ---- Custom Cursor ---- */
.cur-dot, .cur-ring { position: fixed; pointer-events: none; z-index: var(--z-cursor); transform: translate(-50%,-50%); }
.cur-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-600); transition: width 0.15s, height 0.15s, background 0.15s; }
.cur-ring { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(16,142,207,0.4); transition: width 0.12s, height 0.12s, border-color 0.12s; }
@media (hover:none) { .cur-dot,.cur-ring { display:none; } }

/* ---- Navigation ---- */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky);
  padding: 14px 0;
  background: var(--color-nav);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: padding var(--dur-mid), box-shadow var(--dur-mid), border-color var(--dur-mid);
}
#mainNav.scrolled { padding: 9px 0; border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-brand img { height: 42px; width: auto; object-fit: contain; transition: transform var(--dur-mid) var(--ease-spring); }
.nav-brand:hover img { transform: scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--color-text-muted); padding: 8px 13px; border-radius: var(--r-sm); white-space: nowrap; transition: color var(--dur-fast), background var(--dur-fast); font-family: var(--font-body); }
.nav-link:hover, .nav-link.active { color: var(--blue-700); background: rgba(26,61,153,0.07); }
[data-theme="dark"] .nav-link:hover,[data-theme="dark"] .nav-link.active { color: var(--blue-400); background: rgba(56,174,232,0.1); }
/* Dropdown */
.nav-item-dd { position: relative; }
.nav-dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: 6px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all var(--dur-mid) var(--ease); }
.nav-item-dd:hover .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dd-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--color-text); transition: background var(--dur-fast), color var(--dur-fast); }
.nav-dd-item:hover { background: var(--color-bg-alt); color: var(--primary); }
.nav-dd-icon { width: 32px; height: 32px; border-radius: var(--r-xs); background: var(--gray-50); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--blue-600); flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-nav-ghost { width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent; color: var(--color-text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background var(--dur-fast), color var(--dur-fast); }
.btn-nav-ghost:hover { background: var(--color-bg-alt); color: var(--primary); }
.btn-nav-cta { padding: 10px 20px; background: var(--blue-700); color: white; border: none; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-body); letter-spacing: 0.2px; transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast), background var(--dur-fast); box-shadow: 0 3px 12px rgba(26,61,153,0.35); white-space: nowrap; }
.btn-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(26,61,153,0.45); background: var(--blue-600); }
.btn-burger { background: none; border: none; cursor: pointer; padding: 6px; display: none; }
.burger-icon { display: flex; flex-direction: column; gap: 5px; }
.burger-icon span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all var(--dur-mid); }

/* Mobile menu */
.mobile-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: all var(--dur-mid); }
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 950; width: 290px; background: var(--blue-900); padding: 24px; overflow-y: auto; transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-spring); }
.mobile-menu.open { transform: none; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-menu-head img { height: 38px; }
.btn-close-menu { background: rgba(255,255,255,0.08); border: none; color: white; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.mobile-nav { list-style: none; }
.mobile-nav li + li { border-top: 1px solid rgba(255,255,255,0.07); }
.mobile-nav a { display: block; padding: 14px 0; color: rgba(255,255,255,0.7); font-size: 17px; font-family: var(--font-display); font-weight: 500; transition: color var(--dur-fast), padding-left var(--dur-fast); }
.mobile-nav a:hover { color: var(--amber-light); padding-left: 6px; }
.mobile-cta { display: block; text-align: center; padding: 13px; background: var(--blue-600); color: white !important; border-radius: var(--r-pill); font-weight: 600; font-family: var(--font-body) !important; font-size: 14px !important; margin-top: 20px; }
.mobile-social { display: flex; gap: 10px; margin-top: 24px; }
.mobile-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 16px; transition: background var(--dur-fast); }
.mobile-social a:hover { background: var(--amber); color: white; }

/* ---- Layout ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 120px 0; }

/* ---- Labels ---- */
.label { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: var(--r-pill); background: rgba(26,61,153,0.08); color: var(--blue-700); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); }
[data-theme="dark"] .label { background: rgba(56,174,232,0.12); color: var(--blue-400); }
.label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.label-amber { background: rgba(232,160,32,0.1); color: var(--amber-dark); }
[data-theme="dark"] .label-amber { color: var(--amber-light); }
.section-title { font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.5px; font-family: var(--font-display); }
.section-title span { color: var(--blue-600); }
[data-theme="dark"] .section-title span { color: var(--blue-400); }
.section-sub { font-size: clamp(15px, 1.8vw, 18px); color: var(--color-text-muted); line-height: 1.75; max-width: 580px; }
.title-line { width: 44px; height: 3px; background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); border-radius: 99px; margin: 14px 0 24px; }
.title-line-center { margin: 14px auto 24px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 26px; border-radius: var(--r-pill); font-family: var(--font-body); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast), background var(--dur-fast); white-space: nowrap; text-decoration: none; letter-spacing: 0.1px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-primary { background: var(--blue-700); color: white; box-shadow: 0 3px 14px rgba(26,61,153,0.32); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 8px 26px rgba(26,61,153,0.42); color: white; }
.btn-amber { background: linear-gradient(135deg, var(--amber-dark), var(--amber-light)); color: white; box-shadow: var(--shadow-amber); }
.btn-amber:hover { box-shadow: 0 10px 36px rgba(232,160,32,0.45); color: white; }
.btn-blue-light { background: var(--blue-500); color: white; box-shadow: var(--shadow-blue); }
.btn-blue-light:hover { background: var(--blue-400); color: white; }
.btn-outline { background: transparent; color: var(--blue-700); border: 2px solid var(--blue-700); }
.btn-outline:hover { background: var(--blue-700); color: white; }
.btn-ghost { background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-border); }
.btn-white { background: white; color: var(--blue-700); }
.btn-white:hover { background: var(--off-white); }
.btn-dark-outline { background: transparent; color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.22); backdrop-filter: blur(8px); }
.btn-dark-outline:hover { background: rgba(255,255,255,0.1); color: white; }

/* ---- Cards ---- */
.card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 2px 8px rgba(18,42,115,0.07), 0 0 0 1px rgba(18,42,115,0.03); transition: transform var(--dur-mid), box-shadow var(--dur-mid), border-color var(--dur-mid); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-pad { padding: 28px; }

/* ================================================================
   HERO
   ================================================================ */
.hero { min-height: 100vh; background: linear-gradient(145deg, var(--blue-900) 0%, var(--blue-800) 45%, #1a3d99 100%); position: relative; overflow: hidden; display: flex; align-items: center; padding: 120px 0 80px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(16,142,207,0.18) 0%, transparent 60%), radial-gradient(ellipse 40% 40% at 20% 70%, rgba(232,160,32,0.08) 0%, transparent 50%); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%); }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); }
.orb-1 { width: 380px; height: 380px; background: rgba(16,142,207,0.12); top: -5%; right: 8%; animation: orbFloat 14s ease-in-out infinite; }
.orb-2 { width: 280px; height: 280px; background: rgba(232,160,32,0.07); bottom: 10%; left: -4%; animation: orbFloat 18s ease-in-out infinite reverse; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0)} 33%{transform:translate(24px,-18px)} 66%{transform:translate(-18px,24px)} }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(16,142,207,0.15); border: 1px solid rgba(16,142,207,0.3); color: var(--blue-300); padding: 7px 16px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; letter-spacing: 0.5px; margin-bottom: 22px; backdrop-filter: blur(8px); animation: fadeSlideUp 0.8s var(--ease-out) both; font-family: var(--font-body); }
.hero-badge-pulse { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; animation: pulse 2s infinite; }
.hero-title { font-size: clamp(44px, 7.5vw, 80px); color: white; font-weight: 800; line-height: 1.06; margin-bottom: 20px; letter-spacing: -1px; animation: fadeSlideUp 0.8s 0.1s var(--ease-out) both; font-family: var(--font-display); }
.hero-title .accent { color: var(--amber-light); display: block; }
.hero-sub { font-size: clamp(15px, 1.8vw, 19px); color: rgba(255,255,255,0.62); max-width: 560px; line-height: 1.75; margin-bottom: 36px; animation: fadeSlideUp 0.8s 0.2s var(--ease-out) both; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeSlideUp 0.8s 0.3s var(--ease-out) both; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 52px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.1); animation: fadeSlideUp 0.8s 0.4s var(--ease-out) both; }
.hero-stat-n { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--amber-light); line-height: 1; letter-spacing: -1px; }
.hero-stat-l { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; font-family: var(--font-body); }
.hero-panel { background: rgba(255,255,255,0.05); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-xl); padding: 26px; animation: fadeSlideLeft 0.9s 0.2s var(--ease-out) both; }
.hero-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); padding: 9px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; margin: 3px; transition: background var(--dur-fast); font-family: var(--font-body); }
.hero-pill:hover { background: rgba(16,142,207,0.2); color: var(--blue-300); }
.hero-pill i { color: var(--amber-light); }
.hero-float-card { background: rgba(255,255,255,0.07); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r-md); padding: 16px 20px; }
.hfc-label { font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 5px; font-family: var(--font-body); }
.hfc-value { font-size: 14px; font-weight: 600; color: white; font-family: var(--font-display); }
.hfc-sub { font-size: 11px; color: var(--amber-light); margin-top: 2px; }

/* ---- Brands ---- */
.brands-section { padding: 36px 0; background: var(--color-bg); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.brands-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-text-light); text-align: center; margin-bottom: 22px; font-family: var(--font-body); }
.brands-track { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.brand-item { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--color-text-light); opacity: 0.5; transition: opacity var(--dur-fast), color var(--dur-fast); }
.brand-item:hover { opacity: 1; color: var(--blue-600); }

/* ---- Service Cards ---- */
.service-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--r-lg); padding: 32px 28px; position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(18,42,115,0.06), 0 0 0 1px rgba(18,42,115,0.03); transition: transform var(--dur-mid), box-shadow var(--dur-mid), border-color var(--dur-mid); height: 100%; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease); }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-xl); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; border-radius: var(--r-md); background: rgba(26,61,153,0.07); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--blue-600); margin-bottom: 20px; transition: background var(--dur-mid), color var(--dur-mid), transform var(--dur-mid) var(--ease-spring); }
.service-card:hover .service-icon { background: var(--blue-700); color: white; transform: scale(1.1) rotate(5deg); }
[data-theme="dark"] .service-icon { background: rgba(56,174,232,0.1); }
.service-card h4 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.service-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.72; }
.service-features { list-style: none; padding: 0; margin: 16px 0 20px; }
.service-features li { font-size: 13px; color: var(--color-text-muted); padding: 4px 0 4px 18px; position: relative; }
.service-features li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.service-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--blue-600); transition: gap var(--dur-fast); }
.service-more:hover { gap: 9px; }
[data-theme="dark"] .service-more { color: var(--blue-400); }

/* ---- Stats ---- */
.stats-section { background: linear-gradient(140deg, var(--blue-900), var(--blue-800)); padding: 72px 0; position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(16,142,207,0.2) 0%, transparent 60%); }
.stat-box { text-align: center; padding: 16px; }
.stat-num { font-family: var(--font-display); font-size: clamp(48px,6.5vw,76px); color: white; font-weight: 800; line-height: 1; display: flex; align-items: flex-end; justify-content: center; letter-spacing: -2px; }
.stat-suf { color: var(--amber-light); font-size: 0.55em; margin-bottom: 6px; }
.stat-label { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 6px; font-family: var(--font-body); }

/* ---- About ---- */
.about-badge { position: absolute; bottom: 28px; left: -20px; background: var(--color-card); border-radius: var(--r-md); padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; }
.about-badge-icon { width: 48px; height: 48px; background: var(--blue-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; flex-shrink: 0; }
.about-badge-num { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; }
.about-badge-text { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.about-feats { list-style: none; margin: 24px 0; }
.about-feats li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.about-feats li i { color: var(--blue-500); font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ---- Testimonials ---- */
.testi-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--r-lg); padding: 32px 28px; height: 100%; box-shadow: 0 2px 8px rgba(18,42,115,0.06); }
.testi-stars { font-size: 15px; color: var(--amber); margin-bottom: 14px; }
.testi-text { font-size: 15px; line-height: 1.8; color: var(--color-text-muted); margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-display); font-size: 18px; font-weight: 700; border: 2px solid var(--amber); flex-shrink: 0; }
.testi-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.testi-role { font-size: 12px; color: var(--color-text-muted); }

/* ---- FAQ ---- */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--r-md); overflow: hidden; margin-bottom: 8px; background: var(--color-card); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; font-size: 15px; font-weight: 500; gap: 14px; transition: background var(--dur-fast); }
.faq-question:hover { background: var(--color-bg-alt); }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--color-bg-alt); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; transition: transform var(--dur-mid), background var(--dur-mid); }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--blue-700); color: white; border-color: var(--blue-700); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer-inner { padding: 0 22px 18px; color: var(--color-text-muted); line-height: 1.75; font-size: 14px; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ---- Blog ---- */
.blog-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--r-lg); overflow: hidden; transition: all var(--dur-mid); height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--color-bg-alt); }
.blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-cat { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; color: var(--blue-600); margin-bottom: 8px; font-family: var(--font-body); }
.blog-title { font-size: 18px; margin-bottom: 8px; line-height: 1.35; font-weight: 700; }
.blog-excerpt { font-size: 13px; color: var(--color-text-muted); line-height: 1.7; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--color-text-light); margin-top: 14px; }
.blog-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--blue-600); margin-top: 14px; transition: gap var(--dur-fast); }
.blog-more:hover { gap: 9px; }

/* ---- Contact ---- */
.contact-form-wrap { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--r-xl); padding: 44px 38px; box-shadow: 0 4px 24px rgba(18,42,115,0.1), 0 0 0 1px rgba(18,42,115,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--color-text); }
.form-control { width: 100%; background: var(--color-bg-alt); border: 1.5px solid var(--color-border); border-radius: var(--r-sm); color: var(--color-text); padding: 12px 14px; font-size: 14px; font-family: var(--font-body); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); outline: none; }
.form-control::placeholder { color: var(--color-text-light); }
.form-control:focus { border-color: var(--blue-600); background: var(--color-card); box-shadow: 0 0 0 3px rgba(26,61,153,0.1); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238896bb' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 11px; padding-right: 36px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 4px; display: none; }
.contact-info-block { padding: 18px 0; border-bottom: 1px solid var(--color-border); display: flex; align-items: flex-start; gap: 14px; }
.contact-info-block:last-child { border-bottom: none; }
.ci-icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--blue-700); display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; flex-shrink: 0; }
.ci-lbl { font-size: 10px; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.ci-val { font-size: 14px; color: var(--color-text); font-weight: 500; }
.ci-val a:hover { color: var(--blue-600); }

/* ---- Page Hero ---- */
.page-hero { background: linear-gradient(140deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%); padding: 136px 0 76px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(16,142,207,0.15) 0%, transparent 55%); }
.page-hero-title { font-size: clamp(38px, 6.5vw, 64px); color: white; font-weight: 800; letter-spacing: -0.5px; }
.page-hero-sub { color: rgba(255,255,255,0.58); font-size: 17px; max-width: 540px; margin-top: 10px; }
.breadcrumb-row { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-bottom: 16px; font-family: var(--font-body); }
.breadcrumb-row a { color: rgba(255,255,255,0.4); }
.breadcrumb-row a:hover { color: var(--amber-light); }
.breadcrumb-row .sep { color: rgba(255,255,255,0.2); }
.breadcrumb-row span { color: var(--amber-light); }

/* ---- Footer ---- */
#footer { background: var(--blue-900); color: rgba(255,255,255,0.65); }
.footer-newsletter { background: linear-gradient(90deg, rgba(16,142,207,0.1), rgba(232,160,32,0.06)); border-bottom: 1px solid rgba(255,255,255,0.07); padding: 48px 0; }
.footer-nl-title { font-family: var(--font-display); font-size: 26px; color: white; font-weight: 700; }
.footer-nl-sub { color: rgba(255,255,255,0.5); font-size: 14px; margin-top: 5px; }
.nl-form { display: flex; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-pill); overflow: hidden; padding: 4px; }
.nl-form input { flex: 1; background: transparent; border: none; color: white; padding: 10px 16px; font-size: 14px; outline: none; font-family: var(--font-body); }
.nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.nl-form button { background: var(--blue-600); color: white; border: none; padding: 11px 22px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; transition: background var(--dur-fast); font-family: var(--font-body); }
.nl-form button:hover { background: var(--blue-500); }
.footer-main { padding: 64px 0 44px; }
.footer-about { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.8; max-width: 300px; margin-top: 14px; }
.footer-social { display: flex; gap: 9px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); font-size: 16px; transition: all var(--dur-fast); }
.footer-social a:hover { background: var(--amber); color: white; transform: translateY(-3px); }
.footer-heading { color: rgba(255,255,255,0.9); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; font-family: var(--font-body); }
.footer-links { list-style: none; }
.footer-links li + li { margin-top: 9px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color var(--dur-fast), padding-left var(--dur-fast); display: inline-block; }
.footer-links a:hover { color: var(--amber-light); padding-left: 4px; }
.footer-contact-list { list-style: none; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.footer-contact-list i { color: var(--blue-400); font-size: 15px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { color: rgba(255,255,255,0.5); }
.footer-contact-list a:hover { color: var(--amber-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 22px 0; }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 12px; }
.footer-bottom-links { display: flex; gap: 18px; justify-content: flex-end; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); font-size: 12px; transition: color var(--dur-fast); }
.footer-bottom-links a:hover { color: var(--amber-light); }

/* ---- Floating Widgets ---- */
.wa-float { position: fixed; bottom: 84px; right: 22px; z-index: 500; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 5px 20px rgba(37,211,102,0.4); transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast); }
.wa-float:hover { transform: scale(1.12) translateY(-3px); color: white; box-shadow: 0 10px 32px rgba(37,211,102,0.5); }
.wa-tip { position: absolute; right: 64px; white-space: nowrap; background: var(--color-card); color: var(--color-text); font-size: 12px; padding: 5px 12px; border-radius: var(--r-pill); box-shadow: var(--shadow-md); opacity: 0; transform: translateX(8px); transition: all var(--dur-fast); pointer-events: none; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }
.back-top { position: fixed; bottom: 22px; right: 22px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-700); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--dur-mid) var(--ease-spring); }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-3px); background: var(--blue-600); }

/* ---- Cookie ---- */
.cookie { position: fixed; bottom: 18px; left: 18px; z-index: 800; max-width: 420px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-xl); transform: translateY(20px) scale(0.98); opacity: 0; visibility: hidden; transition: all 0.5s var(--ease-spring); }
.cookie.show { transform: none; opacity: 1; visibility: visible; }
.cookie-icon { font-size: 20px; color: var(--amber); margin-bottom: 8px; }
.cookie p { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 14px; }
.cookie a { color: var(--blue-600); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; }
.btn-cookie-ok { flex: 1; background: var(--blue-700); color: white; border: none; padding: 9px 14px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.btn-cookie-ok:hover { background: var(--blue-600); }
.btn-cookie-no { flex: 1; background: var(--color-bg-alt); color: var(--color-text-muted); border: none; padding: 9px 14px; border-radius: var(--r-pill); font-size: 12px; cursor: pointer; font-family: var(--font-body); }

/* ---- Animations ---- */
@keyframes fadeSlideUp { from{opacity:0;transform:translateY(26px)} to{opacity:1;transform:none} }
@keyframes fadeSlideLeft { from{opacity:0;transform:translateX(26px)} to{opacity:1;transform:none} }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:0.4} }
@keyframes spin { to{transform:rotate(360deg)} }
.reveal { opacity:0; transform:translateY(28px); transition:opacity 0.65s var(--ease-out),transform 0.65s var(--ease-out); }
.reveal.in { opacity:1; transform:none; }
.reveal-left { opacity:0; transform:translateX(-28px); transition:opacity 0.65s var(--ease-out),transform 0.65s var(--ease-out); }
.reveal-left.in { opacity:1; transform:none; }
.reveal-right { opacity:0; transform:translateX(28px); transition:opacity 0.65s var(--ease-out),transform 0.65s var(--ease-out); }
.reveal-right.in { opacity:1; transform:none; }
.delay-1{transition-delay:0.1s} .delay-2{transition-delay:0.2s} .delay-3{transition-delay:0.3s}
.delay-4{transition-delay:0.4s} .delay-5{transition-delay:0.5s} .delay-6{transition-delay:0.6s}
.page-transition { animation: fadeSlideUp 0.5s var(--ease-out) both; }

/* ---- Misc ---- */
.badge { display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:var(--r-pill);font-size:11px;font-weight:600; }
.badge-blue { background:rgba(26,61,153,0.1);color:var(--blue-700); }
.badge-gold,.badge-amber { background:rgba(232,160,32,0.1);color:var(--amber-dark); }
.gradient-text { background:linear-gradient(135deg,var(--blue-600),var(--blue-400));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text; }
.alert { padding:12px 16px;border-radius:var(--r-sm);font-size:13px;display:flex;align-items:center;gap:9px;margin-bottom:14px; }
.alert-success { background:rgba(22,163,74,0.1);color:#166534;border:1px solid rgba(22,163,74,0.2); }
.alert-error { background:rgba(220,38,38,0.1);color:#991b1b;border:1px solid rgba(220,38,38,0.2); }
.spinner { width:18px;height:18px;border:2px solid rgba(255,255,255,0.3);border-top-color:white;border-radius:50%;animation:spin 0.8s linear infinite; }
.divider { height:1px;background:var(--color-border);margin:28px 0; }
.text-center { text-align:center; }
.text-muted { color:var(--color-text-muted); }

/* Swiper */
.swiper-pagination-bullet { background:var(--gray-300);opacity:1; }
.swiper-pagination-bullet-active { background:var(--blue-600);transform:scale(1.3); }


/* Dark mode specific surface fixes */
[data-theme="dark"] .card {
  box-shadow: 0 0 0 1px rgba(35,43,74,0.8), 0 4px 16px rgba(0,0,0,0.4);
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 0 0 1px rgba(56,174,232,0.2), 0 12px 40px rgba(0,0,0,0.5);
  border-color: rgba(56,174,232,0.15);
}
[data-theme="dark"] .service-card,
[data-theme="dark"] .testi-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .contact-form-wrap,
[data-theme="dark"] .blog-card {
  background: #10162b;
  border-color: #232b4a;
}
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .testi-card:hover {
  border-color: rgba(56,174,232,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,174,232,0.12);
}
/* Alternating section backgrounds in dark — make them actually different */
[data-theme="dark"] .section[style*="background:var(--color-bg-alt)"],
[data-theme="dark"] [style*="background:var(--color-bg-alt)"] {
  background: #0b0e23 !important;
}
/* Nav in dark mode — stronger separation */
[data-theme="dark"] #mainNav.scrolled {
  background: rgba(7,9,26,0.98);
  box-shadow: 0 1px 0 #232b4a;
}
/* Footer newsletter dark stripe */
[data-theme="dark"] .footer-newsletter {
  background: linear-gradient(90deg, rgba(16,142,207,0.07), rgba(232,160,32,0.04));
  border-bottom-color: #232b4a;
}

/* ---- Responsive ---- */
@media (max-width:900px) {
  .section { padding:68px 0; }
  .nav-links,.btn-nav-cta { display:none; }
  .btn-burger { display:flex; }
  .hero-stats { gap:20px; }
  .form-row { grid-template-columns:1fr; }
  .contact-form-wrap { padding:28px 20px; }
}
@media (max-width:640px) {
  .section { padding:52px 0; }
  .container { padding:0 16px; }
  .hero { padding:100px 0 56px; }
  .hero-actions { flex-direction:column; }
  .hero-actions .btn { width:100%; }
  .nl-form { flex-direction:column;border-radius:var(--r-lg); }
  .cookie { left:12px;right:12px;max-width:none; }
  .footer-bottom { text-align:center; }
  .footer-bottom-links { justify-content:center; }
}
/* ---- Prevent horizontal overflow on mobile ---- */
*, *::before, *::after { max-width: 100%; }
img, video, iframe, embed, object { max-width: 100%; }
.hero, .stats-section, .page-hero, #footer, section { overflow-x: hidden; }
