/* Font styles */
@font-face {
  font-family: "Abhaya Libre", serif;
  src: url("Afacad.woff2") format("woff2");
  font-display: swap;
}

.abhaya-libre-regular {
  font-family: "Abhaya Libre", serif;
  font-weight: 400;
  font-style: normal;
}

.abhaya-libre-extrabold {
  font-family: "Abhaya Libre", serif;
  font-weight: 800;
  font-style: normal;
}

.courier-prime-regular {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: normal;
}

.courier-prime-regular-italic {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: italic;
}

/* Body */
body {
  background-color: white;
  overflow-x: hidden;
  cursor: none !important;
  margin: 0 auto;
  overscroll-behavior: none;
}

/* Hide system cursor */
a,
button {
  cursor: none !important;
}
/* --- PRELOADER --- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.preloader h1 {
  font-size: var(--bigtext-fontsize);
  font-weight: 800;
  font-family: var(--abhaya-font);
  letter-spacing: 0.5px;
  color: var(--tertiary-color);
  white-space: nowrap;
  margin-bottom: 0;
  border-right: 2px solid var(--tertiary-color);
  overflow: hidden;
  animation: blink 0.6s step-end infinite alternate;
}

.preloader p {
  opacity: 0;
  margin-top: 0.5rem;
  font-family: var(--courier-font);
  font-size: var(--text-fontsize);
  letter-spacing: 0.5px;
}
/* --- WIPE OVERLAY --- */
.wipe-overlay {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 9998;
}

/* --- MAIN CONTENT --- */
.main {
  opacity: 0;
}
/* --- ANIMATIONS --- */

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Root variables */
:root {
  --primary-color: white;
  --secondary-color: #565353;
  --tertiary-color: black;
  --primary-bg-color: #eaeaea;
  --menu-bgcolor: #450000;
  --button-bgcolor: black;
  --hover-color: #4e0404cb;
  --text-fontsize: clamp(0.875rem, 0.5797rem + 0.6144vw, 1.125rem);
  --logo-fontsize: clamp(1.9375rem, 1.291rem + 1.0101vw, 2.1875rem);
  --bigtext-fontsize: clamp(3.5rem, 3.2047rem + 0.6144vw, 3.75rem);
  --heading-fontsize: clamp(2.25rem, 1.9547rem + 0.6144vw, 2.5rem);
  --abhaya-font: "Abhaya Libre", serif;
  --courier-font: "Courier Prime", monospace;
}
/* scroll bar */
::-webkit-scrollbar {
  width: 0.5rem;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--tertiary-color);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--hover-color);
}
/* Custom cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  background: black;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.25s ease, height 0.25s ease,
    background 0.25s ease;
  z-index: 9999;
  mix-blend-mode: normal; /* makes it visible on both light/dark backgrounds */
}

/* Hover state for clickable items */
.custom-cursor.hover {
  width: 30px;
  height: 30px;
  background: var(--hover-color);
  transform: translate(-50%, -50%) scale(1.05);
}
/* Navbar */
.nav-container {
  max-width: 1300px;
  margin: auto;
  justify-content: center;
}

.navbar {
  z-index: 4;
  background-color: rgba(0, 0, 0, 0);
  width: 90%;
  display: flex;
  align-items: center;
  margin: 0.7rem 3rem;
}
.logo {
  margin: 0;
  direction: ltr;
  color: var(--tertiary-color);
  letter-spacing: 1px;
  text-transform: none;
  overflow-wrap: normal;
  font-family: var(--abhaya-font);
  font-weight: 800;
  font-size: var(--heading-fontsize);
}
.nav-content {
  margin-left: auto;
}
.nav-menu-l {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}
li {
  display: inline;
}
.nav-link {
  color: var(--secondary-color);
  letter-spacing: 0.25px;
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: var(--text-fontsize);
  text-decoration: none;
  position: relative;
  transition: 0.3s all;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: black;
  transition: width 0.6s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Buger */
/* Menu Container */
.menu-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: none;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 1rem;
  z-index: 999;
}
/* Menu Button */
.menu-btn {
  background: var(--tertiary-color);
  color: #fff;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1.61, 0.36, 1);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.15);
}
.menu-btn:hover {
  background: #1a1a1a;
}

