@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- DESIGN TOKENS --- */
:root {
  --bg-primary: #fffeea;
  --bg-secondary: #f4f2c8;
  --bg-tertiary: #eaeaae;
  --border-color: rgba(24, 30, 116, 0.1);
  --border-hover: rgba(197, 21, 39, 0.4);

  --text-primary: #111111;
  --text-secondary: #4a4a4a;
  --text-muted: #737373;

  --accent-indigo: #c51527;
  --accent-violet: #181e74;
  --accent-cyan: #e82c40;
  --accent-gradient: linear-gradient(135deg, #242c9c 0%, #181e74 100%);
  --accent-gradient-cyan: linear-gradient(135deg, #242c9c 0%, #181e74 100%);

  --font-display: 'Bricolage Grotesque', var(--font-body), sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* --- PREMIUM GRID BACKGROUND --- */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image:
    radial-gradient(circle at 50% -20%, rgba(197, 21, 39, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(24, 30, 116, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(24, 30, 116, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 30, 116, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  background-attachment: fixed;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-indigo);
  /* Force headings to Red */
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Gradient text utility */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gradient-cyan {
  background: var(--accent-gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Blur background content when mobile menu is active */
main,
#footer-placeholder,
.grid-bg {
  transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.nav-active main,
body.nav-active #footer-placeholder,
body.nav-active .grid-bg {
  filter: blur(8px);
  pointer-events: none;
}

.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* --- NAVIGATION HEADER STYLES --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: var(--accent-violet);
  /* Blue header */
  transition: all 0.3s ease;
  color: #ffffff;
  /* Force text to white inside header */
}

header.scrolled {
  height: 70px;
  background-color: rgba(24, 30, 116, 0.95);
}

header a,
header .logo {
  color: #ffffff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: #ffffff;
}

/* Header Status Badge */
.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4ade80;
  line-height: 1;
  transition: all 0.3s ease;
  margin-left: 16px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .header-status-badge .status-text-sub {
    display: none;
  }

  .header-status-badge {
    margin-left: 10px;
  }
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  /* Light text for blue header */
}

.mobile-only-socials {
  display: none;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a.active {
  color: var(--bg-primary);
}


.nav-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bg-primary);
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

@media (max-width: 868px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 280px;
    height: 100vh;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    color: var(--accent-violet);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent-indigo);
  }
  
  .mobile-only-socials {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
  }

  .mobile-only-socials .social-icon:hover {
    background: transparent;
    color: var(--accent-indigo);
    border-color: var(--border-color);
  }

  /* Hamburger animation */
  .nav-toggle.active span {
    background: var(--accent-cyan);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 8px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(24, 30, 116, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 30, 116, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: blue;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- CHIP BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(24, 30, 116, 0.1);
  border: 1px solid rgba(24, 30, 116, 0.2);
  color: var(--accent-violet);
}

.badge-violet {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

/* --- PREMIUM CARDS --- */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover::before {
  opacity: 1;
}

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

/* --- FORM CONTROLS --- */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-indigo);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

/* --- FOOTER STYLES --- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--accent-indigo);
  color: var(--bg-primary);
}

.footer-cta {
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background-color: white;
}

.footer-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.footer-main {
  padding: 60px 0 30px 0;
}

footer .logo,
footer .logo span {
  color: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-info p {
  margin: 16px 0 24px 0;
  max-width: 320px;
  color: var(--bg-primary);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--bg-primary);
  font-size: 1.1rem;
}

.social-icon:hover {
  background: var(--bg-primary);
  color: var(--accent-indigo);
  border-color: var(--bg-primary);
  transform: translateY(-2px);
}

.footer-links-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--bg-primary);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  color: var(--bg-primary);
}

.footer-links-col a:hover {
  color: var(--bg-primary);
  opacity: 0.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bg-primary);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- ANIMATIONS & UTILITIES --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #8a0d1a; /* Dark red */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5c0710; /* Darker red on hover */
}