/* ================================================================
   iGATE Consulting Inc. — Shared Stylesheet  (Light mode only)
   Palette: Navy (#0D2141) · White (#FFFFFF) · Blue (#0F52C8)
   Light sections: #FFFFFF · Tint sections: #F7F8FA
   Dark sections (hero / clients / footer): #0D2141
================================================================ */

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --navy:       #0D2141;
  --navy-mid:   #162C52;
  --white:      #FFFFFF;
  --tint:       #F7F8FA;
  --blue:       #0F52C8;
  --blue-dark:  #0A3A8F;
  --border:     #E4E7EC;
  --text:       #1A202C;
  --text-mid:   #4A5568;
  --text-muted: #718096;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #fff;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.font-serif { font-family: 'Playfair Display', Georgia, serif; }

/* ── Eyebrow label ── */
.eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── Blue rule ── */
.blue-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin-bottom: 1.25rem;
}

/* ── Buttons ── */
.btn-blue {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: var(--blue); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 600;
  border-radius: 4px; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15,82,200,0.28); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: transparent; color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 600;
  border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.35);
  text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: transparent; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 600;
  border-radius: 4px; border: 1.5px solid var(--border);
  text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-outline-dark:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ── Navigation ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
#site-header.scrolled { box-shadow: 0 2px 16px rgba(13,33,65,0.09); }

.nav-link {
  padding: 8px 15px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-mid);
  border-radius: 4px; text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.nav-link:hover { color: var(--navy); background: var(--tint); }
.nav-link.active { color: var(--blue); }

