/* ============================================================
   GREWON TECHNOLOGIES — SHARED STYLESHEET
   Logo Color Theme  |  v6.0  (BLUE-dominant)
   Exact colors extracted from Grewon Technologies logo SVG:
   ┌─ PRIMARY → Blue       #6294DB  (G left-arc — DOMINANT)
   ├─ Blue Light           #5DB5F7  (first diagonal slash)
   ├─ Purple Accent        #463379  (G right-arc — small accent only)
   ├─ Gold                 #FDC55E  (second diagonal slash)
   └─ Blue bottom arc      #6486CF
   Font: Poppins (entire site, matching grewon.com)
============================================================ */

/* ── GOOGLE FONTS — Poppins only (matches existing grewon.com) ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* ── Brand core — exact logo colors ── */
  --primary:        #6294DB;   /* blue — G left-arc (DOMINANT)  */
  --primary-dark:   #3A6BB5;   /* deeper blue                   */
  --primary-light:  #5DB5F7;   /* light blue — first slash      */

  /* ── Secondary / accent — purple is small accent only ── */
  --accent:         #463379;   /* dark purple — G right-arc (accent only) */
  --accent-mid:     #3A6BB5;   /* changed to deep blue (was purple)       */
  --accent-light:   #5DB5F7;   /* light blue (was purple)                 */
  --accent-gold:    #FDC55E;   /* gold — second slash           */
  --accent-gold-dk: #C49010;   /* darker gold for hover         */

  /* ── Deep neutrals — BLUE-based, not purple ── */
  --dark:           #0D1E3A;   /* deep navy blue (was #1A1035 purple)  */
  --dark-2:         #152847;   /* dark blue (was purple-dark)          */

  /* ── Greys — blue-tinted, not purple ── */
  --gray-1:         #F4F7FB;   /* very light blue-white (was purple-tinted) */
  --gray-2:         #E8EEF7;   /* light blue-grey (was purple-grey)         */
  --gray-3:         #C8D6EC;   /* mid blue-grey  (was purple-grey)          */
  --gray-4:         #7A9CC8;   /* blue-grey      (was purple-grey)          */
  --gray-5:         #4A74A8;   /* deeper blue-grey (was purple)             */
  --text:           #252B33;   /* exact heading color from site */
  --text-light:     #3A5472;   /* blue-toned body text (was purple #4A4570) */
  --white:          #ffffff;
  --light:          #F4F7FB;   /* matches gray-1                */

  /* ── Gradients — BLUE dominant, purple only as subtle end ── */
  --gradient:       linear-gradient(135deg, #3A6BB5 0%, #6294DB 60%, #5DB5F7 100%);
  --gradient-rev:   linear-gradient(135deg, #5DB5F7 0%, #6294DB 60%, #3A6BB5 100%);
  --gradient-bp:    linear-gradient(135deg, #6294DB 0%, #3A6BB5 100%); /* blue→deep blue */
  --gradient-v:     linear-gradient(180deg, #3A6BB5 0%, #6294DB 100%);
  --gradient-gold:  linear-gradient(135deg, #FDC55E 0%, #C49010 100%);
  --gradient-hero:  linear-gradient(135deg, #071528 0%, #0D1E3A 45%, #122952 100%);

  /* ── Shadows (keyed to logo blue rgb 98,148,219) ── */
  --shadow-sm:      0 2px 12px rgba(98,148,219,0.15);
  --shadow-md:      0 6px 24px rgba(98,148,219,0.22);
  --shadow-lg:      0 12px 48px rgba(98,148,219,0.30);
  --shadow-xl:      0 20px 70px rgba(98,148,219,0.38);

  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --tr:             all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.7; }
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; line-height: 1.25; color: var(--text); }
h1 { font-family: 'Poppins', sans-serif; font-weight: 800; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 100px 0; }
.section-alt { background: var(--gray-1); }
.section-dark { background: var(--gradient-hero); }

/* ── SECTION LABELS ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(98,148,219,0.09);
  color: var(--primary);
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; padding: 6px 18px;
  border-radius: 50px; margin-bottom: 18px;
  border: 1px solid rgba(98,148,219,0.15);
}
.section-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%;
}
.section-tag.light { background: rgba(255,255,255,0.12); color: #5DB5F7; border-color: rgba(255,255,255,0.2); }
.section-tag.light::before { background: var(--accent-light); }

.section-title { font-size: clamp(28px,4vw,46px); font-weight: 800; color: var(--dark); margin-bottom: 18px; }
.section-title span {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title.light { color: white; }
.section-title.light span {
  background: linear-gradient(90deg, #5DB5F7, #FDC55E);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { font-size: 17px; color: var(--text-light); line-height: 1.85; }
.section-subtitle.light { color: rgba(255,255,255,0.72); }
.section-header { text-align: center; margin-bottom: 68px; }
.section-header .section-subtitle { max-width: 620px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 34px; border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--tr);
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient); color: white;
  box-shadow: 0 4px 24px rgba(98,148,219,0.45);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  /* Gold shimmer on hover — echoes the gold slash in the logo */
  content: '';
  position: absolute; top: -50%; left: -60%; width: 30%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(245,192,64,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(98,148,219,0.55); }
.btn-primary:hover::after { left: 130%; }
.btn-outline {
  border-color: rgba(255,255,255,0.4); color: white;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); border-color: white; transform: translateY(-3px); }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--gray-1); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.btn-ghost { color: var(--primary); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: var(--tr); }
.btn-ghost:hover { gap: 12px; }
.btn-ghost i { transition: transform 0.3s; }
.btn-ghost:hover i { transform: translateX(4px); }

/* ── PAGE HERO BANNER (inner pages) ── */
.page-hero {
  background: var(--gradient-hero);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}
.page-hero-orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
}
.page-hero-orb-1 { width:500px; height:500px; background:radial-gradient(circle,rgba(98,148,219,0.2) 0%,transparent 70%); top:-200px; right:-100px; }
.page-hero-orb-2 { width:400px; height:400px; background:radial-gradient(circle,rgba(137,196,245,0.15) 0%,transparent 70%); bottom:-150px; left:-100px; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero-breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.3s; }
.page-hero-breadcrumb a:hover { color: var(--accent-light); }
.page-hero-breadcrumb span { color: var(--accent-light); font-weight: 600; }
.page-hero-breadcrumb i { font-size: 10px; }
.page-hero h1 { font-size: clamp(32px,5vw,56px); font-weight: 900; color: white; margin-bottom: 18px; }
.page-hero h1 span {
  background: linear-gradient(90deg,#5DB5F7,#FDC55E);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 580px; margin: 0 auto 32px; line-height: 1.8; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 20px 0;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  padding: 14px 0;
  box-shadow: 0 2px 30px rgba(98,148,219,0.12);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px;
  background: var(--gradient); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white;
  font-family: 'Poppins', sans-serif; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; color: white; transition: color 0.4s; }
.logo-sub  { font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; transition: color 0.4s; }
.navbar.scrolled .logo-name { color: var(--dark); }
.navbar.scrolled .logo-sub  { color: var(--gray-5); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px; border-radius: 8px;
  transition: var(--tr); position: relative;
}
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: white; background: rgba(255,255,255,0.12); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); background: rgba(98,148,219,0.08); }
.nav-links a.active { color: var(--accent-light) !important; font-weight: 700; }
.navbar.scrolled .nav-links a.active { color: var(--primary) !important; background: rgba(98,148,219,0.08); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: var(--tr); }
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white; z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 20px; font-weight: 600; color: var(--dark);
  padding: 12px 40px; border-radius: 12px; transition: var(--tr); width: 280px; text-align: center;
}
.mobile-menu a:hover { background: var(--gray-1); color: var(--primary); }
.mobile-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; background: var(--gray-2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: var(--dark); border: none;
}

