/* =============================================
   NEXGEN SOLUTIONS — Global Stylesheet
   ============================================= */

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

:root {
  --navy:    #1a3a6b;
  --blue:    #2a6cc4;
  --sky:     #4a8fd4;
  --cyan:    #5aabde;
  --white:   #FFFFFF;
  --off:     #F0F6FF;
  --mid:     #7a9ab8;
  --dark:    #12284d;
  --text:    #1E293B;
  --border:  rgba(42,108,196,0.18);
  --glow:    rgba(42,108,196,0.28);
  --grad:    linear-gradient(135deg, #1a3a6b 0%, #2a6cc4 60%, #5aabde 100%);
  --glass:   rgba(255,255,255,0.06);
  --radius:  12px;
  --shadow:  0 8px 40px rgba(26,58,107,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 90px;
  background: rgba(11,31,75,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(11,31,75,0.98); }

.logo { display: flex; align-items: center; gap: 0; }
.logo-img {
  height: 80px;
  width: auto;
  display: block;
  border-radius: 6px;
}
footer .logo-img { height: 64px; }
@media(max-width:768px){ .navbar{ height:72px; } .logo-img { height: 60px; } }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 7px 16px; border-radius: 8px;
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(59,130,246,0.2); }
.nav-cta {
  background: var(--blue) !important; color: white !important;
  padding: 8px 20px !important;
  box-shadow: 0 0 18px var(--glow);
}
.nav-cta:hover { background: var(--sky) !important; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 100px 5% 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,92,219,0.25) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6,182,212,0.12) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,0.12); border: 1px solid rgba(6,182,212,0.3);
  color: var(--cyan); padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800;
  color: white; margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero h1 span { 
  background: linear-gradient(90deg, var(--sky), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.65); max-width: 520px;
  margin-bottom: 40px; font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.7s 0.3s ease both; }
.btn-primary {
  background: var(--blue); color: white; padding: 14px 32px;
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; transition: all 0.25s;
  box-shadow: 0 0 30px var(--glow);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--sky); transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow); }
.btn-outline {
  background: transparent; color: white; padding: 14px 32px;
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.25); cursor: pointer; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }

.hero-stats {
  position: absolute; bottom: 60px; right: 5%;
  display: flex; gap: 40px; z-index: 1;
  animation: fadeUp 0.7s 0.4s ease both;
}
.stat { text-align: center; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: white; }
.stat-num span { color: var(--cyan); }
.stat-label { font-size: 0.78rem; color: var(--mid); text-transform: uppercase; letter-spacing: 1px; }

/* ── SECTIONS ── */
.section { padding: 90px 5%; }
.section-alt { background: var(--off); }
.section-dark { background: var(--dark); }

.section-tag {
  display: inline-block;
  color: var(--blue); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.section-title.light { color: white; }
.section-sub { font-size: 1.05rem; color: var(--mid); max-width: 560px; font-weight: 300; margin-bottom: 50px; }
.section-sub.light { color: rgba(255,255,255,0.55); }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.card {
  background: white; border: 1px solid rgba(11,31,75,0.08);
  border-radius: 16px; padding: 32px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-dark {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.card-dark:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,92,219,0.12), rgba(6,182,212,0.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card-dark h3 { color: white; }
.card p, .card li { font-size: 0.92rem; color: #64748B; line-height: 1.7; }
.card-dark p, .card-dark li { color: rgba(255,255,255,0.6); }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: white;
  padding: 60px 5% 30px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-top: 14px; line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: gap;
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: all 0.2s;
}
.social-links a:hover { background: var(--blue); border-color: var(--blue); color: white; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--dark); padding: 140px 5% 80px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(26,92,219,0.2) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); color: white; font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.55); font-size: 1.05rem; max-width: 520px; font-weight: 300; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.82rem; color: var(--mid); }
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { color: var(--mid); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--navy); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid rgba(11,31,75,0.12); border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem; color: var(--text);
  background: white; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,92,219,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MISC UTILITIES ── */
.tag {
  display: inline-block; background: rgba(26,92,219,0.08); color: var(--blue);
  font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 50px;
  margin-right: 6px; margin-bottom: 6px;
}
.divider { height: 1px; background: rgba(11,31,75,0.08); margin: 60px 0; }
.icon-check { color: var(--blue); margin-right: 8px; }
.highlight { color: var(--blue); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { position: static; margin-top: 50px; flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 20px;
    border-bottom: 1px solid var(--border); gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero h1 { font-size: 2.2rem; }
}
