/* ==========================================================================
   Jurist Migration & Education - Main Stylesheet
   Motto: Where Expertise Meets Your Future
   Aesthetic: Sophisticated Midnight Blue (#0B1F3A), Deep Slate (#163660) & Warm Gold (#C8A04D)
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary: #0B1F3A;
  --color-primary-light: #163660;
  --color-primary-dark: #061224;
  --color-primary-rgb: 11, 31, 58;

  /* Signature Brand Red Palette (Theme Primary Accent) */
  --color-gold: #BC0109;
  --color-gold-hover: #9E0107;
  --color-gold-light: #EF4444;
  --color-gold-subtle: #FEF2F2;
  --color-gold-rgb: 188, 1, 9;

  --color-red: #BC0109;
  --color-red-hover: #9E0107;
  --color-red-light: #EF4444;
  --color-red-subtle: #FEF2F2;
  --color-red-rgb: 188, 1, 9;

  --color-crimson: #BC0109;
  --color-crimson-hover: #9E0107;

  --color-text-main: #0F172A;
  --color-text-muted: #475569;
  --color-text-light: #94A3B8;
  --color-white: #FFFFFF;

  --color-bg-page: #F8FAFC;
  --color-bg-alt: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-gold: rgba(188, 1, 9, 0.22);
  --color-border-red: rgba(188, 1, 9, 0.22);

  /* Typography: Hero font (Outfit) used everywhere across entire website */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 40px -8px rgba(11, 31, 58, 0.12);
  --shadow-xl: 0 25px 60px -12px rgba(11, 31, 58, 0.18);
  --shadow-gold: 0 8px 25px rgba(188, 1, 9, 0.28);
  --shadow-red: 0 8px 25px rgba(188, 1, 9, 0.28);

  /* Layout */
  --container-max: 1320px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  background-color: var(--color-gold-subtle);
  border: 1px solid rgba(200, 160, 77, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-tag.dark {
  background-color: rgba(200, 160, 77, 0.12);
  border-color: rgba(200, 160, 77, 0.35);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title.light {
  color: var(--color-white);
}

.section-title span.highlight {
  color: var(--color-gold);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.65;
}

.section-desc.light {
  color: #CBD5E1;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Section Spacing */
.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-darker {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* Primary Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
  text-align: center;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--color-red, #BC0109);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(188, 1, 9, 0.35);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--color-red-hover, #9E0107);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(188, 1, 9, 0.45);
}

.btn-gold:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-weight: 700;
}

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

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

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

/* Subtle Animated Background Grids */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

.bg-grid-light {
  background-image: 
    linear-gradient(to right, rgba(11, 31, 58, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 31, 58, 0.03) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

/* Ambient glow blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-gold {
  background: radial-gradient(circle, rgba(188, 1, 9, 0.15) 0%, transparent 70%);
}

.glow-navy {
  background: radial-gradient(circle, rgba(22, 54, 96, 0.4) 0%, transparent 70%);
}

/* Card hover dynamics */
.card-hover {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-5px);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}
