/* ---------- Font Face ---------- */
@font-face {
  font-family: 'Micaelasfont-Regular';
  src: url('../fonts/Micaelasfont-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* ============================================
   DEFAULT CUSTOM SCROLLBAR - NEUTRAL THEME
   ============================================ */


.sora-regular {
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* ---------- Navigation -------------------------------------------------------------- */
.navbar {
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff7e4;
    z-index: 5000;
    font-family: "Sora", sans-serif;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: clamp(20px, 6vw, 230px);
    margin: 0;
    padding: 0 12px;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ffcc00;
}

.nav-link {
  position: relative; /* required for absolute positioning of star */
}
.nav-link.active::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px; /* space between star and text */
  background-image: url('../imgs/star.png');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}


/* ---------- Modal Styles ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 6000;
    pointer-events: none;
}

.modal.open {
    display: block;
    pointer-events: auto;
}

/* Modal backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #fff7e474;
  backdrop-filter: blur(2px);
}

/* Modal content styles */
.modal-content {
  position: relative;
  width: 401px;
  height: 403px;
  margin: 6vh auto 0;
  pointer-events: auto;
  background-image: url('../imgs/MenuSN.png');
  background-size: contain;
  background-position: center;
  border-radius: 12px;
  padding: 40px;
}

.work-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  z-index: 2;
}

.work-btn {
  position: relative;
  text-decoration: none;
  font-family: 'Micaelasfont-Regular', sans-serif;
  font-size: 32px;
  color: black;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  width: 300px; 
  height: 60px; 
}
.work-btn.active::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-image: url('../imgs/star.png');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.work-btn::after {
  content: attr(data-subtitle);
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  margin-top: 4px;
  color: black;
}

.work-btn:hover {
  transform: translateX(10px);
}

.modal-close-img {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Micaelasfont-Regular', sans-serif;
  font-size: 16px;
  color: #000;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 3;
}

.work-image-wrap,
.work-image,
.work-menu,
.work-items,
.work-item {
  display: none;
}

.work-btn:nth-child(1),
.work-btn:nth-child(2),
.work-btn:nth-child(3),
.work-btn:nth-child(4),
.work-btn:nth-child(5) {
  position: static;
  top: auto;
  left: auto;
}

/* ---------------- Mobile optimization with warning ---------------- */
.mobile-warning {
  display: none;
}

/* Hide mobile social links on desktop */
.social-links-mobile {
  display: none;
}

/* Mobile responsive design - show warning and limited content */
@media (max-width: 700px) {
  html, body {
    height: 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 100px !important;
    position: relative !important;
  }

  /* Ensure all content containers allow scrolling */
  * {
    max-height: none !important;
  }

  /* Remove any height restrictions on main containers */
  .Home,
  #AboutSection,
  .section,
  .horizontal-scroll {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* Hide navigation, work modal, and footer on mobile */
  .navbar,
  .AMSN,
  #workModal,
  .footer,
  .Skills {
    display: none !important;
  }

  /* Show mobile warning at top */
  .mobile-warning {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    line-height: 1.3;
  }

  /* Add top padding to body to account for fixed warning */
  body {
    padding-top: 50px !important;
    padding-bottom: 100px !important;
    box-sizing: border-box !important;
  }

  /* Show only social links at bottom - initially visible on mobile */
  .social-links-mobile {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 99999;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
  }
  
  .social-links-mobile.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .social-links-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #333;
    transition: all 0.3s ease;
  }

  .social-links-mobile a:hover {
    color: #DC3691;
    transform: scale(1.1);
  }
}

@media (max-width: 1100px) {
    .navbar ul {
        gap: 100px;
    }
    
    .navbar a {
        font-size: 20px;
    }
}

/* Loader covers full screen */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff; /* or match your site background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Hide content until loading finishes */
.hidden {
  display: none;
}

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

.footer {
  background-image: url('../imgs/Home/FooterBG.png');
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  align-self: center;
  color: #000000;
  padding: 60px 0 20px 0;
  margin-top: 80px;
  margin-bottom: -10px;
  width: 100%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footerLogo {
  margin-top: 80px;
  scale: 0.65;
  color: #ffcc00;
}

.footer-center {
  display: flex;
  justify-content: center;
}

.footer-links {
  margin-top: 115px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  font-family: 'Sora', sans-serif;
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffcc00;
}

.footer-right {
  margin-top: 115px;
  display: flex;
  justify-content: flex-end;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #000000;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #ffcc00;
  color: #000000;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  width: 100%;
}

.footer-bottom p {
  font-family: 'Micaelasfont-Regular', sans-serif;
  font-size: 18px;
  color: #000000;
  margin: 0 auto;
  text-align: center;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 0 20px;
  }
  
  .footer-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-right {
    justify-content: center;
  }
  
  .social-links {
    gap: 15px;
  }
}

/* Large Screen Footer Centering (>1920px) */
@media (min-width: 1921px) {
  .footer {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
  }
}
