:root {
  color-scheme: dark;

  --bg-primary: #000;
  --bg-secondary: rgba(10, 10, 10, 0.5);
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #fff;
  --text-secondary: #b8c5ff;
  --text-muted: #8892b0;
  --accent-primary: #ff5722;
  --accent-secondary: #ff9800;
  --accent-tertiary: #ffc107;
  --border-color: rgba(255, 87, 34, 0.2);
  --shadow-color: rgba(255, 87, 34, 0.3);
  --navbar-bg: rgba(10, 10, 10, 0.98);
}

body.light-mode {
  --bg-primary: #f5f5f5;
  --bg-secondary: rgba(255, 255, 255, 0.9);
  --bg-card: rgba(255, 255, 255, 0.8);
  --text-primary: #1a1a1a;
  --text-secondary: #2c3e50;
  --text-muted: #546e7a;
  --accent-primary: #ff5722;
  --accent-secondary: #ff9800;
  --accent-tertiary: #ffc107;
  --border-color: rgba(255, 87, 34, 0.3);
  --shadow-color: rgba(255, 87, 34, 0.2);
  --navbar-bg: rgba(255, 255, 255, 0.98);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
  transition:
    background 0.5s ease,
    color 0.5s ease;
}

#canvas3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
}

body.light-mode #canvas3d {
  opacity: 0.15;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 20px 40px;
  box-shadow: 0 2px 20px var(--shadow-color);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.5s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-size: 0.95rem;
  position: relative;
  display: block;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--accent-primary);
  background: rgba(255, 87, 34, 0.1);
}

.dropdown {
  position: relative;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--navbar-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 0;
  /* min-width: max-content; */
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 24px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.dropdown-link:hover {
  color: var(--accent-primary);
  background: rgba(255, 87, 34, 0.15);
  padding-left: 30px;
}

/* Hero */
.hero-small {
  position: relative;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 150px 20px 60px;
  z-index: 10;
  overflow: hidden;
}

.decorative-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  animation: float 20s infinite ease-in-out;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  right: 10%;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 15%;
  animation-delay: 2s;
}

.page-title {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.page-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-style: italic;
  animation: fadeInUp 1s ease 0.3s both;
}

/* Sections */
.page-section {
  position: relative;
  padding: 80px 20px;
  z-index: 10;
  transition: background 0.5s ease;
}

.page-section:nth-child(2n-1) {
  background: var(--bg-secondary);
}

.alt-bg {
  background: var(--bg-secondary);
}

.section-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.event-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.event-icon {
  font-size: 3rem;
  animation: bounce 2s infinite;
}

.poster-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 50px;
  margin-top: 50px;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 0;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-style: italic;
  text-align: center;
}

/* Event Images */
.event-image {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px var(--shadow-color);
  transition: all 0.4s ease;
  border: 3px solid var(--border-color);
}

.event-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 70px var(--shadow-color);
}

.event-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.event-image:hover img {
  transform: scale(1.05);
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  padding: 30px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-primary);
  border-radius: 8px;
  margin-bottom: 40px;
  margin-top: 40px;
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Registration */
.registration-box {
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 87, 34, 0.1);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .registration-box {
  background: rgba(255, 87, 34, 0.08);
}

.registration-title {
  font-size: 1.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 600;
}

.coming-soon {
  font-size: 1.5rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: pulse 2s infinite;
  text-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
}

/* Buttons */
.btn {
  padding: 14px 35px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: white;
  display: inline-block;
  margin: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.btn:hover {
  background: linear-gradient(135deg, #e64a19, #f57c00);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.poster-btn {
  background: rgba(255, 87, 34, 0.2);
  border: 2px solid var(--accent-primary);
  color: var(--text-primary);
}

.poster-btn:hover {
  background: rgba(255, 87, 34, 0.3);
  color: white;
}

/* Poster Container */
.poster-container {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background: rgba(255, 87, 34, 0.08);
  border: 2px dashed var(--border-color);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.poster-container:hover {
  background: rgba(255, 87, 34, 0.12);
  border-color: rgba(255, 87, 34, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.poster-placeholder {
  margin-bottom: 100px !important;
}

/* Footer */
.footer {
  background: var(--navbar-bg);
  border-top: 2px solid var(--border-color);
  padding: 50px 20px 30px;
  text-align: center;
  position: relative;
  z-index: 10;
  transition: all 0.5s ease;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.footer-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--accent-primary);
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

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

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

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

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-small {
    padding: 120px 20px 40px;
    min-height: 30vh;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-text {
    padding: 20px;
    font-size: 1rem;
  }

  .event-image {
    margin: 30px auto;
  }

  .registration-box {
    padding: 25px;
  }

  .registration-title {
    font-size: 1.4rem;
  }

  .coming-soon {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .event-icon {
    font-size: 2rem;
  }

  .event-header {
    gap: 15px;
  }

  .circle-1,
  .circle-2 {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  .event-image {
    border-radius: 15px;
  }
}
