/* ==========================================================================
   CEOaware — Ultra-High End Full-Width Design System
   Typography: Outfit (Headings) + Inter (Body)
   ========================================================================== */

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

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ── CEOaware Theme Color Palette ── */
  --bg-base:             #f4f6fb;
  --bg-surface:          #ffffff;
  --bg-surface-2:        #edf0f7;
  --bg-surface-3:        #e1e6f2;

  --color-primary:       #1E5E56;        /* CEOaware Teal */
  --color-primary-light: #eaf3f2;
  --color-primary-hover: #164640;
  --color-primary-glow:  rgba(30, 94, 86, 0.25);
  
  --color-navy:          #18262E;        /* Dark Navy */
  --color-navy-light:    #253743;
  
  --color-accent:        #5b6af0;        /* Indigo accent */
  --color-accent-glow:   rgba(91, 106, 240, 0.2);

  --color-success:       #2E7D32;
  --color-success-bg:    #e8f5e9;
  --color-warn:          #e65100;
  --color-warn-bg:       #fff3e0;
  --color-danger:        #d32f2f;
  --color-danger-bg:     #ffebee;

  --text-dark:           #18262E;
  --text-body:           #3b4754;
  --text-muted:          #788699;
  --text-on-primary:     #ffffff;

  --border-base:         rgba(30, 94, 86, 0.12);
  --border-subtle:       #e2e7f0;
  --border-focus:        rgba(30, 94, 86, 0.45);

  --shadow-sm:           0 2px 6px rgba(24, 38, 46, 0.05);
  --shadow-md:           0 8px 24px rgba(24, 38, 46, 0.08), 0 2px 6px rgba(24, 38, 46, 0.04);
  --shadow-lg:           0 16px 40px rgba(24, 38, 46, 0.12), 0 4px 12px rgba(24, 38, 46, 0.06);
  --shadow-glow:         0 8px 30px rgba(30, 94, 86, 0.3);

  --transition-smooth:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce:   all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Base Resets & Full-Width Container System
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .brand-logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ── Full Width Content Wrapper (max 1440px / 95% wide) ── */
.content-wrapper {
  max-width: 1440px;
  width: 95%;
  margin: 0 auto;
}

/* ── Background Decorative Glowing Orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.orb-1 {
  width: 650px; height: 650px; top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(30, 94, 86, 0.22) 0%, rgba(30, 94, 86, 0) 70%);
}

.orb-2 {
  width: 700px; height: 700px; top: 35%; left: -200px;
  background: radial-gradient(circle, rgba(91, 106, 240, 0.15) 0%, rgba(91, 106, 240, 0) 70%);
}

.orb-3 {
  width: 600px; height: 600px; bottom: -100px; right: 10%;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.12) 0%, rgba(46, 125, 50, 0) 70%);
}

/* ==========================================================================
   Navigation Bar — Floating Pill Header
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  margin-bottom: 24px;
}

.navbar {
  max-width: 1440px;
  width: 96%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.text-accent {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

/* ── Hamburger Button (hidden desktop) ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--color-primary-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: var(--color-primary);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.hamburger-btn:hover span {
  background: #ffffff;
}

/* ── Mobile Sidebar ── */
/* Both sidebar and overlay are hidden by default on all screen sizes.
   On mobile (<=768px) they are enabled via display rules below.
   JS toggles .open / .active classes to animate them in. */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24, 38, 46, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-surface);
  z-index: 210;
  flex-direction: column;
  padding: 28px 28px 40px 28px;
  box-shadow: -8px 0 40px rgba(24, 38, 46, 0.18);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-close {
  align-self: flex-end;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition-smooth);
  margin-bottom: 24px;
}

