@charset "UTF-8";
/* =======================
    Global Site Styles
======================= */

body {
  font-family: 'Montserrat', sans-serif;
  background-color: white;
  color: black;
  scroll-behavior: smooth;
}

nav {
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
}

/* =======================
    Navbar + Mobile Menu
======================= */

#navbar-logo img {
  height: 50px;
}

#navbar-links a, #footer-links a,
#mobile-menu a, #footer-mobile-menu a {
  text-transform: uppercase;
  color: white;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 10px 15px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

#navbar-links a:hover, #footer-links a:hover,
#mobile-menu a:hover, #footer-mobile-menu a:hover {
  background-color: white;
  color: black;
}

#menu-toggle, #footer-menu-toggle {
  display: block;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

#mobile-menu, #footer-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  padding: 50px 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 100;
  will-change: opacity, transform;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#mobile-menu:not(.hidden),
#footer-mobile-menu:not(.hidden) {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

#menu-bars, #menu-x,
#footer-menu-bars, #footer-menu-x {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 26px;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#menu-x, #footer-menu-x {
  display: none !important;
}

#menu-x:not(.hidden), #footer-menu-x:not(.hidden) {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1);
}

#menu-bars.hidden, #footer-menu-bars.hidden {
  display: none !important;
}

/* =======================
    Footer (Desktop Default)
======================= */

#footer {
  z-index: 110;
}

#footer-logo-container {
  display: flex;
  align-items: center;
  space-x: 2px;
  transition: transform 0.6s ease-in-out;
}

#footer-bug {
  height: 2.5rem;
}

#footer-full {
  display: inline-block;
  opacity: 1;
  height: 2.5rem;
  margin-left: 0.2rem;
  transform: translateX(0%);
  transition: none;
}

#footer-copyright {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  text-align: right;
  white-space: nowrap;
  font-size: 0.875rem;
}

#footer-menu-toggle {
  position: relative;
  z-index: 200;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Positioning icons inside the toggle */
#footer-menu-bars,
#footer-menu-x {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 24px;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#footer-menu-x {
  position: absolute;
  top: 0%;
  left: -35%;
}

/* desktop & tablet: slide the WHOLE logo container when .footer-slide-center is toggled */
@media (min-width: 769px) {
  #footer-logo-container {
    transition: transform 0.6s ease-in-out;
  }

  #footer-logo-container.footer-slide-center {
    /* exactly the same calc you used in the navbar */
    transform: translateX(calc(50vw - 50%));
  }

  #footer-full.animate-in {
    display: inline-block;
    opacity: 1;
    transform: translateX(0);
  }

  #footer-copyright {
    transition: opacity 0.4s ease;
    opacity: 1;
  }

  #footer-copyright.fade-out {
    opacity: 0;
  }
  #footer-copyright.footer-fade-out {
  opacity: 0 !important;
}
}

/* =======================
    Parallax + Content Cards
======================= */

.project-card {
  background-color: #1e293b;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border-radius: 4px;
  border: none;
}

.parallax-section {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.section-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 5px;
}

/* =======================
    Mobile Footer Animation
======================= */

@media (max-width: 768px) {
  #footer-logo-container {
    transition: transform 0.5s ease;
    transform: translateX(0%);
  }

  #footer-logo-container.slide-center {
    transform: translateX(50%);
    justify-content: center;
  }

  #footer-full {
  display: none;
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
}
