/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* CSS Variables */
:root {
  /* Colors */
  --color-primary: #1152d4;
  --color-primary-hover: #0d3a94;
  --color-secondary: #D49311;
  --color-accent-gold: #d4af37;

  --color-bg-light: #ffffff;
  --color-bg-surface: #f6f6f8;
  --color-bg-dark: #101622;
  --color-bg-dark-surface: #1a2333;

  --color-text-main: #111318;
  --color-text-muted: #616f89;
  --color-text-light: #ffffff;

  --color-border: #e2e8f0;

  /* Typography */
  --font-family: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

ul {
  list-style: none;
}

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

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-main);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

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

/* Buttons & Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: var(--font-family);
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 82, 212, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-bg-surface);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(17, 82, 212, 0.1);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Header/Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

main {
  position: relative;
  z-index: 1;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text-main);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 0.5rem;
}

.logo-icon .material-symbols-outlined {
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

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

.nav-links a.active {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.25rem;
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-main);
  cursor: pointer;
}

.mobile-menu-btn .material-symbols-outlined {
  font-size: 1.5rem;
}

.mobile-nav {
  display: none;
}

/* Footer Element */
footer {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--color-text-muted);
}

.social-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Common Section Styles */
.section {
  padding: 5rem 0;
}

.section-surface {
  background-color: var(--color-bg-surface);
}

.grid {
  display: grid;
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--color-bg-surface);
    color: var(--color-text-main);
    font-weight: 500;
  }
}

/* Card Styles */
.card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(17, 82, 212, 0.3);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(17, 82, 212, 0.1);
  color: var(--color-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all var(--transition-normal);
}

.card:hover .card-icon {
  background-color: var(--color-primary);
  color: white;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.card p {
  font-size: 0.875rem;
  margin: 0;
}

/* Utilities */
.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent-gold);
}

.font-bold {
  font-weight: 700;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

/* Image Container Styles */
.image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-bg-light: #0f1520;
  --color-bg-surface: #1a2436;
  --color-bg-dark: #0a0f1a;
  --color-bg-dark-surface: #1a2333;
  --color-text-main: #e2e8f0;
  --color-text-muted: #8899b0;
  --color-text-light: #ffffff;
  --color-border: rgba(255, 255, 255, 0.08);
}

/* Smooth theme transitions */
body,
header,
footer,
.card,
.section-surface,
.mobile-nav {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark theme: grid overlay */
[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Dark theme: header */
[data-theme="dark"] header {
  background-color: rgba(15, 21, 32, 0.85);
}

/* Dark theme: mobile nav */
[data-theme="dark"] .mobile-nav {
  background: rgba(15, 21, 32, 0.95) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .mobile-nav a {
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--color-text-main) !important;
}

/* Dark theme: card hover */
[data-theme="dark"] .card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Dark theme: image wrapper */
[data-theme="dark"] .image-wrapper {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: rgba(17, 82, 212, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.theme-toggle .material-symbols-outlined {
  font-size: 1.25rem;
}