@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Sora:wght@100..800&display=swap');

:root {
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  
  --background: #f8fafc;
  --foreground: #1e293b;
  --card: #ffffff;
  --card-foreground: #1e293b;
  --popover: #ffffff;
  --popover-foreground: #1e293b;
  
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-foreground: #ffffff;
  
  --secondary: #eef2ff;
  --secondary-foreground: #1e3a8a;
  
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  
  --accent: #e0f2fe;
  --accent-foreground: #0369a1;
  
  --brand: #1d4ed8;
  --brand-foreground: #ffffff;
  --brand-soft: #dbeafe;
  
  --leaf: #16a34a;
  --leaf-foreground: #ffffff;
  
  --sun: #d97706;
  --sun-foreground: #ffffff;
  
  --border: #e2e8f0;
  --input: #cbd5e1;
  --ring: #3b82f6;
  
  --shadow-card: 0 4px 20px -8px rgba(29, 78, 216, 0.15);
  --shadow-soft: 0 10px 30px -12px rgba(29, 78, 216, 0.25);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.25;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Utilities & Layout */
.section-shell {
  margin-inline: auto;
  width: 100%;
  max-width: 76rem;
  padding-inline: 1.25rem;
}

.gradient-brand {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

.flex-1 { flex: 1 1 0%; }
.size-full { width: 100%; height: 100%; }

/* Typography Helpers */
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.03);
}

.brand-logo img {
  height: 3rem;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
}

.nav-link {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(30, 41, 59, 0.8);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-link.active {
  font-weight: 600;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.5rem;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}

@media (max-width: 1023px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }
}

.mobile-nav-toggle:hover {
  background-color: var(--secondary);
}

.mobile-nav-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--card);
  animation: fadeInDown 0.3s ease-out forwards;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-drawer .section-shell {
  display: flex;
  flex-direction: column;
  padding-block: 0.5rem;
}

.mobile-nav-drawer .nav-link {
  padding-block: 0.625rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  color: var(--primary-foreground);
  overflow: hidden;
  padding-block: 3.5rem;
}

@media (min-width: 640px) {
  .page-header {
    padding-block: 5rem;
  }
}

.page-header h1 {
  color: var(--primary-foreground);
  font-size: 2rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .page-header h1 {
    font-size: 2.25rem;
  }
}

.page-header .breadcrumb {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.page-header .intro-text {
  margin-top: 1.25rem;
  max-width: 48rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Cards & Hover Effects */
.card-box {
  background-color: var(--card);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hover-zoom img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-zoom:hover img {
  transform: scale(1.06);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--primary-foreground);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  background-color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  transform: scale(1.05);
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Animations */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marquee 45s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Section Styling */
.section-padding {
  padding-block: 4rem;
}

.bg-muted-alt {
  background-color: rgba(238, 242, 255, 0.5);
}

/* Grids */
.grid-cols-1 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; }
.grid-cols-2 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; }
.grid-cols-4 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }

@media (min-width: 640px) {
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Custom Component Layouts */
.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--primary-foreground);
  min-height: 28rem;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(29, 78, 216, 0.85);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  padding-block: 5rem;
}

.hero-badge {
  display: inline-block;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.pillars-overlap {
  position: relative;
  margin-top: -2.5rem;
  z-index: 10;
}

.pillar-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background-color: var(--brand-soft);
  color: var(--primary);
  transition: all 0.3s ease;
}

.card-box:hover .pillar-icon {
  transform: scale(1.1);
  background-color: var(--primary);
  color: #ffffff;
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.custom-table {
  width: 100%;
  min-width: 50rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.custom-table th {
  background-color: rgba(238, 242, 255, 0.7);
  color: var(--secondary-foreground);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.custom-table td {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.custom-table tr:hover {
  background-color: rgba(238, 242, 255, 0.4);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  }
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  transform: translateX(4px);
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  list-style: none;
}

.social-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  background-color: rgba(255, 255, 255, 0.25);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-input, .form-textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