/* ── FOOTER ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 80px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p { font-size: 14px; line-height: 1.8; margin: 20px 0 28px; max-width: 290px; }
.footer-social { display: flex; gap: 10px; }
.fsb {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 16px; transition: var(--tr);
}
.fsb:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-col h4 { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: white; margin-bottom: 22px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.5); transition: var(--tr); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--accent-light); transform: translateX(4px); }
.footer-links a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.25); flex-shrink: 0; transition: background 0.3s; }
.footer-links a:hover::before { background: var(--accent-light); }
.footer-bottom {
  padding: 24px 0; display: flex;
  align-items: center; justify-content: space-between; font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--accent-light); }

/* ── BACK TO TOP ── */
.back-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 50px; height: 50px; background: var(--gradient);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; cursor: pointer;
  opacity: 0; transform: translateY(20px); transition: var(--tr);
  z-index: 500; box-shadow: var(--shadow-md);
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── MARQUEE ── */
.marquee-wrap { padding: 22px 0; background: white; border-bottom: 1px solid var(--gray-3); overflow: hidden; }
.marquee-track { display: flex; gap: 56px; animation: marquee 28s linear infinite; white-space: nowrap; }
.marquee-item { display: flex; align-items: center; gap: 9px; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; color: var(--gray-4); letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0; }
.marquee-item i { font-size: 17px; color: var(--primary-light); }

