:root {
  /* Brand Colors - Sophisticated Palette */
  --color-primary-dark: #0f1e33;
  --color-primary: #1e3a5f; /* Deep Navy Blue */
  --color-primary-light: #2c5285;
  
  --color-secondary-dark: #b88a40;
  --color-secondary: #d4a350; /* Rich Gold */
  --color-secondary-light: #e8c07d;
  
  --color-accent: #c42026; /* Crimson Red */
  
  /* Neutral Palette */
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;
  
  /* Backgrounds */
  --bg-main: var(--color-neutral-50);
  --bg-surface: #ffffff;
  --bg-dark: var(--color-primary-dark);
  
  /* Text */
  --text-primary: var(--color-neutral-800);
  --text-secondary: var(--color-neutral-600);
  --text-muted: var(--color-neutral-500);
  --text-inverse: #ffffff;
  --text-inverse-muted: rgba(255, 255, 255, 0.7);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Shadows - Premium Depth */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(212, 163, 80, 0.3);
  --shadow-glow-primary: 0 0 20px rgba(30, 58, 95, 0.3);

  /* Borders & Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

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

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

.display-1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.display-2 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
h4 { font-size: 1.25rem; }

.lead {
  font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   Layout Utilities
   ========================================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section-padding { padding-block: var(--space-24); }
.section-padding-sm { padding-block: var(--space-12); }

.grid {
  display: grid;
  gap: var(--space-8);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { display: flex; flex-direction: column; }

/* =========================================
   Components: Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px 0 rgba(30, 58, 95, 0.39);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px 0 rgba(212, 163, 80, 0.39);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 163, 80, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--text-inverse);
}

/* =========================================
   Components: Navigation
   ========================================= */
.navbar-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding-block: var(--space-4);
}

.navbar-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-block: var(--space-2);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 100px;
  transition: height var(--transition-normal);
}

.navbar-wrapper.scrolled .logo img { height: 75px; }

.nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  position: relative;
  padding: 0.5rem 0;
}

/* Adjust colors if intro hero is dark */
.navbar-wrapper:not(.scrolled) .nav-link.light-text { color: var(--text-inverse); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    background: none;
    border: none;
}
.navbar-wrapper:not(.scrolled) .mobile-menu-btn.light-text { color: white; }

/* =========================================
   Components: Modern Cards
   ========================================= */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.8);
}

.service-card-modern {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-neutral-200);
  z-index: 1;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-secondary);
  transition: width var(--transition-normal);
  z-index: -1;
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card-modern:hover::before {
  width: 100%;
  opacity: 0.03; /* Subtle background color shift */
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-neutral-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  transition: all var(--transition-normal);
}

.service-card-modern:hover .icon-wrapper {
  background: var(--color-primary);
  color: var(--text-inverse);
  transform: scale(1.1);
}

/* =========================================
   Components: Hero / Page Headers
   ========================================= */
.hero-modern {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-color: var(--color-primary-dark);
  overflow: hidden;
}

/* Abstract Background Shapes for Hero */
.hero-modern::before, .hero-modern::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero-modern::before {
  width: 600px;
  height: 600px;
  background: rgba(212, 163, 80, 0.15); /* Gold glow */
  top: -200px;
  right: -100px;
}

.hero-modern::after {
  width: 500px;
  height: 500px;
  background: rgba(30, 58, 95, 0.4); /* Blue glow */
  bottom: -100px;
  left: -200px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: var(--text-inverse);
}

.page-header-modern {
  padding: 160px 0 100px;
  background-color: var(--color-primary-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================================
   Components: Footer
   ========================================= */
.footer-modern {
  background-color: #0a111a;
  color: var(--text-inverse-muted);
  padding-top: var(--space-16);
  position: relative;
  border-top: 4px solid var(--color-secondary);
}

.footer-brand { margin-bottom: var(--space-6); }

.footer-logo {
  height: 90px;
  margin-bottom: var(--space-4);
  filter: brightness(0) invert(1); /* Make logo white for dark bg if needed */
}

.footer-heading {
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.footer-links li { margin-bottom: var(--space-3); }

.footer-links a {
  display: inline-block;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary);
  transform: translateX(5px);
}

.social-links { display: flex; gap: var(--space-4); margin-top: var(--space-6); }

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  transition: all var(--transition-normal);
}

.social-icon:hover {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.875rem;
}

/* =========================================
   Animations Utilities
   ========================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 992px) {
  .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: var(--bg-surface);
      flex-direction: column;
      padding: var(--space-6);
      box-shadow: var(--shadow-lg);
      gap: var(--space-4);
      clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
      transition: clip-path var(--transition-normal);
  }
  
  .nav-links.active {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-link { color: var(--color-primary) !important; } /* Override light color on mobile */
  
  .mobile-menu-btn { display: block; }
  .btn-wrapper-desktop { display: none; }
}

@media (max-width: 768px) {
  .section-padding { padding-block: var(--space-16); }
  .hero-modern { padding-top: 120px; text-align: center; }
  .hero-content { margin-inline: auto; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; }
}
