/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a0a1a 100%);
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(138, 43, 226, 0.5);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #e0e0e0;
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.2));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #8a2be2, #6a1b9a);
  color: white;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9d4edd, #7b2cbf);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

.btn-secondary {
  background: transparent;
  color: #8a2be2;
  border: 2px solid #8a2be2;
}

.btn-secondary:hover {
  background: #8a2be2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

/* Registration Button */
.btn-register {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #8a2be2, #6a1b9a);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
  display: inline-block;
  white-space: nowrap;
}

.btn-register:hover {
  background: linear-gradient(135deg, #9d4edd, #7b2cbf);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

/* Main Content */
.main {
  padding: 2rem 0;
}

/* Banner Styles */
.banner-section {
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.banner-img:hover {
  transform: scale(1.02);
}

/* Banner Carousel Styles */
.banner-carousel {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
  background: #0a0a0a;
}

.banner-carousel-link {
  display: block;
  position: relative;
  width: 100%;
}

.banner-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.banner-carousel-slide:first-child {
  position: relative;
  opacity: 1;
  z-index: 2;
}

.banner-carousel-slide.active {
  opacity: 1;
  z-index: 2;
  position: absolute;
}

.banner-carousel-slide.active:first-child {
  position: relative;
}

.banner-carousel-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
}

/* Content Sections */
.content-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(26, 10, 46, 0.3), rgba(22, 33, 62, 0.3));
  border-radius: 20px;
  border: 1px solid rgba(138, 43, 226, 0.2);
  box-shadow: 0 8px 32px rgba(138, 43, 226, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-section {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
  border: 2px solid rgba(138, 43, 226, 0.3);
  text-align: center;
  padding: 3rem 2rem;
}

.content-section h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
  background: linear-gradient(135deg, #ffffff, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-section h2 {
  font-size: 2rem;
  color: #8a2be2;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
  position: relative;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #8a2be2, #6a1b9a);
  border-radius: 2px;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #d0d0d0;
}

.content-section ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.content-section li {
  margin-bottom: 0.8rem;
  color: #d0d0d0;
  position: relative;
}

.content-section li::marker {
  color: #8a2be2;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #16213e 100%);
  border-top: 2px solid rgba(138, 43, 226, 0.3);
  margin-top: 4rem;
  padding: 3rem 0 5rem;
}

/* Scroll banner */
.scroll-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
  border-top: 2px solid rgba(138, 43, 226, 0.5);
  box-shadow: 0 -4px 20px rgba(138, 43, 226, 0.4);
  padding: 1rem 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.scroll-banner.show {
  transform: translateY(0);
}

.scroll-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

.scroll-banner-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.scroll-banner-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #8a2be2, #6a1b9a);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.scroll-banner-button:hover {
  background: linear-gradient(135deg, #9d4edd, #7b2cbf);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

/* Back to top button */
#backToTop.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #8a2be2, #6a1b9a);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#backToTop.back-to-top.show {
  display: flex;
}

#backToTop.back-to-top:hover {
  transform: translateY(-3px);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-items: center;
  align-items: center;
  text-align: center;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
  margin-bottom: 1rem;
}

.footer-text {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-title {
  color: #8a2be2;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-link {
  color: #d0d0d0;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: #8a2be2;
  transition: width 0.3s ease;
}

.footer-link:hover::before {
  width: 20px;
}

.footer-link:hover {
  color: #8a2be2;
  padding-left: 10px;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  color: #8a2be2;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  background: #8a2be2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(138, 43, 226, 0.2);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.footer-copyright {
  color: #808080;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: #808080;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: #8a2be2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-link {
    display: block;
    text-align: center;
  }

  .mobile-toggle {
    display: flex;
    order: 2;
  }

  .btn-register {
    order: 1;
    margin-left: auto;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .nav {
    width: 100%;
    display: none;
    order: 3;
  }

  .nav.open {
    display: block;
  }

  .content-section h1 {
    font-size: 2rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .content-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .content-section h1 {
    font-size: 1.8rem;
  }

  .content-section h2 {
    font-size: 1.3rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    gap: 2rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a0a2e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8a2be2, #6a1b9a);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #9d4edd, #7b2cbf);
}

/* 404 Error Page Styles */
.error-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 3rem 0;
}

.error-content {
  text-align: center;
  max-width: 600px;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(26, 10, 46, 0.4), rgba(22, 33, 62, 0.4));
  border-radius: 25px;
  border: 2px solid rgba(138, 43, 226, 0.3);
  box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.error-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8a2be2, transparent);
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: #8a2be2;
  text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #8a2be2, #6a1b9a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.error-message {
  font-size: 1.2rem;
  color: #d0d0d0;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn {
  min-width: 200px;
}

@media (max-width: 768px) {
  .scroll-banner {
    padding: 0.5rem 10px;
  }

  .scroll-banner-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .scroll-banner-text {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .scroll-banner-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }

  .footer {
    padding: 3rem 0 3.5rem;
  }

  #backToTop.back-to-top {
    bottom: 75px;
  }

  .error-code {
    font-size: 6rem;
  }
  
  .error-title {
    font-size: 2rem;
  }
  
  .error-content {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .scroll-banner {
    padding: 0.5rem 8px;
  }

  .scroll-banner-content {
    gap: 0.4rem;
  }

  .scroll-banner-text {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .scroll-banner-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    width: 100%;
    max-width: 180px;
  }

  .footer {
    padding: 2rem 0 3rem;
  }

  #backToTop.back-to-top {
    bottom: 70px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .error-code {
    font-size: 4rem;
  }
  
  .error-title {
    font-size: 1.5rem;
  }
  
  .error-message {
    font-size: 1rem;
  }
  
  .error-content {
    padding: 1.5rem;
  }
}

/* Selection Styling */
::selection {
  background: rgba(138, 43, 226, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(138, 43, 226, 0.3);
  color: #ffffff;
}
