/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* British flag inspired color palette */
  --british-navy: #012169;
  --british-red: #c8102e;
  --british-white: #ffffff;
  --navy-light: #1e3a8a;
  --navy-lighter: #3b82f6;
  --red-light: #dc2626;
  --red-lighter: #ef4444;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --background: #fefefe;
  --background-subtle: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-subtle);
  overflow-x: hidden;
}

/* Navigation */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(1, 33, 105, 0.1);
  z-index: 1000;
  padding: 0.75rem 1rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 1rem;
}

.nav-brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--british-navy);
}

.nav-indicators {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Side navigation sections */
.nav-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  user-select: none;
  animation: pulseHint 3s infinite;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.nav-section:hover {
  opacity: 1;
  color: var(--british-navy);
  transform: translateY(-50%) scale(1.05);
  animation: none;
}

.nav-section:focus {
  outline: 2px solid var(--british-navy);
  outline-offset: 2px;
}

.nav-section-left {
  left: 1rem;
}

.nav-section-right {
  right: 1rem;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.section-label:hover {
  background: rgba(1, 33, 105, 0.1);
}

.nav-hint-arrow {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

/* Hide sections when cycling not available */
.nav-section.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes pulseHint {
  0%,
  70%,
  100% {
    opacity: 0.7;
    transform: translateY(-50%);
  }
  35% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  padding: 0;
  margin: 0;
}

.indicator:hover {
  background: var(--british-navy);
  opacity: 0.7;
  transform: scale(1.2);
}

.indicator:focus {
  outline: 2px solid var(--british-navy);
  outline-offset: 2px;
}

.indicator.active {
  background: var(--british-red);
  opacity: 1;
  transform: scale(1.2);
}

/* Hero Section (static) */
.hero-section {
  margin-top: 60px;
  position: relative;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Container (static) */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--british-white);
  max-width: 600px;
  padding: 2rem;
  background: rgba(1, 33, 105, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Content Grid */
.content-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Sections */
section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--british-navy);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #374151;
}

p {
  margin-bottom: 1rem;
  color: #6b7280;
}

/* Blog Section */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-item {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.blog-item:hover {
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.blog-meta {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

/* Showcase Section */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.showcase-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.showcase-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.showcase-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.showcase-item h3,
.showcase-item p {
  padding: 0 1rem;
}

.showcase-item h3 {
  padding-top: 1rem;
  margin-bottom: 0.5rem;
}

.showcase-item p {
  padding-bottom: 1rem;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--british-navy);
  color: var(--british-white);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.footer-contact h3 {
  color: var(--british-white);
  margin-bottom: 1rem;
}

.footer-contact p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-tagline p:first-child {
  font-style: italic;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.footer-tagline p:last-child {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Slide-specific color variations */
.slide[data-slide='0'] h2 {
  color: var(--british-navy);
}

.slide[data-slide='1'] h2 {
  color: var(--british-red);
}

.slide[data-slide='2'] h2 {
  color: var(--navy-light);
}

/* Mobile styles */
@media (max-width: 767px) {
  .nav-section {
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .nav-section-left {
    left: 0.5rem;
  }

  .nav-section-right {
    right: 0.5rem;
  }

  .section-label {
    font-size: 0.75rem;
    padding: 0.125rem 0.25rem;
  }

  .nav-hint-arrow {
    font-size: 1.25rem;
  }

  .nav-container {
    padding: 0 0.5rem;
  }
}

/* Tablet styles */
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .nav-bar {
    padding: 1rem 2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  section {
    padding: 2.5rem;
  }
}

/* Touch gestures and transitions */
@media (hover: none) and (pointer: coarse) {
  .slider-container {
    touch-action: pan-x;
  }

  section:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .showcase-item:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Animation utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}
