*{
    margin: 0;
    padding: 0;
}
.header{
    min-height: 100vh;
    width: 100%;
    overflow: auto;
    background: linear-gradient(-45deg, #00bfff, #fff, black, #6a0DAD);
    background-position: center;
    background-size: cover;
    position: relative;
    animation: galaxy 15s ease infinite;
}

@keyframes galaxy {
    0%{
        background-position: 0% 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0% 50%;
    }
}




.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 150px;
    background: transparent;
}
.nav-section ul {
    list-style: none;
    display: flex;
    gap: 200px;
    margin: 0;
    padding: 0;
}

.nav-section a {
    text-decoration: none;
    color: white;
    text-shadow: 0 0 10px #8be9fd, 0 0 20px #8be9fd, 0 0 40px #00bcd4;
    font-size: 20px;
    font-weight: bold;
}

.logo {
    text-align: center;
    cursor: pointer;
}

.logo img {
    height: 250px;
}

.nav-section.right {
    justify-self: end;
}

.nav-section ul li::after{
    content: "";
    width: 0;
    height: 2px;
    background: #00bfff;
    display: block;
    margin: auto;
    transition: 0.5s
}

.nav-section ul li:hover::after {
    width: 100%;
    transition: width 0.3s ease;
}


.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 40px;
  transition: width 0.4s ease;
  z-index: 10;
}

.sidebar:hover {
  width: 280px;
}

/* ===== CATEGORY SECTIONS ===== */
.category {
  margin-bottom: 20px;
  cursor: pointer;
}

/* Category Title */
.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  font-weight: 600;
  transition: background 0.3s ease;
  position: relative;
}

/* Glowing Icon */
.category-title .icon {
  font-size: 1.6rem;
  display: inline-block;
  transition: transform 0.6s ease, text-shadow 0.3s ease;
}

/* Text beside icon */
.category-title .text {
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  font-size: 1.4rem;
  color: #f0eaff;
}

/* Show text when sidebar expands */
.sidebar:hover .category-title .text {
  opacity: 1;
}

/* Hover animation for category title */
.category-title:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Icon animation on hover */
.category-title:hover .icon {
  transform: rotate(360deg) scale(1.2);
  text-shadow: 0 0 12px #6a0DAD, 0 0 25px #00bfff;
}

/* ===== CATEGORY LIST ===== */
.category-list {
  list-style: none;
  padding-left: 30px;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  font-size: 1.5rem;
  color: #f0eaff;
}

.sidebar:hover .category:hover .category-list {
  max-height: 300px;
  opacity: 1;
  padding-bottom: 10px;
}

.category-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list li:hover {
  color: #00bfff;
  transform: translateX(6px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 90px;
  padding: 80px 60px;
  transition: margin-left 0.4s ease;
}

.sidebar:hover ~ .main-content {
  margin-left: 280px;
}

.main-content h1 {
  font-size: 2.5rem;
  text-shadow: 0 0 15px #fff7;
}

.main-content p {
  font-size: 1.1rem;
  max-width: 700px;
  color: #f0eaff;
  line-height: 1.7;
}

.dummy-content {
  margin-top: 40px;
  line-height: 1.8;
}






.stream-page {
  width: 100%;
  max-width: 1400px;
  margin-left: 600px;
  padding: 40px 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #7b4eff;
}

.stream-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  
}

.stream-player {
  flex: 30;
  min-width: 600px;
  aspect-ratio: 16 / 9;
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(123, 78, 255, 0.4);
}

.stream-player iframe,
.stream-player video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}




.chat-box {
  flex: 1;
  min-width: 300px;
  background: rgba(123, 78, 255, 0.4);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: auto;
}

.chat-box h2 {
  text-align: center;
  margin-bottom: 15px;
}

.messages {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 15px;
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.message {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

#chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#chat-form input {
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #000;
}

#chat-form input::placeholder {
  color: #fff;
}

#chat-form button {
  background: #7b4eff;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

#chat-form button:hover {
  background: #9f7aff;
}


footer {
  background-color: transparent;          /* Dark background */
  color: #6a0DAD;                    /* Text color */
  text-align: center;              /* Center text */
  padding: 20px 0;                 /* Space inside footer */
  position: relative;              /* Keeps it at bottom naturally */
  bottom: 0;
  width: 100%;
}

.footer-container {
  max-width: 1000px;
  margin: auto;
}

.footer-container p {
  margin: 10px 0;
  font-size: 0.9rem;
}

.social-links a {
  color: #6a0DAD;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #00bfff; /* Change color on hover */
}




@media screen and (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
  }

  .hero-text {
    font-size: 1.2rem;
  }
}


@media (max-width: 768px) {
  .navbar {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 10px 20px;
  }

  .nav-section ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .logo img {
    height: 150px;
    margin-bottom: 10px;
  }

  .row {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .stream-layout {
    flex-direction: column;
    align-items: center;
  }

  .stream-player {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .chat-box {
    width: 90%;
    height: auto;
  }

  .stream-page {
    margin: 0 auto;
    padding: 10px;
  }

}





/* Hide menu + links by default (desktop) */
.menu-icon,
.nav-links {
  display: none;
}

/* --- MOBILE / TABLET ONLY --- */
@media (max-width: 768px) {
  .menu-icon {
    display: flex;
    position: absolute;
    right: 30px;
    top: 25px;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-icon span {
    display: block;
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Dropdown menu (hidden initially) */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 25px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 15px;
    width: 200px;
    z-index: 1000;
    animation: fadeSlide 0.3s ease forwards;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
  }

  .nav-links a:hover {
    color: #00bfff;
  }
}

/* Hamburger → X animation */
.menu-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-icon.open span:nth-child(2) {
  opacity: 0;
}
.menu-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown fade animation */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Hide normal nav links on smaller screens */
@media (max-width: 768px) {
  .nav-section ul {
    display: none;
  }
}
