/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: black;
  color: white;
  scroll-behavior: smooth;
  padding-top: 80px; /* leave space for fixed navbar */
}

/* ================= LOADER ================= */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-text {
  position: relative;
  color: white;
  font-size: 20px;
  letter-spacing: 3px;
  padding: 15px 40px;
  border: 1px solid gold;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
  overflow: hidden;
}

.loader-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: gold;
  z-index: -1;
  animation: fillForward 3s forwards; /* fill once from 0 to 100% */
}

@keyframes fillForward {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes pulse {
  0% {opacity:0.3;}
  50% {opacity:1;}
  100% {opacity:0.3;}
}

.loader-text {
  animation: pulse 1.5s infinite;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.logo {
  color: white;
  font-weight: bold;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: 0.3s;
}

.logo:hover {
  color: gold;
}

.nav-right {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-right a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-right a:hover {
  color: gold;
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  background: url("assets/mountainous-background.png") center/cover no-repeat;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay h1 {
  font-size: 56px;
  margin: 0;
  animation: slideUp 1s ease;
}

.overlay p {
  font-size: 18px;
  margin-top: 10px;
  opacity: 0.85;
  animation: slideUp 1.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* ================= CTA =================*/
.cta {
  margin-top: 25px;
  display: flex;
  gap: 12px;
}

.cta a {
  padding: 10px 20px;
  border: 1px solid gold;
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: 0.3s;
}

.cta a:hover {
  background: gold;
  color: black;
}

/* ================= FOOTER / CTA BAR ================= */
.footer-cta {
  position: fixed;      /* stick to viewport */
  bottom: 0;            /* bottom of screen */
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 12px 0;
  z-index: 900;
}

.footer-cta a {
  padding: 10px 20px;
  border: 1px solid gold;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-cta a:hover {
  background: gold;
  color: black;
}

/* Optional: if using light mode */
.light .footer-cta {
  background: rgba(255,255,255,0.85);
}

.light .footer-cta a {
  color: black;
  border: 1px solid black;
}

.light .footer-cta a:hover {
  background: black;
  color: white;
}
/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 60px;
}

.thumb {
  position: relative;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.thumb:hover img {
  transform: scale(1.1);
}

.thumb-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid gold;
  padding: 12px 25px;
  opacity: 0;
  font-size: 16px;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.thumb:hover .thumb-title {
  opacity: 1;
  background: rgba(0,0,0,0.6);
  color: white; /* WHITE TITLE ON HOVER */
}

/* ================= PAGE CONTENT ================= */
.page {
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* ================= PROJECT ================= */
.project-img {
  width: 100%;
  margin: 20px 0;
}

.project-video {
  width: 100%;
  margin-bottom: 20px;
}

/* ================= LIGHT MODE ================= */
.light {
  background: white;
  color: black;
}

.light .navbar {
  background: rgba(255,255,255,0.85);
}

.light .nav-right a {
  color: black;
}

.light .nav-right a:hover {
  color: gold;
}