/* #region Normal Styles */

/* #region Base Typography */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* #endregion Base Typography */

/* #region Global Layout */

* {
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

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

/* #endregion Global Layout */

/* #region Navbar Structure */

.mdNavbar {
  width: 100%;
  height: auto;
  box-shadow: 0 2px 2px rgba(38, 24, 230, 0.05);
  z-index: 110;
  position: sticky;
  top: 0;
  background: linear-gradient(to right, #fcf9f9, #f8f9fa);
}

.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: 160px;
  height: auto;
}

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

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

.mdNavLinks a {
  text-decoration: none;
  color: #333;
  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: rgb(56, 90, 245);
  transition: width 0.3s ease;
}

.mdNavLinks a:hover {
  color: rgb(56, 90, 245);
}

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

.mdNavLinks .mdActive {
  color: rgb(56, 90, 245);
  font-weight: 600;
}

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

/* #endregion Navbar Structure */

/* #region Navbar Actions */

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

.mdSignInLink {
  text-decoration: none;
}

.mdSignInButton {
  min-width: 130px;
  position: relative;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.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: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

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

.mdSignInButton:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* #endregion Navbar Actions */

/* #region Language Switcher */

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

.mdLanguageButton {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 14px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 20px rgba(147, 51, 234, 0.2),
    0 0 40px rgba(147, 51, 234, 0.1),
    inset 0 0 15px rgba(147, 51, 234, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  text-shadow: 0 0 10px rgba(147, 51, 234, 0.3);
}

.mdLanguageButton:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
  border-color: rgba(147, 51, 234, 0.6);
  transform: translateY(-2px) scale(1.02);
  color: rgba(255, 255, 255, 1);
  box-shadow: 
    0 0 30px rgba(147, 51, 234, 0.4),
    0 0 60px rgba(147, 51, 234, 0.2),
    inset 0 0 20px rgba(147, 51, 234, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.5);
  text-shadow: 0 0 15px rgba(147, 51, 234, 0.7);
}

.mdLanguageButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.4), transparent);
  transition: left 0.5s ease;
}

.mdLanguageButton::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #9333ea, #ec4899, #9333ea);
  border-radius: 14px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(5px);
}

.mdLanguageButton:hover::before {
  left: 100%;
}

.mdLanguageButton:hover::after {
  opacity: 0.5;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { 
    opacity: 0.3;
    filter: blur(5px);
  }
  50% { 
    opacity: 0.6;
    filter: blur(10px);
  }
}

.mdFlagIcon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 4px;
  box-shadow: 
    0 0 0 1px rgba(147, 51, 234, 0.3),
    0 0 10px rgba(147, 51, 234, 0.2);
  object-fit: cover;
  filter: saturate(1.2) contrast(1.1);
}

.mdLanguageButton i {
  margin-left: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(147, 51, 234, 0.5));
}

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

.mdLanguageDropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-radius: 14px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(147, 51, 234, 0.2),
    inset 0 0 20px rgba(147, 51, 234, 0.05);
  min-width: 180px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 120;
  border: 1px solid rgba(147, 51, 234, 0.2);
  padding: 6px;
  backdrop-filter: blur(20px);
}

/* Invisible bridge to prevent hover gap */
.mdLanguageDropdown::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
}

.mdLanguageSelector:hover .mdLanguageDropdown {
  display: block;
  animation: dropdownFade 0.2s ease-in-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.mdLanguageOption {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  border-radius: 10px;
  margin-bottom: 2px;
  position: relative;
}

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

.mdLanguageOption:hover {
  background: rgba(147, 51, 234, 0.1);
  transform: translateX(3px);
  color: rgba(147, 51, 234, 1);
  text-shadow: 0 0 8px rgba(147, 51, 234, 0.5);
}

.mdLanguageOption.mdActive {
  background: rgba(147, 51, 234, 0.15);
  font-weight: 600;
  color: rgba(147, 51, 234, 1);
  position: relative;
  text-shadow: 0 0 10px rgba(147, 51, 234, 0.6);
}

.mdLanguageOption.mdActive::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.6);
}

.mdLanguageOption.mdActive::after {
  content: "\2713";
  position: absolute;
  right: 16px;
  color: #9333ea;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 0 0 5px rgba(147, 51, 234, 0.8);
  animation: checkGlow 2s ease-in-out infinite;
}

@keyframes checkGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* #endregion Language Switcher */

/* #region Mobile Toggle */

.mdMobileMenuToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 121;
}

