/* #region SPA Design System Integration */

/* Use consistent font from design system */
* {
    font-family: var(--md-font-family-sans);
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background: #0f172a;
    color: var(--md-text-primary);
    min-height: 100vh;
    transition: all var(--md-transition);
}

.mdContainer {
    flex-direction: column;
    display: flex;
    width: 100%;
}

/* #endregion */

/* #region Navbar */ 

.mdNavbar {
  width: 100%;
  height: auto;
  z-index: 110;
  position: sticky;
  top: 0;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mdNavbarContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 0;
  position: relative;
}

.mdNavbarLogo {
  display: flex;
  align-items: center;
}

.mdLogo {
  width: 180px;
  height: auto;
}

.mdNavbarMenu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.mdNavLinks {
  display: flex;
  gap: 30px;
}

.mdNavLinks a {
  text-decoration: none;
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: all 0.3s ease;
}

.mdNavLinks a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.mdNavLinks a:hover {
  color: #60a5fa;
}

.mdNavLinks a:hover::after {
  width: 100%;
}

.mdNavLinks .mdActive {
  color: #60a5fa;
  font-weight: 600;
}

.mdNavLinks .mdActive::after {
  width: 100%;
}

.mdNavbarActions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mdSignInLink {
  text-decoration: none;
}

.mdSignInButton {
  min-width: 130px;
  position: relative;
  background-color: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 10px;
  padding: var(--md-space-3) var(--md-space-5);
  font-size: var(--md-text-sm);
  font-weight: var(--md-font-semibold);
  font-family: var(--md-font-family-sans);
  color: #f1f5f9;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.15);
  transition: all var(--md-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--md-space-2);
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mdSignInButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transition: 0.5s;
}

.mdButtonText {
  position: relative;
  letter-spacing: 0.3px;
  z-index: 2;
}

.mdButtonIcon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 2;
}

.mdButtonGlow {
  display: none;
}

.mdSignInButton:hover {
  background-color: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

.mdSignInButton:hover::before {
  left: 100%;
  transition: 0.7s;
}

.mdSignInButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(26, 82, 118, 0.3);
}

.mdLanguageSelector {
  position: relative;
  display: inline-block;
}

.mdLanguageButton {
  display: flex;
  align-items: center;
  background-color: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 10px;
  padding: var(--md-space-2) var(--md-space-4);
  cursor: pointer;
  font-size: var(--md-text-sm);
  font-family: var(--md-font-family-sans);
  color: #f1f5f9;
  transition: all var(--md-transition);
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mdLanguageButton:hover {
  background-color: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

.mdFlagIcon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  object-fit: cover;
}

.mdLanguageButton i {
  margin-left: 8px;
  font-size: 10px;
  color: #a855f7;
  transition: transform 0.3s ease;
}

.mdLanguageButton:hover i {
  transform: translateY(2px);
}

.mdLanguageDropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: rgba(15, 23, 42, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.3);
  min-width: 180px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 120;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 51, 234, 0.2);
  padding: 6px;
}

.mdLanguageDropdownActive {
  display: flex !important;
}

.mdLanguageSelector:hover .mdLanguageButton i {
  transform: rotate(180deg);
}

.mdLanguageOption {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: #f1f5f9;
  font-size: 14px;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin-bottom: 2px;
}

.mdLanguageOption:last-child {
  margin-bottom: 0;
}

.mdLanguageOption:hover {
  background-color: rgba(147, 51, 234, 0.15);
}

.mdLanguageOption.mdActive {
  background-color: rgba(147, 51, 234, 0.2);
  font-weight: 500;
  color: #a855f7;
}

