/* Global Styles */
* {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Color Variables */
:root {
  --yellow-primary: #F4C430;
  --yellow-hover: #e6b820;
  --yellow-dark: #d4a910;
  --black-primary: #1a1a1a;
  --black-secondary: #2d2d2d;
  --gray-light: #f8f9fa;
}

/* Carousel Navigation */
.carousel-nav {
  background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-hover) 100%);
  height: 70px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
  z-index: 1000;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow-dark) transparent;
}

.carousel-nav::-webkit-scrollbar {
  height: 8px;
}

.carousel-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-nav::-webkit-scrollbar-thumb {
  background: var(--yellow-dark);
  border-radius: 10px;
}

.carousel-nav::-webkit-scrollbar-thumb:hover {
  background: var(--black-primary);
}

.carousel-nav-container {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  gap: 0.5rem;
}

.carousel-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--black-primary);
  color: var(--yellow-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 2px solid var(--yellow-primary);
}

.carousel-nav-item:hover {
  background: var(--yellow-primary);
  color: var(--black-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(244, 196, 48, 0.5);
}

.carousel-nav-item.highlight {
  background: var(--black-primary);
  color: var(--yellow-primary);
  animation: pulse 2s infinite;
  border: 3px solid var(--yellow-primary);
  box-shadow: 0 0 20px rgba(244, 196, 48, 0.5);
}

.carousel-nav-item.highlight:hover {
  background: var(--yellow-primary);
  color: var(--black-primary);
}

.carousel-nav-item i {
  font-size: 1.2rem;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-secondary) 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.95) 100%);
}

/* Lightning Animation */
.lightning-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.lightning {
  position: absolute;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent 0%,
    var(--yellow-primary) 10%,
    #fff 20%,
    var(--yellow-primary) 30%,
    transparent 40%
  );
  opacity: 0;
  animation: strike 4s ease-in-out infinite;
  box-shadow: 0 0 20px var(--yellow-primary), 0 0 40px var(--yellow-primary);
}

.lightning:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
  filter: blur(2px);
}

.lightning:nth-child(2) {
  left: 50%;
  animation-delay: 1.5s;
  transform: scaleX(2);
  filter: blur(1px);
}

.lightning:nth-child(3) {
  left: 80%;
  animation-delay: 3s;
  filter: blur(2px);
}

@keyframes strike {
  0%, 10%, 12%, 14%, 100% {
    opacity: 0;
    transform: scaleY(0) translateY(-100%);
  }
  11% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
  13% {
    opacity: 0.8;
    transform: scaleY(0.95) translateY(0);
  }
}

/* Mega Title for BORGERLISTEN */
.mega-title {
  font-size: 7vw;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin: 0 0 2rem 0;
  line-height: 1.2;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  animation: titleAppear 1.5s ease-out;
  color: var(--yellow-primary);
  text-shadow: 
    0 0 10px rgba(244, 196, 48, 0.4),
    0 0 20px rgba(244, 196, 48, 0.3),
    0 5px 30px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  font-family: 'Arial Black', 'Impact', sans-serif;
}