.mdHamburgerLine {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mdHamburgerLine:nth-child(1) {
  margin-bottom: 4px;
}

.mdHamburgerLine:nth-child(2) {
  margin-bottom: 4px;
}

/* Hamburger animation when menu is open */
.mdMobileMenuToggle.mdMenuOpen .mdHamburgerLine:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.mdMobileMenuToggle.mdMenuOpen .mdHamburgerLine:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mdMobileMenuToggle.mdMenuOpen .mdHamburgerLine:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* #endregion Mobile Toggle */

/* #region Footer Layout */

.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 */

/* #endregion Footer Layout */

/* #endregion Normal Styles */

/* #region Dark Mode Styles */

/* #region Language Switcher */

body.dark-mode .mdLanguageButton {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

body.dark-mode .mdLanguageButton:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mdLanguageDropdown {
  background-color: #1f2937;
}

body.dark-mode .mdLanguageOption {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .mdLanguageOption:hover,
body.dark-mode .mdLanguageOption.mdActive {
  background-color: rgba(255, 255, 255, 0.1);
}

/* #endregion Language Switcher */

/* #endregion Dark Mode Styles */

/* #region Responsive Styles */

/* #region Desktop Large (1921px+) */
@media (min-width: 1921px) {
  /* Reserved for ultra-wide desktop refinements */
}

/* #endregion Desktop Large (1921px+) */

/* #region Desktop Standard (1367px - 1920px) */
@media (min-width: 1367px) and (max-width: 1920px) {
  /* Reserved for standard large desktop adjustments */
}

/* #endregion Desktop Standard (1367px - 1920px) */

/* #region Desktop Small (1201px - 1366px) */
@media (min-width: 1201px) and (max-width: 1366px) {
  /* Reserved for compact desktop adjustments */
}

/* #endregion Desktop Small (1201px - 1366px) */

/* #region Critical Breakpoint (max-width: 1200px) */
@media (max-width: 1200px) {
  .mdNavbarContainer {
    padding: 15px 0;
    position: relative;
  }

  /* Display hamburger toggle */
  .mdMobileMenuToggle {
    display: flex;
    z-index: 121;
  }

  /* Hide desktop navigation on mobile */
  .mdNavbarMenu {
    display: none !important; /* hidden by default */
  }

  /* Drawer menu when hamburger is active */
  .mdNavbarMenu.mdNavbarMenuActive {
    display: flex !important; /* show when activated */
    position: fixed !important;
    top: 0 !important;
    right: 0 !important; /* slide in from right */
    width: 320px !important;
    height: 100vh !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 80px 30px 30px !important;
    animation: slideInRight 0.3s ease-out !important; /* animation */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
    gap: 0 !important;
    overflow-y: auto !important;
    z-index: 120 !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
  }

  /* Slide-in animation keyframes */
  @keyframes slideInRight {
    from {
      right: -320px;
      opacity: 0;
    }
    to {
      right: 0;
      opacity: 1;
    }
  }

  /* Mobile navigation links */
  .mdNavbarMenu .mdNavLinks {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0 !important;
    margin-bottom: 30px !important;
  }

  .mdNavbarMenu .mdNavLinks a {
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 15px 0 !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
  }

  .mdNavbarMenu .mdNavLinks a:hover {
    color: rgb(56, 90, 245) !important;
    padding-left: 10px !important;
  }

  .mdNavbarMenu .mdNavLinks a.mdActive {
    color: rgb(56, 90, 245) !important;
    font-weight: 600 !important;
    background: rgba(56, 90, 245, 0.05) !important;
    border-radius: 8px !important;
    border-bottom-color: transparent !important;
    padding-left: 10px !important;
  }

  /* Mobile action buttons */
  .mdNavbarMenu .mdNavbarActions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding-top: 20px !important;
  }

  .mdNavbarMenu .mdLanguageSelector {
    width: 100% !important;
  }

  .mdNavbarMenu .mdLanguageButton {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
  }

  .mdNavbarMenu .mdSignInLink {
    width: 100% !important;
  }

  .mdNavbarMenu .mdSignInButton {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
  }

  /* Overlay Background */
  .mdMobileMenuOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 119;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .mdMobileMenuOverlay.mdActive {
    display: block;
    opacity: 1;
  }

  .mdFooterContent {
    grid-template-columns: 1fr 1fr;
    width: 85%;
    gap: 40px;
  }
}

/* #endregion Critical Breakpoint (max-width: 1200px) */

/* #region Tablet Large (993px - 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
  /* Tablet large specific overrides can be added here */
}

/* #endregion Tablet Large (993px - 1200px) */

/* #region Tablet (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  /* Tablet specific overrides can be added here */
}

/* #endregion Tablet (769px - 992px) */

/* #region Mobile Large (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .mdFooterContent {
    grid-template-columns: 1fr;
    width: 90%;
  }

  .mdFooterBottom {
    width: 90%;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* #endregion Mobile Large (481px - 768px) */

/* #region Mobile Small (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
  .mdNavbarContainer {
    padding: 12px 0;
  }

  .mdLogo {
    width: 140px;
  }

  .mdNavbarMenu {
    width: 250px;
    padding: 70px 15px 30px;
  }

  .mdFooterContent {
    width: 90%;
  }
}

/* #endregion Mobile Small (320px - 480px) */

/* #region Mobile Extra Small (< 320px) */
@media (max-width: 319px) {
  .mdNavbarContainer {
    padding: 10px 0;
  }

  .mdLogo {
    width: 120px;
  }

  .mdNavbarMenu {
    width: 220px;
    padding: 60px 12px 24px;
  }

  .mdFooterContent {
    width: 95%;
  }
}

/* #endregion Mobile Extra Small (< 320px) */

/* #endregion Responsive Styles */