.mdMobileMenuToggle {
  display: none;
  font-size: 24px;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .mdNavbarContainer {
    padding: 15px 0;
  }
  
  .mdMobileMenuToggle {
    display: block;
    z-index: 120;
  }
  
  .mdNavbarMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 30px;
    transition: all 0.4s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
    gap: 30px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(59, 130, 246, 0.1);
  }
  
  .mdNavbarMenuActive {
    right: 0;
  }
  
  .mdNavLinks {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }
  
  .mdNavLinks a {
    font-size: 16px;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  }
  
  .mdNavbarActions {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }
  
  .mdLanguageSelector {
    width: 100%;
  }
  
  .mdLanguageButton {
    width: 100%;
    justify-content: space-between;
  }
  
  .mdSignInLink {
    width: 100%;
  }
  
  .mdSignInButton {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .mdNavbarContainer {
    padding: 12px 0;
  }
  
  .mdLogo {
    width: 140px;
  }
  
  .mdNavbarMenu {
    width: 250px;
    padding: 70px 15px 30px;
  }
}

/* Dark mode navbar compatibility */
html.mdDarkMode .mdNavbar,
body.dark-mode .mdNavbar {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(147, 51, 234, 0.2);
  box-shadow: 0 1px 3px rgba(147, 51, 234, 0.3);
}

html.mdDarkMode .mdLanguageButton,
body.dark-mode .mdLanguageButton {
  background-color: rgba(147, 51, 234, 0.15);
  border-color: rgba(147, 51, 234, 0.3);
  color: #f1f5f9;
}

html.mdDarkMode .mdLanguageButton:hover,
body.dark-mode .mdLanguageButton:hover {
  background-color: rgba(147, 51, 234, 0.25);
  border-color: rgba(147, 51, 234, 0.5);
}

html.mdDarkMode .mdLanguageButton i,
body.dark-mode .mdLanguageButton i {
  color: #a855f7;
}

html.mdDarkMode .mdLanguageDropdown,
body.dark-mode .mdLanguageDropdown {
  background-color: rgba(15, 23, 42, 0.95);
  border-color: rgba(147, 51, 234, 0.3);
}

html.mdDarkMode .mdLanguageOption,
body.dark-mode .mdLanguageOption {
  color: #f1f5f9;
}

html.mdDarkMode .mdLanguageOption:hover,
body.dark-mode .mdLanguageOption:hover {
  background-color: rgba(147, 51, 234, 0.2);
}

html.mdDarkMode .mdLanguageOption.mdActive,
body.dark-mode .mdLanguageOption.mdActive {
  background-color: rgba(147, 51, 234, 0.25);
  color: #a855f7;
}

html.mdDarkMode .mdSignInButton,
body.dark-mode .mdSignInButton {
  background-color: rgba(147, 51, 234, 0.15);
  border-color: rgba(147, 51, 234, 0.3);
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.2);
}

html.mdDarkMode .mdSignInButton:hover,
body.dark-mode .mdSignInButton:hover {
  background-color: rgba(147, 51, 234, 0.25);
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* #endregion */

/* #region Footer */

.mdFooter {
  background: rgb(30, 58, 83);
  padding: 70px 0 30px;
  color: white;
}

.mdFooterContent {
  width: 72%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.mdFooterLogo {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mdFooterLogo img {
  width: 180px;
  filter: brightness(0) invert(1);
}

.mdFooterLogo p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 14px;
}

.mdFooterSocial {
  display: flex;
  gap: 15px;
}

.mdFooterSocial a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mdFooterSocial a:hover {
  background: rgb(56, 90, 245);
  transform: translateY(-3px);
}

.mdFooterMenu h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-left: 15px;
}

.mdFooterMenu h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: rgb(56, 90, 245);
  border-radius: 2px;
}

.mdFooterMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mdFooterMenu ul li {
  margin-bottom: 12px;
}

.mdFooterMenu ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mdFooterMenu ul li a:hover {
  color: white;
  transform: translateX(5px);
}

.mdFooterMenu ul li a i {
  font-size: 12px;
  color: rgb(56, 90, 245);
}

.mdFooterBottom {
  width: 72%;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.mdFooterBottom a {
  color: rgb(56, 90, 245);
  text-decoration: none;
  font-weight: 600;
}

.mdFooterBottom a:hover {
  text-decoration: underline;
}

/* Footer Responsive Styles */
@media (max-width: 992px) {
  .mdFooterContent {
    grid-template-columns: 1fr 1fr;
    width: 85%;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .mdFooterContent {
    grid-template-columns: 1fr;
    width: 90%;
  }
  
  .mdFooterBottom {
    width: 90%;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* #endregion */