/* ==========================================================================
   AK GLOBAL — MAIN DESIGN SYSTEM (SAIF ARCHITECTURE + DUAL THEMES)
   LIGHT MODE: White & Blue (Logo Colors: #04327D, #0077CC, #0099FF)
   DARK MODE:  Black & Blue (Deep Black #05080E, Card #0E1626, Cyan #00A3FF)
   ========================================================================== */

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

/* --- DARK THEME (Black & Blue) (DEFAULT) --- */
:root,
[data-theme="dark"] {
  --theme-mode: 'dark';

  /* Backgrounds */
  --bg-primary: #05080E;
  --bg-secondary: #0A101D;
  --bg-surface: #0E1626;
  --bg-elevated: #152238;
  --bg-contrast: #FFFFFF;
  --bg-parallax: #081120;

  /* Typography */
  --text-primary: #F0F6FC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #05080E;
  --text-inverse-muted: rgba(5, 8, 14, 0.8);

  /* Brand Blue Palette for Dark Mode */
  --saif-blue: #0077CC;
  --saif-cyan: #00A3FF;
  --saif-sky: #38BDF8;
  --saif-hover: #29B6F6;
  --blue-chip-bg: rgba(0, 163, 255, 0.12);
  --blue-border: rgba(0, 163, 255, 0.25);

  /* Borders & Shadows */
  --border-subtle: #16233B;
  --border-card: #1D2E4D;
  --border-active: #38BDF8;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.75);

  /* Headers */
  --topbar-bg: #020509;
  --topbar-text: #CBD5E1;
  --header-widget-bg: #090E18;
  --navbar-bg: #0E1A2E;
  --navbar-link: #F0F6FC;
  --navbar-link-active: #38BDF8;
  --navbar-border: #1E2E4A;
}

/* --- LIGHT THEME (White & Blue) --- */
[data-theme="light"] {
  --theme-mode: 'light';

  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F4F7FA;
  --bg-surface: #FFFFFF;
  --bg-elevated: #EAF1F8;
  --bg-contrast: #060B14;
  --bg-parallax: #042254;

  /* Typography */
  --text-primary: #1A273A;
  --text-secondary: #4A5D78;
  --text-muted: #7E92A8;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: rgba(255, 255, 255, 0.82);

  /* Brand Blue Palette (AK Global Logo) */
  --saif-blue: #04327D;        /* Deep Primary Corporate Blue */
  --saif-cyan: #0099FF;        /* Vibrant Logo Blue Accent */
  --saif-sky: #29B6F6;         /* Bright Sky Accent */
  --saif-hover: #0077CC;       /* Interactive Blue */
  --blue-chip-bg: #EDF5FD;
  --blue-border: rgba(4, 50, 125, 0.15);

  /* Borders & Shadows */
  --border-subtle: #E2E8F0;
  --border-card: #E5ECF4;
  --border-active: #0099FF;
  --shadow-sm: 0 2px 6px rgba(4, 50, 125, 0.05);
  --shadow-md: 0 6px 18px rgba(4, 50, 125, 0.08);
  --shadow-lg: 0 12px 30px rgba(4, 50, 125, 0.12);

  /* Headers */
  --topbar-bg: #042254;
  --topbar-text: #EBF2FA;
  --header-widget-bg: #FFFFFF;
  --navbar-bg: #04327D;
  --navbar-link: #FFFFFF;
  --navbar-link-active: #29B6F6;
  --navbar-border: rgba(255, 255, 255, 0.12);
}

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --container-width: 1180px;
  --transition: all 220ms ease;
}

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

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

/* Laptop & standard desktop display scaling (1366x768, 1080p at 125%/150%) */
@media (max-width: 1400px) {
  html {
    font-size: 14.5px;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.22;
}

h1 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.2vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1.4vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.62;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons (Saif Style: Bold, crisp, uppercase/titlecase with arrow) */
.flat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  background-color: var(--saif-cyan);
  color: #FFFFFF;
}

.flat-button:hover {
  background-color: var(--saif-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 153, 255, 0.35);
}

.flat-button.style2 {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}

.flat-button.style2:hover {
  background-color: #FFFFFF;
  color: var(--saif-blue);
  border-color: #FFFFFF;
}

.flat-button.style-dark {
  background-color: var(--saif-blue);
  color: #FFFFFF;
}

.flat-button.style-dark:hover {
  background-color: var(--saif-cyan);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--saif-cyan);
  color: var(--saif-cyan);
  transform: rotate(20deg);
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
}

[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* Sections */
.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

.section-bg-secondary {
  background-color: var(--bg-secondary);
}

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

.title-section.text-center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.title-section .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--saif-cyan);
  margin-bottom: 0.65rem;
}

.title-section .sub-title {
  margin-top: 0.85rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}