@keyframes titleAppear {
  0% {
    opacity: 0;
    transform: scale(0.5) rotateX(90deg);
  }
  50% {
    transform: scale(1.05) rotateX(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
  }
}

.glow-text {
  text-shadow: 
    0 0 10px rgba(244, 196, 48, 0.3),
    0 0 20px rgba(244, 196, 48, 0.2);
  animation: textGlow 2s ease-in-out infinite alternate;
  font-weight: 600;
}

@keyframes textGlow {
  0% {
    text-shadow: 
      0 0 10px rgba(244, 196, 48, 0.3),
      0 0 20px rgba(244, 196, 48, 0.2);
  }
  100% {
    text-shadow: 
      0 0 15px rgba(244, 196, 48, 0.4),
      0 0 25px rgba(244, 196, 48, 0.3);
  }
}

/* Floating Icons Background */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.icon-float {
  position: absolute;
  font-size: 3.5rem;
  color: var(--yellow-primary);
  opacity: 0.12;
  animation: float 20s infinite ease-in-out;
  text-shadow: 
    0 0 15px rgba(244, 196, 48, 0.3);
}

.icon-float:nth-child(even) {
  color: rgba(244, 196, 48, 0.5);
  opacity: 0.1;
}

/* Forskellige positioner og animationer for hver ikon */
.icon-1 { top: 10%; left: 5%; animation-duration: 18s; animation-delay: 0s; font-size: 5rem; }
.icon-2 { top: 20%; left: 15%; animation-duration: 22s; animation-delay: 1s; font-size: 4.5rem; }
.icon-3 { top: 5%; left: 80%; animation-duration: 20s; animation-delay: 2s; font-size: 6rem; }
.icon-4 { top: 70%; left: 10%; animation-duration: 25s; animation-delay: 0.5s; font-size: 5.5rem; }
.icon-5 { top: 50%; left: 85%; animation-duration: 19s; animation-delay: 1.5s; font-size: 4rem; }
.icon-6 { top: 30%; left: 70%; animation-duration: 23s; animation-delay: 3s; font-size: 5rem; }
.icon-7 { top: 80%; left: 75%; animation-duration: 21s; animation-delay: 2.5s; font-size: 6.5rem; }
.icon-8 { top: 15%; left: 40%; animation-duration: 24s; animation-delay: 1s; font-size: 4.5rem; }
.icon-9 { top: 60%; left: 25%; animation-duration: 20s; animation-delay: 3.5s; font-size: 5rem; }
.icon-10 { top: 40%; left: 5%; animation-duration: 22s; animation-delay: 0.8s; font-size: 5.5rem; }
.icon-11 { top: 25%; left: 90%; animation-duration: 26s; animation-delay: 2s; font-size: 4rem; }
.icon-12 { top: 85%; left: 50%; animation-duration: 19s; animation-delay: 1.2s; font-size: 6rem; }
.icon-13 { top: 55%; left: 60%; animation-duration: 23s; animation-delay: 3s; font-size: 4.5rem; }
.icon-14 { top: 5%; left: 50%; animation-duration: 21s; animation-delay: 0.3s; font-size: 5.5rem; }
.icon-15 { top: 75%; left: 35%; animation-duration: 25s; animation-delay: 2.8s; font-size: 5rem; }
.icon-16 { top: 45%; left: 92%; animation-duration: 20s; animation-delay: 1.8s; font-size: 6.5rem; }
.icon-17 { top: 10%; left: 25%; animation-duration: 24s; animation-delay: 3.2s; font-size: 4.5rem; }
.icon-18 { top: 65%; left: 70%; animation-duration: 22s; animation-delay: 0.6s; font-size: 5rem; }
.icon-19 { top: 35%; left: 45%; animation-duration: 19s; animation-delay: 2.2s; font-size: 5.5rem; }
.icon-20 { top: 90%; left: 15%; animation-duration: 23s; animation-delay: 1.5s; font-size: 4rem; }

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 0.15;
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
    opacity: 0.25;
  }
  50% {
    transform: translateY(-60px) translateX(-20px) rotate(180deg) scale(0.9);
    opacity: 0.2;
  }
  75% {
    transform: translateY(-30px) translateX(30px) rotate(270deg) scale(1.15);
    opacity: 0.3;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.text-yellow {
  color: var(--yellow-primary) !important;
  text-shadow: 0 0 20px rgba(244, 196, 48, 0.5);
}

.text-yellow-dark {
  color: var(--yellow-hover) !important;
}

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

/* Buttons */
.btn-yellow {
  background-color: var(--yellow-primary);
  color: var(--black-primary);
  border: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-yellow:hover {
  background-color: var(--yellow-hover);
  color: var(--black-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(244, 196, 48, 0.3);
}

.pulse-animation {
  animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 196, 48, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(244, 196, 48, 0);
  }
}

/* Feature Cards */
.feature-card {
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-card.yellow-border {
  border: 2px solid var(--yellow-primary);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(244, 196, 48, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--black-primary);
  margin-bottom: 1rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-icon.yellow-bg {
  background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-hover) 100%);
  box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
}

.feature-card:hover .feature-icon.yellow-bg {
  transform: rotate(360deg) scale(1.1);
}

.feature-icon i {
  color: var(--black-primary);
}

.feature-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--black-primary);
}

.feature-card .card-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* Policy Cards */
.policy-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  background: white;
}

.policy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(244, 196, 48, 0.25);
  border-color: var(--yellow-primary);
}

.policy-card img {
  height: 220px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.policy-card:hover img {
  transform: scale(1.05);
}

.policy-card .card-body {
  padding: 1.75rem;
  position: relative;
}

.policy-card .card-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow-primary);
  transition: width 0.3s ease;
}

.policy-card:hover .card-body::before {
  width: 100%;
}

.policy-card .card-title {
  color: var(--black-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.policy-card .card-text {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.policy-card .badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-hover) 100%);
  color: var(--black-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.benefit-box {
  background: rgba(255,255,255,0.95);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border: 2px solid var(--black-primary);
  position: relative;
  z-index: 1;
}

.benefit-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background: var(--black-primary);
}

.benefit-box:hover i,
.benefit-box:hover p {
  color: var(--yellow-primary);
}

.benefit-box i {
  color: #28a745;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.benefit-box p {
  font-weight: 600;
  color: var(--black-primary);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

/* Footer */
.footer-section {
  background-color: var(--black-primary);
  color: #ffffff;
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow-primary) 0%, var(--yellow-hover) 50%, var(--yellow-primary) 100%);
}

.footer-section h5 {
  color: var(--yellow-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--yellow-primary);
}

.social-links a {
  color: var(--yellow-primary);
  transition: all 0.3s ease;
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: rgba(244, 196, 48, 0.1);
  border-radius: 50%;
}

.social-links a:hover {
  color: var(--black-primary);
  background: var(--yellow-primary);
  transform: translateY(-5px) rotate(360deg);
}

.footer-section hr {
  border-color: rgba(244, 196, 48, 0.3);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.img-fluid {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 8px;
}

.img-fluid:hover {
  transform: scale(1.02);
  border-color: var(--yellow-primary);
  box-shadow: 0 8px 20px rgba(244, 196, 48, 0.25);
}

/* Section Headings */
h2 {
  color: var(--black-primary);
  position: relative;
  display: inline-block;
}

h2.display-4 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2.display-4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--yellow-primary);
  border-radius: 2px;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: #555;
}

section {
  padding: 4rem 0;
}

.py-5 {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

/* Smooth Scrolling Offset */
section {
  scroll-margin-top: 70px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
  
  .mega-title {
    font-size: 12vw;
    letter-spacing: 0.1em;
  }
  
  .icon-float {
    font-size: 2.5rem !important;
  }
  
  .display-1 {
    font-size: 3rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .carousel-nav {
    height: 60px;
  }
  
  .carousel-nav-container {
    padding: 0 1rem;
  }
  
  .carousel-nav-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}