/* styles.css - small custom tweaks */
/* Full-page background image */
html {
  min-height: 100%;
}

/* Full-page background wrapper */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;         /* Fill at least the viewport height */
  background-color: #0A0A14; /* fallback color */
  position: relative;
}

/* Background overlay (fades in) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/images/background.jpg") no-repeat center center fixed;
  background-size: cover;    /* Ensures it always fills screen */
  opacity: 0; /* start invisible */
  transition: opacity 1s ease-in;   /* smooth fade */
  z-index: -1; /* stays behind content */
}

/* Fade in background */
body.loaded::before {
  opacity: 1;
}

/* Make sure main content doesn't hide behind sticky footer */
main {
  flex: 1;
  padding-bottom: 6rem; /* Enough for footer height */
}

/* Navbar links */
.nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* ====== Mobile Drawer Menu ====== */
#mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1rem;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  background-image: url("assets/images/background.jpg");
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform: translateY(-100%);
  opacity: 0;
  z-index: 10001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* When toggled open */
#mobile-menu.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* Menu links */
#mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 0.75rem;
  width: 100%;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

#mobile-menu a:hover {
  color: #f472b6; /* brand pink hover */
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.4);
}

/* Toggle Button */
#mobile-toggle {
  position: relative;
  z-index: 10002;
  cursor: pointer;
  background: transparent;
  border: none;
}
#mobile-toggle svg {
  color: #f472b6;
  stroke: #f472b6;
  transition: transform 0.2s ease;
}
#mobile-toggle:hover svg {
  transform: scale(1.1);
}

/* Make the hero typed element stand out */
#typed {
  color: #ffd6ec; /* Soft pink text for typed line */
}

/* Swiper custom sizes */
.swiper {
  --swiper-navigation-size: 28px;
  padding-bottom: 3rem;
}

/* Swiper arrows */
.swiper-button-next,
.swiper-button-prev {
  color: #ff80ab !important; /* Pink */
  font-weight: bold;
  transform: scale(1.4);
}

/* Swiper pagination bullets → horizontal lines */
.swiper-pagination-bullet {
  background: #ff80ab !important;
  width: 30px;
  height: 10px;
  border-radius: 2px;
  opacity: 0.5;
  transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.1);
}

.swiper-slide {
  height: auto !important;
}

/* Project image containers */
.project-preview {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* Slight focus outline for accessibility */
a:focus svg {
  outline: 2px solid rgba(255,153,204,0.12);
  outline-offset: 3px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .project-preview {
    max-width: 100%;
  }
}
@media (min-width: 769px) {
  .project-preview {
    max-width: 500px;
  }
}

/* Fancybox background */
.fancybox__backdrop {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(2px) !important;
}

/* Fancybox controls */
.fancybox__counter,
.fancybox__nav button,
.fancybox__button--close {
  color: #ff66aa !important; /* Tailwind's pink-300 */
}

/* Fancybox close button */
.fancybox__button--close svg {
  width: 23px !important;
  height: 23px !important;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Fancybox counter */
.fancybox__counter {
  font-size: 21px !important; /* Ensure the font size matches */
}