/* ── CARDS ── */
.card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-3);
  transition: var(--tr); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-accent-line::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient);
  transform: scaleX(0); transition: transform 0.4s ease;
}
.card-accent-line:hover::before { transform: scaleX(1); }

/* ── STAT CARDS ── */
.stat-card {
  text-align: center; padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); transition: var(--tr);
}
.stat-card:hover { background: rgba(255,255,255,0.11); transform: translateY(-8px); }
.stat-emoji { font-size: 38px; margin-bottom: 16px; }
.stat-number { font-family: 'Poppins', sans-serif; font-size: 52px; font-weight: 900; color: white; line-height: 1; margin-bottom: 8px; }
.stat-suffix { font-size: 30px; }
.stat-label { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6); }

/* ── TECH PILLS ── */
.tech-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px; background: white;
  border: 1.5px solid var(--gray-3); border-radius: 50px;
  font-size: 13.5px; font-weight: 500; color: var(--text); transition: var(--tr);
}
.tech-pill:hover { border-color: var(--primary); color: var(--primary); background: rgba(98,148,219,0.04); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tech-pill i { font-size: 15px; color: var(--primary); }

/* ── TESTIMONIAL CARD ── */
.testi-card { background: white; border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--gray-3); transition: var(--tr); }
.testi-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(98,148,219,0.2); }
.testi-quote { font-size: 52px; line-height: 1; margin-bottom: 14px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: 'Georgia', serif; }
.testi-text { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 28px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 800; color: white; flex-shrink: 0; }
.testi-name { font-size: 15px; font-weight: 700; color: var(--dark); }
.testi-role { font-size: 12.5px; color: var(--text-light); }
.testi-stars { color: #FCD34D; font-size: 12px; margin-top: 4px; }

/* ── CTA BANNER ── */
.cta-section { background: var(--gradient); padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: rgba(255,255,255,0.05); top: -300px; left: -150px; }
.cta-section::after  { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,0.05); bottom: -250px; right: -100px; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(28px,4vw,46px); font-weight: 900; color: white; margin-bottom: 20px; }
.cta-inner p { font-size: 18px; color: rgba(255,255,255,0.78); margin-bottom: 44px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT FORM ── */
.contact-form-wrap { background: white; border-radius: var(--radius-lg); padding: 44px; border: 1px solid var(--gray-3); box-shadow: var(--shadow-sm); }
.contact-form-wrap h3 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 18px;
  border: 1.5px solid var(--gray-3); border-radius: var(--radius);
  font-size: 14px; font-family: 'Inter', sans-serif;
  color: var(--text); background: var(--gray-1);
  transition: var(--tr); outline: none; resize: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(98,148,219,0.1); }
.form-group textarea { height: 130px; }

/* ============================================================
   SCROLL ANIMATIONS  (Custom AOS System)
============================================================ */

/* Base state — hidden before animation */
[data-animate] {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.75s;
  will-change: opacity, transform;
}
[data-animate].animated {
  opacity: 1;
  transform: none !important;
  filter: none !important;
}

/* Fade directions */
[data-animate="fade-up"]    { transform: translateY(55px); }
[data-animate="fade-down"]  { transform: translateY(-55px); }
[data-animate="fade-left"]  { transform: translateX(60px); }
[data-animate="fade-right"] { transform: translateX(-60px); }

/* Zoom */
[data-animate="zoom-in"]  { transform: scale(0.82); }
[data-animate="zoom-out"] { transform: scale(1.15); }

/* Flip */
[data-animate="flip-up"]    { transform: perspective(800px) rotateX(28deg); }
[data-animate="flip-left"]  { transform: perspective(800px) rotateY(-28deg); }
[data-animate="flip-right"] { transform: perspective(800px) rotateY(28deg); }

/* Slide */
[data-animate="slide-up"]   { transform: translateY(90px); }
[data-animate="slide-left"] { transform: translateX(90px); }

/* Blur-in */
[data-animate="blur-in"] { transform: translateY(30px); filter: blur(8px); }

