:root {
  /* Ukraine Colors - Updated from Image */
  --color-primary: #0033A0;
  /* Deeper Blue */
  --color-secondary: #FFDD00;

  /* Neutral Colors */
  --color-text: #1F2937;
  --color-text-light: #4B5563;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F3F4F6;
  --color-border: #E5E7EB;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Oswald', sans-serif;
  /* New Display Font */

  /* Spacing */
  --container-width: 1200px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.btn {
  font-family: var(--font-display);
  text-transform: uppercase;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  /* Pill shape */
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: #004494;
  /* Darker blue */
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: #e6c700;
  transform: translateY(-1px);
}

/* Mobile First & Responsive Styles */

/* Ensure no horizontal scroll */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

.section {
  padding: var(--spacing-xl) 0;
}

/* Nav Styles */
body {
  padding-top: 80px;
  /* Height of fixed header + spacing */
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-bg-alt);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  /* Increased by ~15% from 70px to accommodate larger logo */
}

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

/* Hero Styles */
header.section {
  background: linear-gradient(180deg, #FFF9C4 0%, #FFFFFF 100%);
  padding-top: 4rem;
  padding-bottom: 0;
  overflow: hidden;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 1rem;
  color: #1F2937;
  word-wrap: break-word;
  /* Prevent overflow */
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #4B5563;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Headings */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

/* Mobile Media Query */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
  }

  /* Nav Stack on Mobile */
  .nav-container {
    height: auto;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Hero Adjustments */
  .hero-title {
    font-size: 2rem;
    /* Smaller font for mobile */
    padding: 0 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  /* General Typography */
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* Buttons */
  .btn {
    width: 100%;
    /* Full width buttons on mobile */
    text-align: center;
    max-width: 300px;
  }
}

/* Custom Vote Details Styles */
.vote-details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vote-details-list li {
  position: relative;
  padding-left: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.4;
}

.vote-details-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  position: relative;
  transform: translateY(20px);
  animation: slideUp 0.3s forwards;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  /* Constrain height */
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.5);
  /* Improved visibility */
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  /* Modern touch */
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.8);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  overflow-y: auto;
  /* Internal scrolling */
  overscroll-behavior: contain;
}

.modal-image-wrapper {
  background: #f3f4f6;
  min-height: 250px;
}

.modal-info {
  padding: 2.5rem;
}

#modal-name {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.modal-role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.modal-bio {
  color: var(--color-text-light);
  line-height: 1.6;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

/* Mobile responsive modal */
@media (max-width: 640px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image-wrapper {
    height: 200px;
    min-height: auto;
  }

  .modal-info {
    padding: 1.5rem;
  }

  #modal-name {
    font-size: 1.5rem;
  }
}

/* Manifest Grid Layout */
.manifest-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile: 1 column (1x4) */
  gap: 2rem;
}

@media (min-width: 768px) {
  .manifest-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Desktop: 2 columns (2x2) */
  }
}