/* ── Dropdown ── */
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 248px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 10px 36px rgba(13,33,65,0.12);
  padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 100;
}
.dd-trigger:hover .dd-menu,
.dd-trigger:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dd-item {
  display: block; padding: 10px 16px;
  font-size: 0.875rem; color: var(--text-mid);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.dd-item:hover { color: var(--blue); border-color: var(--blue); background: var(--tint); }

/* ── Search ── */
.search-slide { max-width: 0; overflow: hidden; opacity: 0; transition: max-width 0.32s, opacity 0.22s; }
.search-slide.open { max-width: 220px; opacity: 1; }

/* ── Mobile menu ── */
.mob-menu { max-height: 0; overflow: hidden; transition: max-height 0.35s; }
.mob-menu.open { max-height: 680px; }

/* ── Service cards ── */
.svc-card {
  border: 1px solid var(--border);
  border-radius: 6px; padding: 28px;
  background: #fff; position: relative; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--blue);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.2s; border-radius: 3px 0 0 3px;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(13,33,65,0.09); border-color: var(--blue); }
.svc-card:hover::before { transform: scaleY(1); }

.svc-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 16px; background: var(--tint);
  transition: background 0.2s, border-color 0.2s;
}
.svc-card:hover .svc-icon { background: var(--blue); border-color: var(--blue); }
.svc-card:hover .svc-icon svg { color: #fff !important; }

/* ── Blog cards ── */
.blog-card {
  border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; background: #fff;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(13,33,65,0.09); border-color: var(--blue); }

.blog-img-1 { background: linear-gradient(155deg, #0D2141 0%, #162C52 50%, #0F3878 100%); }
.blog-img-2 { background: linear-gradient(155deg, #0D1F3C 0%, #1A3460 55%, #0A3A8F 100%); }
.blog-img-3 { background: linear-gradient(155deg, #0A1E3C 0%, #112244 55%, #0C3870 100%); }
.blog-img-4 { background: linear-gradient(155deg, #0B1D3A 0%, #0F2A5A 55%, #0A2A8F 100%); }
.blog-img-5 { background: linear-gradient(155deg, #0C1C38 0%, #101E42 55%, #0A2070 100%); }

/* ── Marquee ── */
.marquee-outer { overflow: hidden; display: flex; }
.marquee-inner { display: flex; white-space: nowrap; animation: ticker 40s linear infinite; }
.marquee-inner:hover { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Footer ── */
#site-footer { background: var(--navy); }
.footer-heading {
  font-family: 'Playfair Display', serif; font-size: 0.875rem; font-weight: 700;
  color: #fff; margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-link {
  display: block; font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none; padding: 4px 0;
  transition: color 0.18s; font-weight: 300;
}
.footer-link:hover { color: rgba(255,255,255,0.9); }

/* ── Contact form ── */
.form-input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  background: #fff; color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--blue); }
.form-input::placeholder { color: #B0B8C4; }
label.form-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; margin-bottom: 6px;
  color: var(--text-mid); text-transform: uppercase;
}

/* ── Page hero (inner pages) ── */
.page-hero { background: var(--navy); padding-top: 120px; padding-bottom: 80px; }

/* ── Value card ── */
.value-card {
  border: 1px solid var(--border); border-radius: 6px; padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.value-card:hover { border-color: var(--blue); box-shadow: 0 8px 28px rgba(15,82,200,0.08); }

/* ── Stat number ── */
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700; line-height: 1; color: var(--navy);
}

.divider-h { border: none; border-top: 1px solid var(--border); }

/* ── Scroll-reveal animations ── */
[data-anim] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
[data-anim].in-view { opacity: 1; transform: translateY(0); }
[data-anim][data-delay="1"] { transition-delay: 0.1s; }
[data-anim][data-delay="2"] { transition-delay: 0.2s; }
[data-anim][data-delay="3"] { transition-delay: 0.3s; }
[data-anim][data-delay="4"] { transition-delay: 0.4s; }
[data-anim][data-delay="5"] { transition-delay: 0.5s; }
[data-anim][data-delay="6"] { transition-delay: 0.6s; }

/* ── Hero load animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-h1 { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.anim-h2 { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
.anim-h3 { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.4s both; }
.anim-h4 { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.55s both; }

/* ── Page-hero animations ── */
.page-hero .eyebrow   { animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.page-hero .blue-rule { animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
.page-hero h1         { animation: fadeUp 0.7s  cubic-bezier(0.22,1,0.36,1) 0.35s both; }
.page-hero p          { animation: fadeUp 0.7s  cubic-bezier(0.22,1,0.36,1) 0.5s  both; }

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════════════ */

/* Prevent horizontal scroll globally */
html, body { overflow-x: hidden; }

/* Scroll-lock when mobile menu is open */
body.menu-open { overflow: hidden; }

/* Reduce section padding on small screens */
@media(max-width:767px) {
  .section { padding: 64px 0 !important; }
  .page-hero { padding-top: 88px !important; padding-bottom: 60px !important; }
}
@media(max-width:479px) {
  .section { padding: 52px 0 !important; }
  .container { padding: 0 16px !important; }
}

/* Buttons: easier to tap on touch screens */
@media(max-width:639px) {
  .btn-blue, .btn-outline-white, .btn-outline-dark {
    padding: 13px 22px; font-size: 0.85rem;
  }
}

/* Footer: stack to 1 col on small screens */
@media(max-width:479px) {
  #site-footer > div > div { grid-template-columns: 1fr !important; }
}

/* Nav dropdown: full width on mobile */
@media(max-width:1023px) {
  .dd-menu { position: static; box-shadow: none; border: none; padding: 0; opacity: 1; visibility: visible; transform: none; }
}

/* Marquee: slow down on small screens */
@media(max-width:640px) {
  .marquee-inner { animation-duration: 28s; }
}

/* Stat numbers on mobile */
@media(max-width:479px) {
  .stat-num { font-size: 2.2rem; }
}

/* Blog category bar: scrollable on mobile */
.cat-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
@media(min-width:640px) { .cat-bar { flex-wrap: wrap; overflow-x: visible; } }

/* Service detail number: smaller on mobile */
@media(max-width:639px) {
  .svc-num { font-size: 2.6rem !important; }
}

/* ═══════════════════════════════════════════════
   ANIMATIONS.JS COMPANION STYLES
═══════════════════════════════════════════════ */

/* Custom cursor */
.cur-dot, .cur-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%; pointer-events: none; z-index: 9999;
  will-change: transform;
}
.cur-dot {
  width: 6px; height: 6px;
  background: #0F52C8;
  margin: -3px 0 0 -3px;
  transition: opacity 0.2s;
}
.cur-ring {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(15,82,200,0.45);
  margin: -15px 0 0 -15px;
  transition: width 0.25s, height 0.25s, margin 0.25s, border-color 0.25s;
}
.cur-ring.cur-grow {
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-color: rgba(15,82,200,0.7);
}

/* Card spotlight (mouse-tracking radial glow) */
.svc-card::after, .blog-card::after, .value-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(15,82,200,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.svc-card:hover::after, .blog-card:hover::after, .value-card:hover::after { opacity: 1; }

/* Hero accent shimmer */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.hero-accent {
  background: linear-gradient(90deg, #7AAEF5 0%, #fff 40%, #7AAEF5 60%, #a8c8ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
