/* General Styles */
* {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: #121212;
  color: #ffffff;
}

/* Banner Styling */
.announcement-banner {
  background-color: #4285F4;
  color: rgb(59, 10, 10);
  text-align: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* Dismiss Button */
.close-banner {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  user-select: none;
}

/* Announcement Link */
.banner-link {
  color: #FFFFFF;
  font-weight: bolder;
  text-decoration: none;
}

/* Hide banner */
.hidden {
  display: none;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 45px;
  width: 100%;
  background: transparent;
  padding: 1px 20px;
  z-index: 1000;
  transition: 0.3s ease-in-out;
}

.navbar.announcement-hidden {
  top: 0;
}

/* Navbar Background when Scrolling */
.navbar.scrolled {
  background: #000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Navbar Container */
.nav-container {
  max-width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-container span {
  text-transform: uppercase;
}

/* Logo */
.logo img {
  height: 35px;
  transition: 0.3s ease-in-out;
  user-select: none;
}

.logo span {
  font-size: 18px;
  color: white;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5px 0px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 25px;
  margin-right: 15%;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #f8b400;
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
  color: #f8b400;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  font-weight: bolder;
  color: #007bff;
}

/* Dark Mode Toggle */
.theme-toggle {
  cursor: pointer;
  font-size: 24px;
  color: white;
  margin-right: 60px;
  order: 1;
}

/* Hamburger Menu (Hidden by Default) */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  order: 2;
}

.menu-toggle .fa-times {
  display: none;
  /* Hide cross icon by default */
}

/* Network Alert Styling */
.network-alert {
  position: fixed;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  text-align: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

/* Offline State (Red) */
.network-alert.offline {
  background: #ff4d4d;
  box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
  opacity: 1;
  visibility: visible;
}

/* Online State (Green) */
.network-alert.online {
  background: #4caf50;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
  opacity: 1;
  visibility: visible;
}

/* Footer */
.footer {
  background: #222;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 40px;
  padding: 20px 20px;
}

/* Footer Columns */
.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  overflow: hidden;
}

.footer-column h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, #f8b400, #ff6f00);
  position: absolute;
  bottom: 0;
  left: -50px;
  border-radius: 2px;
  opacity: 0;
  animation: underline-move 4s infinite ease-in-out;
}

@keyframes underline-move {
  0% {
    left: -50px;
    opacity: 0;
    width: 0px;
  }

  25% {
    opacity: 1;
    width: 40px;
  }

  75% {
    opacity: 1;
    width: 50px;
  }

  100% {
    left: 100%;
    opacity: 0;
    width: 0px;
  }
}

.left-column,
.center-column,
.right-column {
  text-align: left;
}

.center-column {
  text-align: center;
}

.right-column {
  text-align: right;
}

.right-column h3 {
  margin-right: 40px;
}

.right-column p {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.right-column p i {
  font-size: 18px;
  width: 25px;
  text-align: right;
}

.right-column p:last-child a {
  margin-right: 40px;
}

/* Quick Links */
.footer-column h3 {
  margin-bottom: 5px;
}

.left-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-column ul li span {
  font-weight: bold;
  color: #f8b400;
  user-select: none;
}

.footer-column ul li a,
.right-column a,
.center-column .social-icons a {
  color: white;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.footer-column ul li a:hover,
.right-column a:hover,
.center-column .social-icons a:hover {
  color: #f8b400;
}

/* Social Media */
.center-column .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.center-column .social-icons a {
  font-size: 24px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background: #222;
  border-radius: 50%;
  transition: 0.3s;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 30px;
  font-size: 14px;
  text-align: center;
  border-top: 1px solid #555;
  padding-top: 15px;
}

.progress-container {
  width: 100%;
  height: 8px;
  background: #ccc;
  margin-left: -20px;
}

.progress-bar {
  height: 8px;
  background: #04AA6D;
  width: 0%;
}

/* Responsive */
@media screen and (max-width: 480px) {

  /* Disable all transitions */
  * {
    transition: none !important;
  }

  .progress-container {
    margin-left: -5px;
    padding-right: 23px;
  }

  .announcement-banner {
    width: 97.5%;
  }

  .announcement-banner>span {
    font-size: 11px;
  }

  .close-banner {
    padding-right: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(34, 34, 34, 0.9);
    position: absolute;
    top: 70px;
    right: 0;
    width: 250px;
    height: 100vh;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.show {
    display: flex ;
    top: 0%;
    right: 50%;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    background: #000;
  }

  .nav-links.show a:first-child {
    margin-top: 20px;
  }

  .nav-links.show > a {
    text-align: left;
    padding-right: 176.5px;
  }

  /* Disable hover effects for navigation links */
  .nav-links a:hover {
    color: white !important;
  }

  .nav-links a:hover::after {
    width: 0 !important;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 5px;
    width: 97.5%;
  }

  .logo img {
    padding-top: 5px;
  }

  .logo span {
    display: none;
  }

  .menu-toggle {
    display: block;
    padding-right: 5px;
  }

  /* Close Menu Button */
  .menu-toggle .fa-times {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    display: none;
  }

  .theme-toggle {
    margin-left: 60%;
    margin-right: 0px;
  }

  .nav-links a::after {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h3 {
    margin-top: 0;
  }

  .left-column h3 {
    margin-right: 10px;
    margin-bottom: 5px;
  }

  .left-column ul {
    margin-top: 0;
    padding-left: 70px;
    margin-bottom: 0;
  }

  .left-column a:hover {
    color: white !important;
  }

  .left-column,
  .center-column {
    margin-bottom: 0;
  }

  .center-column h3 {
    padding-right: 25px;
    margin-bottom: 5px;
  }

  .social-icons {
    padding-right: 20px;
  }

  .right-column h3 {
    margin-right: 25px;
    margin-bottom: 2px;
  }

  .right-column p {
    justify-content: center;
    margin-right: 15px;
  }

  .fadeIn,
  .fadeInUp,
  .zoomIn {
    animation: none;
  }
}

@media screen and (min-width: 480px) and (max-width: 768px) {

  /* Disable all transitions */
  * {
    transition: none !important;
  }

  .progress-container {
    margin-left: -5px;
    padding-right: 23px;
  }

  .announcement-banner {
    width: 97.5%;
  }

  .announcement-banner>span {
    font-size: 1.2rem;
  }

  .close-banner {
    padding-right: 20px;
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(34, 34, 34, 0.9);
    position: absolute;
    top: 70px;
    right: 0;
    width: 250px;
    height: 100vh;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.show {
    display: flex ;
    top: 0%;
    right: 20%;
    transform: translateX(90%);
    padding-right: 100%;
    transition: transform 0.3s ease-in-out;
    background: #000;
  }

  .nav-links.show a:first-child {
    margin-top: 40px;
  }

  .nav-links.show > a {
    text-align: left;
    padding-right: 176.5px;
    font-size: 1.5rem;
    text-wrap: nowrap;
  }

  /* Disable hover effects for navigation links */
  .nav-links a:hover {
    color: white !important;
  }

  .nav-links a:hover::after {
    width: 0 !important;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 5px;
    width: 97.5%;
  }

  .logo img {
    padding-top: 5px;
  }

  .logo span {
    display: none;
  }

  .menu-toggle {
    display: block;
    padding-right: 5px;
  }

  /* Close Menu Button */
  .menu-toggle .fa-times {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    display: none;
  }

  .fa-times {
    margin-top: 10px;
  }

  .theme-toggle {
    margin-left: 80%;
    margin-right: 0px;
  }

  .nav-links a::after {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h3 {
    margin-top: 0;
  }

  .left-column h3 {
    margin-right: 10px;
    margin-bottom: 5px;
  }

  .left-column ul {
    margin-top: 0;
    padding-left: 70px;
    margin-bottom: 0;
  }

  .left-column a:hover {
    color: white !important;
  }

  .left-column,
  .center-column {
    margin-bottom: 0;
  }

  .center-column h3 {
    padding-right: 25px;
    margin-bottom: 5px;
  }

  .social-icons {
    padding-right: 20px;
  }

  .right-column h3 {
    margin-right: 25px;
    margin-bottom: 2px;
  }

  .right-column p {
    justify-content: center;
    margin-right: 15px;
  }

  .fadeIn,
  .fadeInUp,
  .zoomIn {
    animation: none;
  }
}

@media screen and (max-width: 1024px) {
  .nav-links {
    margin-right: 0;
  }
}
