/* ===== Sleek Modern Design System ===== */
:root {
  /* Refined Colour Palette */
  --bg:               #fafafa;
  --surface:          #ffffff;
  --text:             #0a0a0a;
  --text-light:       #666666;
  --accent:           #244780;    /* Navy blue */
  --accent-hover:     #1a325a;    /* Darker navy */
  --accent-yellow:    #ffdb58;    /* Yellow for special CTAs */
  --accent-yellow-hover: #f0c94a; /* Darker yellow */
  --border:           #e5e5e5;
  --border-hover:     #cccccc;
  
  /* Functional Colours */
  --success:          #00c896;
  --warning:          #ffb800;
  --error:            #ff3b30;
  
  /* Minimalist Shadows */
  --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md:        0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg:        0 8px 40px rgba(0, 0, 0, 0.12);
  
  /* Clean Radius */
  --radius:           6px;
  --radius-lg:        10px;
  --radius-xl:        16px;
  
  /* Modern Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
  
  /* Spacing Scale */
  --space-xs:         0.5rem;
  --space-sm:         1rem;
  --space-md:         1.5rem;
  --space-lg:         2.5rem;
  --space-xl:         4rem;
  --space-2xl:        6rem;
  
  /* Transitions */
  --transition:       all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm) 0;
}

h1, .h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

h2, .h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h3, .h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
  color: var(--text-light);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: -0.01em;
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* ===== Minimal Navigation ===== */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text) !important;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.navbar-brand:hover {
  opacity: 0.7;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--text) !important;
}

.navbar-nav .nav-link.active {
  color: var(--text) !important;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== Modern Buttons ===== */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

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

.btn-outline-primary:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--text);
  color: white;
}

.btn-dark:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Yellow CTA button - for high-priority actions */
.btn-yellow {
  background: var(--accent-yellow);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn-yellow:hover {
  background: var(--accent-yellow-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-ghost:hover {
  background: rgba(36, 71, 128, 0.05);
}

/* ===== Clean Sections ===== */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

section {
  padding: var(--space-xl) 0;
}

.section-tint {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== Minimal Cards ===== */
.card-minimal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
}

.card-minimal:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Feature boxes */
.border.rounded.p-3 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) !important;
  transition: var(--transition);
}

.border.rounded.p-3:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.border.rounded.p-3 h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.border.rounded.p-3 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.border.rounded.p-3 li {
  padding: 0.5rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.border.rounded.p-3 li:last-child {
  border-bottom: none;
}

.border.rounded.p-3 li::before {
  content: "→";
  margin-right: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}

/* Stats boxes */
.stat-box {
  padding: var(--space-md);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--accent);
  background: var(--surface);
}

/* ===== Modern Lists ===== */
ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
  color: var(--text-light);
}

/* ===== Links ===== */
a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

a:hover {
  color: var(--accent-hover);
}

/* Inline links with underline animation */
p a, li a {
  color: var(--accent);
  position: relative;
  font-weight: 500;
}

p a::after, li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

p a:hover::after, li a:hover::after {
  width: 100%;
}

/* ===== Minimal Footer ===== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

footer small {
  color: var(--text-light);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

footer a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.875rem;
}

footer a:hover {
  color: var(--text);
}

/* ===== Modern Form Elements ===== */
.form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 71, 128, 0.1);
  background: var(--surface);
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

/* ===== Utilities ===== */
.text-muted {
  color: var(--text-light) !important;
}

.fw-bold {
  font-weight: 600 !important;
}

.fw-semibold {
  font-weight: 500 !important;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Spacing utilities */
.mt-2 { margin-top: var(--space-sm) !important; }
.mt-3 { margin-top: var(--space-md) !important; }
.mt-4 { margin-top: var(--space-lg) !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* ===== Mobile Optimisation ===== */
@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }
  
  h1, .h1 {
    font-size: 2.5rem;
  }
  
  h2, .h2 {
    font-size: 2rem;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
  }
  
  section {
    padding: var(--space-lg) 0;
  }
}

/* ===== Performance ===== */
.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.hardware-accelerate {
  transform: translateZ(0);
  will-change: transform;
}

/* ===== Accessibility ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Modern Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  border-radius: 100px;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(0, 200, 150, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(255, 184, 0, 0.15);
  color: #d4a017;
}

.badge-accent {
  background: rgba(36, 71, 128, 0.1);
  color: var(--accent);
}

/* ===== Social Icons ===== */
.social-icons a {
  text-decoration: none;
  transition: transform 0.2s ease;
  display: inline-block;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

.social-icons i {
  font-size: 1.5rem;
  color: var(--accent);
}