.sidebar-close:hover {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.sidebar-logo {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo img {
  height: 36px;
  width: auto;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-links li a,
.sidebar-links li button {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.sidebar-links li a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}


/* ==========================================================================
   Buttons & Controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: var(--transition-bounce);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: var(--text-on-primary) !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-glow {
  box-shadow: 0 4px 20px rgba(30, 94, 86, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-dark) !important;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-2);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Promo Badges & Pulse Animations
   ========================================================================== */
.badge-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  border: 1px solid rgba(30, 94, 86, 0.2);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(30, 94, 86, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(30, 94, 86, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(30, 94, 86, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 94, 86, 0); }
}

/* ==========================================================================
   Section Scroll Reveal Keyframes & Motion
   ========================================================================== */
.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up-delayed {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  opacity: 0;
}

.animate-slide-up-delayed2 {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal trigger class */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 50px 0 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Glass Cards & Feature Panels
   ========================================================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.feature-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: 24px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Admin Dashboard Components
   ========================================================================== */
.admin-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: #ffffff;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  margin-bottom: -50px;
  box-shadow: var(--shadow-lg);
}

.admin-hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.table-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  margin-bottom: 40px;
}

.table-header {
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.table-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: var(--bg-surface-2);
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background: var(--color-primary-light);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-green { background: var(--color-success-bg); color: var(--color-success); }
.badge-blue  { background: var(--color-primary-light); color: var(--color-primary); }
.badge-amber { background: var(--color-warn-bg); color: var(--color-warn); }
.badge-red   { background: var(--color-danger-bg); color: var(--color-danger); }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(24, 38, 46, 0.65);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1; pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 560px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-bounce);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}

.close-btn {
  background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-muted);
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }

.form-input, .form-select {
  width: 100%; padding: 12px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle); background: var(--bg-surface-2);
  font-size: 0.98rem; transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--color-primary); background: #ffffff;
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}

/* Footer */
.footer {
  margin-top: auto; background: var(--color-navy); color: var(--text-muted);
  padding: 44px 0; border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex; align-items: center; justify-content: space-between; font-size: 0.95rem;
}

/* ==========================================================================
   Responsive — Mobile-First Breakpoints
   ========================================================================== */

/* ── Tablet (≤1100px) ── */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-title { font-size: 2.8rem; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* How It Works — 3 col → 1 col on tablet */
  .features-grid[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* Hide desktop nav, show hamburger */
  .nav-links-desktop { display: none !important; }
  .hamburger-btn { display: flex !important; }

  /* Enable sidebar and overlay on mobile (JS controls open/close) */
  .sidebar-overlay { display: block; }
  .sidebar { display: flex; }

  /* Navbar */
  .navbar {
    padding: 10px 18px;
    border-radius: var(--radius-xl);
  }
  .nav-logo img {
    height: 30px;
  }

  /* Hero */
  .hero-section { padding: 32px 0 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 2.2rem; line-height: 1.15; }
  .hero-desc { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Stats Row */
  .stats-row { grid-template-columns: 1fr; gap: 14px; }
  .stat-card { padding: 18px; }
  .stat-num { font-size: 1.6rem; }

  /* Sections */
  .section { padding: 52px 0; }
  .section-title { font-size: 1.9rem; }
  .section-subtitle { font-size: 0.98rem; }

  /* Feature Cards — single column on mobile */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
  .feature-card { padding: 24px; }
  .feature-icon-box { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 16px; }
  .feature-title { font-size: 1.15rem; }

  /* Glass card (Why Us) */
  .glass-card { padding: 24px; }

  /* Why Us badges — wrap nicely */
  #about .glass-card > div[style*="flex"] {
    gap: 10px !important;
  }
  .badge { font-size: 0.78rem; padding: 5px 10px; }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Admin grid */
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-hero { padding: 28px 20px; }
  .admin-hero h1 { font-size: 1.7rem; }

  /* Tables on mobile */
  .custom-table th,
  .custom-table td { padding: 14px 16px; font-size: 0.88rem; }
  .table-header { padding: 18px 20px; }
}



/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
  .hero-title { font-size: 1.85rem; }
  .section-title { font-size: 1.6rem; }
  .navbar { top: 10px; }
  .content-wrapper { width: 92%; }
}

