/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-shadow: 
    -2px 0 var(--glitch-red),
    2px 0 var(--glitch-cyan);
  animation: rgb-split 4s infinite;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  position: relative;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
}

h5 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
}

h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes rgb-split {
  0%, 100% {
    text-shadow: 
      -2px 0 var(--glitch-red),
      2px 0 var(--glitch-cyan);
  }
  25% {
    text-shadow: 
      -3px -1px var(--glitch-red),
      3px 1px var(--glitch-cyan);
  }
  50% {
    text-shadow: 
      -1px 2px var(--glitch-red),
      1px -2px var(--glitch-cyan);
  }
  75% {
    text-shadow: 
      2px -2px var(--glitch-red),
      -2px 2px var(--glitch-cyan);
  }
}

p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.small-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Header Component */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 6px rgba(212, 40, 40, 0.1),
    0 1px 3px rgba(0, 255, 255, 0.05);
}

.site-header.scrolled {
  background: rgba(248, 249, 250, 0.98);
  box-shadow: 
    0 8px 32px rgba(212, 40, 40, 0.15),
    0 4px 16px rgba(0, 255, 255, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  min-height: 70px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  position: relative;
  filter: drop-shadow(-1px 0 var(--glitch-red)) drop-shadow(1px 0 var(--glitch-cyan));
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-navigation a {
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 
    -0.5px 0 transparent,
    0.5px 0 transparent;
}

.main-navigation a:hover {
  color: var(--primary);
  text-shadow: 
    -0.5px 0 var(--glitch-red),
    0.5px 0 var(--glitch-cyan);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--glitch-red), var(--accent), var(--glitch-cyan));
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

.header-cta-button {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 8px rgba(0, 53, 102, 0.2),
    inset -1px 0 var(--glitch-red),
    inset 1px 0 var(--glitch-cyan);
}

.header-cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 53, 102, 0.3),
    inset -2px 0 var(--glitch-red),
    inset 2px 0 var(--glitch-cyan);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--glitch-red);
  transform: translateX(-1px);
  mix-blend-mode: screen;
}

.mobile-menu-toggle span::after {
  background: var(--glitch-cyan);
  transform: translateX(1px);
}

@media (max-width: 768px) {
  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .main-navigation.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 16px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-cta-button {
    display: none;
  }
}

/* Footer Component */
.site-footer {
  background: var(--text-primary);
  color: white;
  padding: 48px 0 24px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--glitch-red), var(--accent), var(--glitch-cyan));
  animation: chromatic-line 3s infinite;
}

@keyframes chromatic-line {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-about h3 {
  color: white;
  margin-bottom: 16px;
  text-shadow: 
    -1px 0 var(--glitch-red),
    1px 0 var(--glitch-cyan);
}

.footer-about p {
  color: #ADB5BD;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ADB5BD;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  text-shadow: 
    -0.5px 0 var(--glitch-red),
    0.5px 0 var(--glitch-cyan);
}

.footer-contact-info {
  color: #ADB5BD;
}

.footer-contact-info p {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 24px;
  text-align: center;
  color: #ADB5BD;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal-links a {
  color: #ADB5BD;
  margin: 0 8px;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
}

/* Card Components */
.content-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(212, 40, 40, 0.1),
    inset -1px 0 rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glitch-red), var(--glitch-cyan), transparent);
  animation: scanning-line 4s infinite;
}

@keyframes scanning-line {
  0% { left: -100%; }
  100% { left: 100%; }
}

.content-card:hover {
  transform: perspective(1000px) rotateY(2deg);
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(212, 40, 40, 0.15),
    inset -2px 0 rgba(0, 255, 255, 0.2);
}

/* Button Components */
.primary-button {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-shadow: 
    -0.5px 0 var(--glitch-red),
    0.5px 0 var(--glitch-cyan);
}

.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 20px rgba(0, 53, 102, 0.3),
    inset -1px 0 var(--glitch-red),
    inset 1px 0 var(--glitch-cyan);
}

.secondary-button {
  background: transparent;
  color: var(--primary);
  padding: 14px 28px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.secondary-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--glitch-red), var(--glitch-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.secondary-button:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.secondary-button:hover::before {
  opacity: 1;
}

/* Form Components */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--bg-card);
  position: relative;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 
    0 0 0 3px rgba(0, 53, 102, 0.1),
    inset -1px 0 var(--glitch-red),
    inset 1px 0 var(--glitch-cyan);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.checkbox-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(52, 58, 64, 0.98);
  backdrop-filter: blur(12px);
  color: white;
  padding: 16px;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 2px solid var(--accent);
  box-shadow: 
    0 -4px 8px rgba(212, 40, 40, 0.1),
    inset -1px 0 var(--glitch-red),
    inset 1px 0 var(--glitch-cyan);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}

.cookie-accept {
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-accept:hover {
  background: var(--accent-hover);
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }
}