/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: rgba(0, 0, 0, 0.95);
  color: white;
  min-height: 100vh;
  line-height: 1.6;
}

/* Navigation Bar */
.navbar {
  background-color: #111;
  opacity: 0.95;
  padding: 0 1rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  width: 100%;
  left: 0;
  top: 0;
  right: 0;
  box-sizing: border-box;
  /* overflow-x: hidden;   */
  z-index: 10000;
  position: fixed;
  transition: top 0.3s ease-in-out;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  font-weight: 1000;
  font-size: 2.2rem;
  font-weight: bold;
  background: #ff6a00;
  /* background: linear-gradient(to left, #ff0000, #ff8c00, #ffd700, #ffffff); */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logoImg {
  width: 150px;       
  height: auto;        
  margin-right: 10px;
  margin-left: 5px;
  object-fit: contain; 
  
  /* Styling effects */
  filter: drop-shadow(0 0 8px rgba(255, 162, 99, 0.6)); /* glowing shadow */
  transition: transform 0.3s ease, filter 0.3s ease;     /* smooth hover */
}

.logoImg:hover {
  transform: scale(1.01);  /* zoom effect */
  filter: drop-shadow(0 0 12px rgba(255, 162, 99, 0.8));
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link-join {
  color: white;
  border-radius: 6px;
  background: #ff6a00;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease-in-out;
}

.nav-link-join:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.7);
  background: #ffd700;
  color: #111;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem;
}

.nav-link.active,
.nav-link:hover {
  color: #00ffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #00ffff;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.menu-icon {
  height: 24px;
  width: 24px;
  stroke: white;
}

.nav-links.mobile {
  display: none;
  flex-direction: column;
  background-color: #111;
  padding: 1rem;
  gap: 1rem;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  z-index: 999;
}

/* Responsive Navbar */
@media (max-width: 800px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    gap: 1rem;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
    color: cyan;
  }

  .desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .close-icon {
    display: none;
  }

  .logo {
    font-size: 1.8rem;
  }
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("bgresources.png") no-repeat center center/cover;
  filter: blur(-4px);
  z-index: -1;
  opacity: 0.1;
  animation: panBackground 30s infinite alternate ease-in-out;
}

