/* ==============================================
   HEADER & FOOTER STYLES
   ============================================== */

/* HEADER STYLING */

header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 102;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  header {
    background-color: #0f172a;
    border-bottom: 1px solid #334155;
  }
}

header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 639px) {
  .header-top {
    padding: 1rem;
  }
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6366f1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo:hover {
  color: #4f46e5;
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

/* NAVIGATION STYLING */

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 1023px) {
  nav {
    display: none;
  }
}

nav a {
  color: #1e293b;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  nav a {
    color: #f1f5f9;
  }
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #6366f1;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #6366f1;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* MOBILE MENU TOGGLE */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: flex;
  }
}

.mobile-menu-btn span {
  width: 25px;
  height: 2.5px;
  background-color: #1e293b;
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .mobile-menu-btn span {
    background-color: #f1f5f9;
  }
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* HEADER RIGHT SECTION */

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #1e293b;
  transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .theme-toggle {
    color: #f1f5f9;
  }
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(20deg);
}

.header-btn {
  padding: 0.5rem 1.5rem;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-btn:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* FOOTER STYLING */

footer {
  background-color: #102122bb;
  color: #000000;
  padding: 4rem 2rem;
  margin-top: 6rem;
}

@media (prefers-color-scheme: dark) {
  footer {
    background-color: #000;
  }
}

@media (max-width: 639px) {
  footer {
    padding: 2rem 1rem;
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 767px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 479px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: #d1d5db;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #6366f1;
  transform: translateX(4px);
}

/* FOOTER BOTTOM */

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.footer-copyright {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: #1f2937;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-icon:hover {
  background-color: #6366f1;
  transform: translateY(-4px) scale(1.1);
}

.social-icon.twitter:hover {
  background: linear-gradient(135deg, #1DA1F2, #1a94da);
}

.social-icon.linkedin:hover {
  background: linear-gradient(135deg, #0077B5, #005885);
}

.social-icon.github:hover {
  background: linear-gradient(135deg, #333, #000);
}

.social-icon.instagram:hover {
  background: linear-gradient(135deg, #F58529, #DD2A7B);
}

/* BACK TO TOP BUTTON */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  z-index: 100;
}

.back-to-top.show {
  display: flex;
  animation: slideInUp 0.3s ease-out;
}

.back-to-top:hover {
  background-color: #4f46e5;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}

@media (max-width: 639px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* BREADCRUMB NAVIGATION */

.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  background-color: transparent;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  color: #9ca3af;
  margin-left: 0.5rem;
}

.breadcrumb-item a {
  color: #6366f1;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #4f46e5;
}

.breadcrumb-item.active {
  color: #6b7280;
}

@media (prefers-color-scheme: dark) {
  .breadcrumb-item.active {
    color: #9ca3af;
  }
}