/* Rotation */
[data-animate="rotate-in"] { transform: rotate(-8deg) scale(0.9); }

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.30s; }
[data-delay="350"] { transition-delay: 0.35s; }
[data-delay="400"] { transition-delay: 0.40s; }
[data-delay="450"] { transition-delay: 0.45s; }
[data-delay="500"] { transition-delay: 0.50s; }
[data-delay="600"] { transition-delay: 0.60s; }
[data-delay="700"] { transition-delay: 0.70s; }
[data-delay="800"] { transition-delay: 0.80s; }

/* Custom durations */
[data-duration="slow"]   { transition-duration: 1.1s; }
[data-duration="fast"]   { transition-duration: 0.45s; }
[data-duration="xslow"]  { transition-duration: 1.4s; }

/* ============================================================
   KEYFRAME ANIMATIONS
============================================================ */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(40px); }  to { opacity:1; transform:translateY(0); } }
@keyframes zoomIn     { from { opacity:0; transform:scale(0.78); }        to { opacity:1; transform:scale(1); } }
@keyframes float      { 0%,100% { transform:translateY(0); }  50% { transform:translateY(-18px); } }
@keyframes floatSlow  { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-10px) rotate(2deg); } }
@keyframes spin       { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes shimmer    { 0% { background-position:-200% center; } 100% { background-position:200% center; } }
@keyframes pulse      { 0%,100% { box-shadow:0 0 0 0 rgba(74,222,128,0.5); } 50% { box-shadow:0 0 0 10px rgba(74,222,128,0); } }
@keyframes marquee    { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes gradMove   { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@keyframes barGrow    { from { width:0; } to { width:var(--w); } }
@keyframes countUp    { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes ripple     { from { transform:scale(0); opacity:0.6; } to { transform:scale(4); opacity:0; } }
@keyframes glowPulse  { 0%,100% { box-shadow:0 0 20px rgba(98,148,219,0.3); } 50% { box-shadow:0 0 40px rgba(137,196,245,0.6); } }

/* ============================================================
   SHARED UTILITY CLASSES
============================================================ */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
/* Gold accent utility */
.accent-gold { color: var(--accent-gold); }
.bg-gold { background: var(--gradient-gold); }
.text-center { text-align: center; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* About feat boxes */
.about-feat { display:flex; align-items:flex-start; gap:12px; padding:16px; background:var(--gray-1); border:1px solid var(--gray-3); border-radius:var(--radius); transition:var(--tr); }
.about-feat:hover { border-color:var(--primary-light); box-shadow:var(--shadow-sm); }
.af-icon { width:36px; height:36px; background:rgba(98,148,219,0.1); border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:16px; flex-shrink:0; margin-top:2px; }
.about-feat h4 { font-size:13px; font-weight:700; color:var(--dark); margin-bottom:3px; }
.about-feat p  { font-size:12.5px; color:var(--text-light); line-height:1.5; }

/* Floating badges */
.float-badge { position:absolute; background:white; border-radius:16px; padding:12px 20px; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:12px; animation:floatSlow 4s ease-in-out infinite; }
.float-badge .fb-icon { width:40px; height:40px; border-radius:10px; background:var(--gradient); display:flex; align-items:center; justify-content:center; color:white; font-size:18px; }
.float-badge strong { display:block; font-family:'Poppins',sans-serif; font-size:18px; font-weight:800; color:var(--dark); line-height:1; }
.float-badge small { font-size:11px; color:var(--gray-5); }

/* Section divider wave */
.wave-divider { width:100%; overflow:hidden; line-height:0; }
.wave-divider svg { display:block; width:100%; height:60px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links, .nav-cta .btn-primary { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 60px; }
}

/* ============================================================
   BRIDGE LAYER — aliases used by inner pages
   (ensures compatibility with services/solutions/portfolio/
    technologies/contact pages built with updated class names)
============================================================ */

/* ── EXTRA VARIABLES (shorthand aliases — updated to logo palette) ── */
:root {
  --gray:  #5870A8;   /* cooler blue-toned gray */   /* alias for --gray-5 (cooler blue-purple) */
  --light: #F3F6FF;   /* cool blue-white */   /* alias for --gray-1 (cool white)         */
}

/* ── SECTION UTILITIES ── */
.section-pad   { padding: 5rem 0; }
.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.section-sub {
  font-size: 1rem; color: var(--gray);
  line-height: 1.8; max-width: 620px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 1.5rem; }
/* Re-alias section-title for inner pages */
.section-title  { font-size: clamp(1.75rem,3.5vw,2.6rem); font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 0.8rem; }

/* ── NAVBAR INNER LAYOUT ── */
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
}
/* Logo block used in inner pages */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: #fff; text-decoration: none;
  transition: all 0.3s;
}
.navbar.scrolled .nav-logo { color: var(--dark); }
.logo-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gradient-rev); /* blue→purple = left-arc→right-arc */
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 900; color: #fff;
  font-family: 'Poppins', sans-serif;
  position: relative; overflow: visible;
}
/* Gold dot accent on the logo mark (echoes the gold slash in the real logo) */
.logo-mark::after {
  content: '';
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--dark);
}