@keyframes panBackground {
  0% {
    background-position: center top;
  }

  100% {
    background-position: center bottom;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
    url("/Components/Resources/bgresources.png") no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  position: relative;
  animation: panBackground 30s infinite alternate ease-in-out;
}

@keyframes panBackground {
  0% {
    background-position: center top;
  }

  100% {
    background-position: center bottom;
  }
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: #ff6a00;
  text-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-content p {
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
  color: #ccc;

  font-size: 1.6rem;
}

/* Sections */
.section-container {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 0.5rem 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: #fff;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #ff6a00;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* New Resource List/Card Design */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resource-item {
  /* background: #1e1e2f; */
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #333;
}

.resource-item:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
}

.item-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.item-icon i {
  font-size: 1.8rem;
  color: #00ffff;
  transition: all 0.3s ease;
}

.resource-item:hover .item-icon {
  background: rgba(255, 106, 0, 0.1);
}

.resource-item:hover .item-icon i {
  color: #ff6a00;
}

.item-info {
  flex-grow: 1;
}

.item-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.item-quote {
  font-style: italic;
  color: #bbb;
  margin-top: 5px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.toggle-arrow {
  font-size: 1.2rem;
  color: #ff6a00;
  transition: transform 0.3s ease;
}

.resource-item.active .toggle-arrow {
  transform: rotate(180deg);
}

.item-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  /* Start transparent */
  /* Animate multiple properties for a richer effect */
  transition:
    max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    /* A nice easing function */
    padding 0.4s ease-out,
    opacity 0.3s ease-in;
}

.resource-item.active .item-content {
  max-height: 500px;
  /* Adjust this value if content is taller */
  opacity: 1;
  padding-top: 20px;
}

.item-description {
  color: #ddd;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-resource {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  background: #ff6600;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.btn-resource:hover {
  background-color: #ffd700;
  color: #111;
  transform: scale(1.03);
}

/* Responsive Design */
@media (max-width: 992px) {
  .item-header h3 {
    font-size: 1.3rem;
  }

  .item-quote {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .resource-item {
    padding: 20px;
  }

  .item-icon {
    width: 45px;
    height: 45px;
  }

  .item-icon i {
    font-size: 1.6rem;
  }

  .item-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-section {
    height: 50vh;
  }

  .section-container {
    margin: 3rem auto;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .item-header {
    flex-wrap: wrap;
    gap: 15px;
  }

  .item-icon {
    width: 40px;
    height: 40px;
  }

  .item-icon i {
    font-size: 1.4rem;
  }

  .item-info {
    flex-grow: 0;
  }

  .item-info h3 {
    font-size: 1.2rem;
  }

  .toggle-arrow {
    position: absolute;
    right: 33px;
  }

  .btn-resource {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* --- Footer Styles --- */
footer {
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

footer p {
  margin: 0.6rem 0;
}

.footer-link {
  color: cyan;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-link:hover {
  text-decoration: underline;
}

footer .connections {
  display: flex;
  gap: 20px;
  justify-content: center;
}

footer .connections a {
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
}

footer .connections a:hover {
  color: yellow;
}

.footer-people {
  margin-top: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-people .developers {
  color: rgba(255, 255, 255, 0.7);
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 5px 5px;
  margin-bottom: 0.5rem;
  justify-content: center;
  margin-top: 5px;
  font-size: 0.95rem;
}

.developedby {
  font-size: 1rem;
}

.footer-people a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.developers :hover {
  color: rgb(255, 255, 0, 1);
}

.rights {
  font-size: smaller;
  margin-bottom: 0.75rem;
}

.footer-people .developers a::after {
  content: "·";
  margin: 0 8px;
  opacity: 0.6;
  display: inline-block;
  vertical-align: middle;
  /* ensures alignment */
  font-size: 1.1em;
  /* adjust size if needed */
  line-height: 1;
}

.footer-people .developers a:last-child::after {
  content: "";
  /* No separator after last name */
}

@media (max-width: 600px) {
  .footer-people .developers a::after {
    content: " ·";
    margin: 0 6px;
    opacity: 0.6;
  }

  .footer-people .developers a:nth-child(2)::after {
    content: "";
    /* removes separator after 2nd child */
  }

  .footer-people .developers a:last-child::after {
    content: "";
    /* No separator after last name */
  }

  .footer-people .developers {
    display: grid;
    grid-template-columns: repeat(2, auto);
    /* stack vertically */
    gap: 6px;
  }
}

.shiny-text {
  color: #b5b5b5a4;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 243, 175, 0.8) 50%,
      rgba(255, 255, 255, 0) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  animation: shine 2.5s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 100%;
  }

  100% {
    background-position: -100%;
  }
}

.shiny-text.disabled {
  animation: none;
}

/* scrollbar styling  */

/* ===== Chrome, Edge, Safari ===== */
::-webkit-scrollbar {
  width: 14px;
  /* Wider for more realistic look */
}

/* Track */
::-webkit-scrollbar-track {
  background: #0d1117;
  /* Dark background */
  border-left: 1px solid #1a1f27;
  /* Slight inner border */
}

/* Thumb */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6a00, #cc5500);
  /* Gradient orange */
  border-radius: 6px;
  border: 2px solid #0d1117;
  /* Creates gap between track & thumb */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff7f26, #e65c00);
  /* Brighter on hover */
}

/* ===== Scrollbar Buttons (Arrows) ===== */

/* Common button base */
::-webkit-scrollbar-button {
  background-color: #0d1117;
  /* Matches track */
  border: none;
  height: 16px;
  /* Controls button height */
}

/* Up arrow */
::-webkit-scrollbar-button:single-button:vertical:decrement {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #ff6a00;
  /* Arrow color */
}

/* Down arrow */
::-webkit-scrollbar-button:single-button:vertical:increment {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ff6a00;
  /* Arrow color */
}

/* Hover effect on arrows */
::-webkit-scrollbar-button:single-button:vertical:decrement:hover,
::-webkit-scrollbar-button:single-button:vertical:increment:hover {
  border-bottom-color: #ff7f26;
  /* Up arrow hover */
  border-top-color: #ff7f26;
  /* Down arrow hover */
}

/* ===== Firefox ===== */
html {
  scrollbar-width: thin;
  scrollbar-color: #ff6a00 #0d1117;
  /* thumb track */
}