@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary-color: #0F4C81;
  --primary-hover: #0b3a63;
  --primary-light: #f0f7fc;
  --accent-color: #0CA7E2;
  --accent-hover: #0A86B5;
  --accent-light: #e8f8fd;
  
  /* Neutral Palette */
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-slate: #f1f5f9;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  
  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(12, 167, 226, 0.35);
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Max width */
  --max-width: 1280px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

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

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

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

ul, ol {
  list-style: none;
}

/* Utility Layouts */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Section Header Utilities */
.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  color: var(--accent-color);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0 auto;
  font-size: 1.1rem;
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--bg-white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 167, 226, 0.25);
}

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

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

.btn-secondary {
  background-color: var(--bg-slate);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-orange {
  background-color: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid rgba(12, 167, 226, 0.3);
}

.badge-blue {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid rgba(15, 76, 129, 0.3);
}

/* Animations */
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

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

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-medium);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 1rem;
  }
  .grid-cols-4, .grid-cols-3, .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 420px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 {
    gap: 0.6rem;
  }
}
