* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  color: #E0E0E0;
  overflow-x: hidden;
  position: relative;
}

.stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 120%;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 0;
}

.star {
  --star-color: #1E88E5;
  --star-tail-length: 6em;
  --star-tail-height: 2px;
  --star-width: calc(var(--star-tail-length) / 6);

  position: absolute;
  left: 0;
  top: var(--top-offset);
  width: var(--star-tail-length);
  height: var(--star-tail-height);

  color: var(--star-color);
  background: linear-gradient(45deg, currentColor, transparent);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px currentColor);

  transform: translate3d(104em, 0, 0);

  animation:
    fall var(--fall-duration) var(--fall-delay) linear infinite,
    tail-fade var(--fall-duration) var(--fall-delay) ease-out infinite;
}

/* Mobile optimization */
@media (max-width: 750px) {
  .star {
    animation: fall var(--fall-duration) var(--fall-delay) linear infinite;
  }
}

/* Shine */
.star::before,
.star::after {
  content: '';
  position: absolute;
  top: 0;
  left: calc(var(--star-width) / -2);
  width: var(--star-width);
  height: 100%;
  background: linear-gradient(45deg, transparent, currentColor, transparent);
  border-radius: inherit;
  animation: blink 2s linear infinite;
}

.star::before { transform: rotate(45deg); }
.star::after  { transform: rotate(-45deg); }

/* Animations */
@keyframes fall {
  to { transform: translate3d(-30em, 0, 0); }
}

@keyframes tail-fade {
  0%, 50% {
    width: var(--star-tail-length);
    opacity: 1;
  }
  70%, 80% {
    width: 0;
    opacity: 0.4;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

@keyframes blink {
  50% { opacity: 0.6; }
}

/* Main Content Sections with Parallax Effect */
.main_content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 6rem 2rem 2rem;
  transform-style: preserve-3d;
  perspective: 1px;
  overflow-x: hidden;
  overflow-y: auto;
}

.main_content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.3);
  z-index: -1;
  pointer-events: none;
}

.main_content > * {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease-out;
  will-change: transform;
  backface-visibility: hidden;
}

/* Add subtle depth to sections */
.main_content > *:nth-child(odd) {
  transform: translateZ(0) translateY(0);
  z-index: 2;
}

.main_content > *:nth-child(even) {
  transform: translateZ(-0.5px) scale(1.01) translateY(30px);
  z-index: 1;
}

/* Add a subtle divider between sections */
.main_content > *:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.3), transparent);
  transform: translateZ(1px);
}

/* Parallax effect on scroll */
@media (min-width: 768px) {
  .main_content > *:nth-child(odd) {
    transform: translateZ(0) translateY(calc(var(--scroll-y, 0) * 0.2));
  }
  
  .main_content > *:nth-child(even) {
    transform: translateZ(-0.5px) scale(1.01) translateY(calc(30px + var(--scroll-y, 0) * 0.1));
  }
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  color: #E0E0E0;
  padding: 2rem;
  text-align: center;
  border-top: 2px solid rgba(30, 136, 229, 0.4);
}

.footer a {
  color: #B0B0B0;
}

.footer-links {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  color: #B0B0B0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #1E88E5;
}

.footer-divider {
  color: rgba(30, 136, 229, 0.4);
}

.footer .copyright {
  font-size: 0.9rem;
  color: #B0B0B0;
  margin: 0;
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 30px);
  width: min(540px, calc(100% - 2rem));
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(30, 136, 229, 0.4);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.6);
  color: #E0E0E0;
  padding: 1.5rem 1.75rem;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
}

.cookie-consent.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.cookie-consent__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #B0B0B0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cookie-consent__close:hover {
  color: #1E88E5;
}

.cookie-consent__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-consent__text h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1E88E5, #B93B8F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cookie-consent__text p {
  color: #B0B0B0;
  font-size: 0.95rem;
}

.cookie-consent__text a {
  color: #1E88E5;
  font-weight: 600;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.65rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.cookie-btn--primary {
  background: linear-gradient(135deg, #1E88E5, #B93B8F);
  color: #fff;
  box-shadow: 0 10px 20px rgba(30, 136, 229, 0.35);
}

.cookie-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 26px rgba(30, 136, 229, 0.45);
}

.cookie-btn--link {
  background: transparent;
  color: #B0B0B0;
  padding: 0;
}

.cookie-btn--link:hover {
  color: #1E88E5;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-consent {
    bottom: 16px;
    padding: 1.25rem 1.5rem;
  }

  .cookie-consent__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1E88E5, #B93B8F);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.6);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1E88E5, #B93B8F);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1565C0, #9C27B0);
}

/* Selection Color */
::selection {
  background: rgba(30, 136, 229, 0.3);
  color: #FFFFFF;
}

::-moz-selection {
  background: rgba(30, 136, 229, 0.3);
  color: #FFFFFF;
}
