/* ============================================
   GLOBAL ICT TECHNOLOGIES — main.css
   Global styles, CSS variables, typography
   ============================================ */

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

/* ============================================
   GLOBAL OVERFLOW FIX
   ============================================ */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}


/* --- CSS Variables --- */
:root {
  /* Brand Colors */
  --navy:          #0B2545;
  --navy-mid:      #0d2e52;
  --navy-light:    #163a63;
  --navy-dark:     #071a33;
  --navy-50:       #e8eef6;

  --brand-green:   #34C759;
  --brand-teal:    #28A59D;
  --brand-blue:    #1D83E2;
  --brand-blue-lt: #4FA8F0;

  /* Gradients */
  --grad:          linear-gradient(135deg, #34C759 0%, #28A59D 50%, #1D83E2 100%);
  --grad-reverse:  linear-gradient(135deg, #1D83E2 0%, #28A59D 50%, #34C759 100%);
  --grad-soft:     linear-gradient(135deg, rgba(52,199,89,0.1) 0%, rgba(29,131,226,0.1) 100%);
  --grad-hero:     linear-gradient(135deg, rgba(52,199,89,0.06) 0%, rgba(29,131,226,0.08) 100%);

  /* Neutrals */
  --white:         #ffffff;
  --off-white:     #f8fafc;
  --light-gray:    #f0f4f8;
  --mid-gray:      #e2e8f0;
  --border:        rgba(11,37,69,0.08);
  --border-dark:   rgba(255,255,255,0.1);

  /* Text */
  --text-primary:  #0B2545;
  --text-sec:      rgba(11,37,69,0.7);
  --text-muted:    rgba(11,37,69,0.5);
  --text-white:    #ffffff;
  --text-white-70: rgba(255,255,255,0.7);
  --text-white-50: rgba(255,255,255,0.5);

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(11,37,69,0.06), 0 1px 2px rgba(11,37,69,0.04);
  --shadow-md:     0 4px 16px rgba(11,37,69,0.08), 0 2px 6px rgba(11,37,69,0.04);
  --shadow-lg:     0 10px 40px rgba(11,37,69,0.12), 0 4px 12px rgba(11,37,69,0.06);
  --shadow-xl:     0 20px 60px rgba(11,37,69,0.16);
  --shadow-green:  0 8px 30px rgba(52,199,89,0.25);
  --shadow-blue:   0 8px 30px rgba(29,131,226,0.25);

  /* Border Radius */
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  /* Spacing */
  --section-pad:   100px;
  --container:     1280px;

  /* Transitions */
  --trans:         all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-fast:    all 0.15s ease;
  --trans-slow:    all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { line-height: 1.8; }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--trans-fast);
}

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

/* --- Utility Classes --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-pad) 0;
}

.section-sm {
  padding: 60px 0;
}

/* Gradient text */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.15em;
  display: inline-block;
}

/* Gradient background */
.grad-bg { background: var(--grad); }
.grad-bg-soft { background: var(--grad-soft); }

/* Section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-sec);
  max-width: 600px;
  font-weight: 300;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-label {
  justify-content: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--trans);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(29,131,226,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29,131,226,0.4);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: var(--trans);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(29,131,226,0.15);
}

/* Glass card (for dark backgrounds) */
.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--trans);
}

.glass-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

/* Icon box */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.icon-box-green  { background: rgba(52,199,89,0.12);  color: var(--brand-green); }
.icon-box-blue   { background: rgba(29,131,226,0.12); color: var(--brand-blue);  }
.icon-box-teal   { background: rgba(40,165,157,0.12); color: var(--brand-teal);  }
.icon-box-white  { background: rgba(255,255,255,0.12); color: var(--white);       }

/* Phosphor icon sizing */
.ph { font-size: inherit; }
.icon-sm  { font-size: 1.25rem; }
.icon-md  { font-size: 1.75rem; }
.icon-lg  { font-size: 2.25rem; }
.icon-xl  { font-size: 3rem; }

/* Badge / pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.badge-green {
  background: rgba(52,199,89,0.12);
  color: var(--brand-green);
  border: 1px solid rgba(52,199,89,0.25);
}

.badge-blue {
  background: rgba(29,131,226,0.12);
  color: var(--brand-blue);
  border: 1px solid rgba(29,131,226,0.25);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* Gradient line accent */
.grad-line {
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
}

/* Background variants */
.bg-navy    { background: var(--navy); }
.bg-navy-dk { background: var(--navy-dark); }
.bg-white   { background: var(--white); }
.bg-off     { background: var(--off-white); }
.bg-light   { background: var(--light-gray); }

/* Text on dark */
.on-dark h1, .on-dark h2, .on-dark h3,
.on-dark h4, .on-dark h5, .on-dark p,
.on-dark span, .on-dark li { color: var(--white); }

.on-dark .text-muted { color: var(--text-white-70); }
.on-dark .section-label { color: var(--brand-green); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 3px; }

/* Selection */
::selection { background: rgba(29,131,226,0.2); color: var(--navy); }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  :root { --section-pad: 80px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
  .btn-lg { padding: 0.875rem 1.75rem; font-size: 0.95rem; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-subtitle { font-size: 1rem; }
  .container { padding: 0 1rem; }
}

/* Prevent any element causing horizontal scroll */
section, header, footer, nav, div {
  max-width: 100%;
}

/* Hide reCAPTCHA v3 badge — protected by reCAPTCHA (Google Privacy Policy & Terms) */
.grecaptcha-badge { visibility: hidden !important; }