.menu-btn.active {
  transform: rotate(180deg);
}
/* Menu Items */
.menu-items {
  position: absolute;
  bottom: 70px;
  left: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.22, 1.61, 0.36, 1);
}
/* Active State */
.menu-items.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
/* Individual Menu Item */
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-fontsize);
  color: var(--primary-color);
  font-family: var(--courier-font);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.menu-item img {
  width: 2vw;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

/* Icons and Shortcuts */
.menu-item i {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
.menu-item span {
  flex: 1;
}
.menu-item a {
  text-decoration: none;
  color: var(--primary-color);
}

/* Hero Section*/
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Optional: Set a height for the parent if vertical centering is desired */
  min-height: 80vh; /* Example: full viewport height */
  z-index: 10;
  will-change: transform;
}
.hero-image {
  position: relative;
  overflow: hidden;
  width: 80%;
  height: 550px;
  margin: 0 auto;
}
.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-subtext {
  margin: 0 1.9rem;
  font-family: var(--courier-font);
  font-weight: 400;
  color: var(--tertiary-color);
  font-size: var(--text-fontsize);
  will-change: transform;
}
.hero-subtext p {
  opacity: 0;
  white-space: pre;
}

#hero-title {
  font-weight: bold;
}
.animated-hr {
  width: 100%;
  height: 1px;
  background-color: var(--tertiary-color);
  border: none;
}

/* Summary text*/
#summary {
  margin: 1.9rem;
  margin-bottom: 25rem;
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: clamp(1.125rem, 0.4785rem + 1.0101vw, 1.375rem);
  line-height: 30px;
  text-align: justify;
  opacity: 0;
  will-change: transform;
}
#summary p {
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: clamp(1.125rem, 0.4785rem + 1.0101vw, 1.375rem);
  line-height: 30px;
  text-align: justify;
}

/* Footer */
.footer {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: end;
  min-width: 440px;
  max-width: 1400px;
  margin: 1.9rem;
  margin-bottom: 0;
  will-change: transform;
}
.footer-logo {
  direction: ltr;
  color: var(--tertiary-color);
  letter-spacing: 1px;
  text-transform: none;
  margin-left: auto;
  font-family: var(--abhaya-font);
  font-weight: 800;
  font-size: var(--heading-fontsize);
  margin-bottom: 1rem;
}
.footer p {
  display: block;
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: var(--text-fontsize);
}
/* Desktop view */
@media (max-width: 1024px) {
}
/* Media query mobile 768px */
@media (max-width: 48rem) {
  :root {
    --text-fontsize: clamp(0.75rem, 0.75rem + 0.2604vw, 0.875rem);
    --bigtext-fontsize: clamp(3.25rem, 3.25rem + 0.5208vw, 3.5rem);
    --heading-fontsize: clamp(2rem, 2rem + 0.5208vw, 2.25rem);
  }
  /* Custom cursor */
  .custom-cursor {
    display: none;
  }
  .nav-menu-l {
    display: none;
  }
  /* Buger */
  /* Menu Container */
  .menu-container {
    display: flex;
  }
  .navbar {
    z-index: 4;
    background-color: rgba(0, 0, 0, 0);
    width: 80%;
    display: flex;
    align-items: center;
    margin: 0.7rem 3rem;
  }
  /* Hero Section*/
  .hero-section {
    min-height: 60vh; /* Example: full viewport height */
  }
  /* Summary text*/
  .summary {
    margin: 1.9rem;
    margin-bottom: 15rem;
  }
  /* Footer */
  .footer {
    width: 80%;

    justify-content: space-between;

    margin: 0.625rem;
    min-width: auto;
  }
  .footer-logo {
    margin-right: auto;

    font-size: var(--heading-fontsize);
  }
  .footer p {
    display: none;
  }
}
@media (max-width: 576px) {
  .menu-item img {
    width: 3vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
