/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FF6B35;
  --secondary-color: #F7931E;
  --accent-color: #FFD23F;
  --dark-bg: #1a1a2e;
  --darker-bg: #0f0f1e;
  --light-text: #ffffff;
  --text-gray: #e0e0e0;
  --text-muted: #b0b0b0;
  --border-color: #33334d;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(255, 107, 53, 0.4);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  color: var(--light-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* Header Styles */
.main-header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-logo {
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px var(--primary-color));
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--light-text);
  background: rgba(255, 107, 53, 0.1);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--light-text);
  border-radius: 3px;
  transition: var(--transition);
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

section:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
}

section h1 {
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 210, 63, 0.3);
}

section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

section p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.8;
}

section p strong {
  color: var(--accent-color);
  font-weight: 600;
}

section ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

section li {
  margin-bottom: 1rem;
  color: var(--text-gray);
  line-height: 1.8;
}

section li::marker {
  color: var(--primary-color);
}

/* Banner Styles */
.banner-container {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.banner-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Table Container */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: var(--darker-bg);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Table Styles */
table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: rgba(15, 15, 30, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

table th {
  padding: 1.2rem;
  text-align: left;
  color: var(--light-text);
  font-weight: 600;
  font-size: 1.1rem;
}

table td {
  padding: 1rem 1.2rem;
  color: var(--text-gray);
  border-top: 1px solid var(--border-color);
}

table tbody tr {
  transition: var(--transition);
}

table tbody tr:hover {
  background: rgba(255, 107, 53, 0.1);
  transform: scale(1.01);
}

table tbody tr:nth-child(even) {
  background: rgba(26, 26, 46, 0.4);
}

/* Footer Styles */
.main-footer {
  background: var(--darker-bg);
  border-top: 2px solid var(--border-color);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  height: 60px;
  width: auto;
  opacity: 0.9;
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-column-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copyright {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--dark-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .header-nav.active {
    right: 0;
  }
  
  body.menu-open {
    overflow: hidden;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  main {
    padding: 1rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  section h1 {
    font-size: 1.8rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  section p {
    font-size: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo-section {
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-column {
    text-align: center;
  }

  table {
    font-size: 0.9rem;
  }

  table th,
  table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }

  section h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  table {
    font-size: 0.8rem;
  }

  table th,
  table td {
    padding: 0.5rem 0.3rem;
  }
}

/* Smooth Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.6s ease-out;
}

.banner-container {
  animation: fadeIn 0.8s ease-out;
}

/* Bottom Promo Banner */
.bottom-promo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  border-top: 2px solid var(--primary-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.bottom-promo-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.bottom-promo-banner-text {
  flex: 1;
  color: var(--light-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.bottom-promo-banner-text strong {
  color: var(--accent-color);
  font-weight: 700;
}

.bottom-promo-button {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
}

.bottom-promo-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 50%;
  color: var(--light-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* 404 Error Page Styles */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.error-content {
  text-align: center;
  max-width: 600px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
}

.error-title {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.error-message {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-link {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.error-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

@media (max-width: 768px) {
  .error-code {
    font-size: 5rem;
  }

  .error-title {
    font-size: 1.5rem;
  }

  .error-message {
    font-size: 1rem;
  }

  .bottom-promo-banner {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
  }

  .bottom-promo-banner-text {
    font-size: 0.9rem;
  }

  .bottom-promo-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  .scroll-to-top {
    bottom: 100px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