/* SVG logo image used in navbar */
.logo-mark-svg {
  width: 40px; height: 40px; flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(98,148,219,0.35));
}
.logo-tech { color: var(--accent-gold); }
.navbar.scrolled .logo-tech { color: var(--primary); }

/* Nav actions (CTA + hamburger wrapper) */
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── BUTTON EXTRAS ── */
.btn-sm { padding: 0.55rem 1.2rem !important; font-size: 0.85rem !important; border-radius: 50px !important; }
.btn-light {
  background: #fff; color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.55); color: #fff;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.18); border-color: #fff; transform: translateY(-3px); }
/* btn-outline-dark already defined above */

/* ── PAGE HERO EXTRAS ── */
.page-hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.72);
  max-width: 600px; margin: 0 auto 1.8rem;
  line-height: 1.85;
}
/* Orb aliases for inner page hero */
.page-hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.page-hero-orb.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(98,148,219,0.22) 0%, transparent 70%);
  top: -180px; right: -100px;
}
.page-hero-orb.orb2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(137,196,245,0.16) 0%, transparent 70%);
  bottom: -130px; left: -80px;
}
/* Breadcrumb nav */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span { color: var(--accent-light); font-weight: 600; }
.breadcrumb i { font-size: 0.65rem; }

/* ── CTA SECTION ORBS ── */
.cta-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.cta-orb.cta-orb1 {
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.07);
  top: -200px; left: -100px;
}
.cta-orb.cta-orb2 {
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.06);
  bottom: -180px; right: -80px;
}

/* ── FOOTER COLUMN (inner pages) ── */
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  color: #fff; margin-bottom: 1.2rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  transition: all 0.3s; display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a:hover { color: var(--accent-light); transform: translateX(4px); }
.footer-col ul li a::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.25); flex-shrink: 0; transition: background 0.3s;
}
.footer-col ul li a:hover::before { background: var(--accent-light); }

/* footer-contact (icon-list style) */
.footer-contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
}
.footer-contact li i { color: var(--accent-light); margin-top: 3px; flex-shrink: 0; font-size: 0.82rem; }
.footer-contact li a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-contact li a:hover { color: var(--accent-light); }
/* Remove the ::before bullet from footer-contact items */
.footer-contact li::before { display: none; }

/* footer-legal links */
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: color 0.3s; }
.footer-legal a:hover { color: var(--accent-light); }

/* Social icons row */
.social-links { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social-links a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.95rem;
  transition: all 0.3s;
}
.social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ── MOBILE MENU (inner pages) ── */
.mobile-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 1.5rem;
}
.mobile-logo .logo-mark { background: var(--gradient); }
.mobile-logo span span { color: var(--primary); }
.mob-link {
  font-size: 1.1rem; font-weight: 600; color: var(--dark);
  padding: 0.75rem 2.5rem; border-radius: 12px;
  transition: all 0.3s; width: 280px; text-align: center;
  display: block;
}
.mob-link:hover, .mob-link.active { background: var(--light); color: var(--primary); }

/* ── SCROLL-PROGRESS BAR ── */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient); z-index: 9999;
  transition: width 0.1s linear;
}

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(98,148,219,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
}

/* ── BACK TO TOP (ensure show class works) ── */
#backTop { display: flex; }
.back-top.show { opacity: 1; transform: translateY(0); }

/* ── STAGGER-CHILDREN helper (JS assigns data-animate + data-delay) ── */
/* Children get data-animate="fade-up" automatically via JS — no extra CSS needed */

/* ── RESPONSIVE EXTRAS ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex !important; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex !important; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-legal { justify-content: center; }
  .social-links { justify-content: flex-start; }
  .breadcrumb { font-size: 0.75rem; }
}
