/* ========================================================
   FONT IMPORT
======================================================== */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');

/* ========================================================
   GLOBAL STYLES
======================================================== */

html, body {
  background-color: #000;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  flex: 1;
  padding-top: env(safe-area-inset-top);
}

main, .main-content {
  flex: 1;
}

.league-spartan {
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* ========================================================
   TITLE / HEADER
======================================================== */

.IndexTitleName {
  position: relative;
  font-family: "League Spartan", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  z-index: 10;
  padding: 35px;
  margin-bottom: -70px;
  letter-spacing: 10px;
  color: #000;
  text-decoration: none;
}

/* ========================================================
   BACKGROUND VIDEO
======================================================== */

.BGvideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  aspect-ratio: 16 / 9;
}

.BGvideo::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.1);
  z-index: 0;
  pointer-events: none;
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: none;
  z-index: -1;
  pointer-events: none;
}

/* ========================================================
   DESKTOP NAVIGATION STYLES
======================================================== */

.sf-menu {
  display: flex !important;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.sf-menu a {
  transition: 0.3s all ease;
  text-decoration: none;
}

.sf-menu a:hover {
  background: none;
}

.sf-menu > li > a {
  display: inline-block;
  padding: 13px 13px;
  color: #a9a9a9;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 20px;
  font-family: corbel, "Open Sans", Tahoma, Helvetica, Arial, Verdana;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.sf-menu > li > a:hover,
.sf-menu > li.sfHover > a {
  background-color: #ccc;
  color: #ffffff;
}

.sf-menu > li.sfHover > a:after {
  visibility: visible;
  opacity: 1;
  top: 0;
  bottom: 0;
}

.sf-menu > li.current > a {
  color: #ffffff !important;
}

nav#main-nav,
nav#main-nav ul.sf-menu > li > a {
  color: #ffffff;
}

nav#main-nav ul.sf-menu ul {
  background-color: rgba(0, 0, 0, 0.1);
  margin-left: -6.5px;
}

nav#main-nav ul.sf-menu ul li a {
  color: #ffffff;
  margin-left: 0px;
}

nav#main-nav ul.sf-menu ul li a:hover {
  color: #222;
  background-color: #999;
}

/* Accessibility Focus Styles (shared) */
.sf-menu a:focus-visible,
#menu-toggle:focus-visible,
#menu-close:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
  background-color: #e0eaff;
}

/* Hamburger/Close Button Styles */
#menu-toggle,
#menu-close {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================
   SOCIAL ICONS (Desktop + Mobile)
======================================================== */

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
  margin-top: 20px;
}

.social ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

.social ul li img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  vertical-align: middle;
}

/* ========================================================
   FOOTER
======================================================== */

footer {
  position: relative;
  z-index: 2;
  background-color: transparent;
  color: white;
  padding: 40px 0 15px 0;
  text-align: center;
  margin-top: auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.menu-open footer {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

body.mobile-menu-open footer {
  margin-bottom: 120px;
}

footer a:hover {
  color: #da917a;
}

.footer_text {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ========================================================
   RESPONSIVE: NAVIGATION ALIGNMENT
======================================================== */

@media (min-width: 769px) {
  .center_buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  #main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
  }

  #menu-toggle,
  #menu-close {
    margin: 0;
    padding: 10px 15px;
    font-size: 1.6rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
  }
  .sf-menu {
      gap: 0;
  }
  .sf-menu > li {
      margin: 10px;
  }
}

/* ========================================================
   RESPONSIVE: MOBILE MENU STYLES
======================================================== */

@media (max-width: 768px) {
  #main-nav {
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    color: #ffffff;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 80px 40px 0 10px;
    z-index: 10001;
    display: block;
    position: fixed;
    text-align: left;
    align-items: flex-start;
  }

  #main-nav.active .sf-menu li {
    padding-left: 0;
    padding-right: 25px;
    margin-bottom: 0; /*space between dropdownmenu buttons home and About me inside menu*/
  }

  #main-nav.active .sf-menu ul {
    position: relative;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    margin-left: 2.5px;
  }

  #main-nav.active .sf-menu li > a,
  #main-nav.active .sf-menu li li > a {
    color: white !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    list-style: none;
  }

  #main-nav.active .sf-menu li.current > a,
  #main-nav.active .sf-menu li.current > a:hover {
    color: black !important;
    background-color: transparent !important;
    pointer-events: auto;
    cursor: default;
    margin-top: 0px; 
  }

  .sf-menu li.submenu-open > ul {
    display: block;
  }

  .IndexTitleName {
    padding-top: 45px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .social {
    display: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .social ul li img {
    width: 22px;
    height: 22px;
  }

  #main-nav ul.sf-menu > li > a {
    font-size: 18px;
  }
    .sf-menu ul li{
      margin-right: 0;
  }
  .sf-menu > li > a {
    width: 100%;                   /* Full width clickable */
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 25px;
  }
    body, html {
      overflow-x: hidden;
  }
}
@media (max-width: 240px) {
  /* Reduce padding on nav links */
  #main-nav ul.sf-menu > li > a {
    font-size: 14px;
    padding: 12px 10px;
  }

  /* Make title smaller and tighter spacing */
  .IndexTitleName {
    font-size: 0.9rem;
    letter-spacing: 5px;
  }


  /* Optional: smaller social icons */
  .mobile-social-always a {
    width: 20px;
    height: 20px;
    padding-top: 6px;
  }

  /* Optional: tighter space between mobile nav items */
  #main-nav.active .sf-menu li {
    margin-bottom: 10px;
    padding-left: 20px;
    padding-right: 10px;
  }
  .sf-menu > li: last-child > a {
      padding-bottom: 10px !important;
      margin-bottom: 0;
  }
  .footer_text{
      margin-right: 65px;
  }
}
/* ========================================================
   MOBILE SOCIAL ICONS (ALWAYS VISIBLE)
======================================================== */

.mobile-social-always {
  position: fixed;
  top: 47px;
  left: 3px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 10px;
  border-radius: 12px;
}

.mobile-social-always a {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding-top: 10px;
  transition: transform 0.2s ease;
}

.mobile-social-always a:hover {
  transform: scale(1.1);
}