/* Load your local font */
@font-face {
  font-family: 'ProximaNovaLight';
  src: url('fonts/ProximaNova-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Ethnocentric';
  src: url('fonts/Ethnocentric-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Reset + basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  width: 100%;
  background-color: #000;
  overflow-x: hidden;
}

body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

#global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

#global-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  border: 5px solid #000000;
  border-top: 5px solid #ffffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  flex-wrap: wrap;
}

/* Logo setup */
.logo {
  flex-shrink: 0;
  margin-right: -1.0rem;
  margin-left: -1.5rem; /* pushes logo closer to left edge */
}

.logo img {
  height: 84px;
  width: auto;
  display: block;
}

/* Horizontal divider line */
.navbar-divider {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 2rem;
  align-self: center;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: 'ProximaNovaLight', sans-serif; /* Local font for buttons */
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #d3d3d3;
}

/* Enquire button */
.enquire-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
  transition: 0.3s ease;
}

.enquire-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  width: 100%;
  background: url('assets/background.jpg') center center / cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); /* subtle, not too dark */
  z-index: 1;  /* make sure hero-content is above */
}

.hero-content {
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  z-index: 2;
}

.scrolling-container {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;

  /* Smooth fade edges with blur */
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.scrolling-text-wrapper {
  display: inline-block;
}

.scrolling-text {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  font-family: 'Ethnocentric', sans-serif;
  font-size: 4.5rem;
  color: #fff;
  text-shadow: 0 0 4px rgba(255,255,255,0.3);
  animation: scroll-left 20s linear infinite;
}

.scrolling-text span {
  display: inline-block;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* half width because of duplicated text */
}

/* Subtitle styling */
#subtitle {
  font-family: 'ProximaNovaLight', sans-serif;
  font-size: 1rem;
  color: #fff;
  margin-top: 0.5rem;
  text-shadow: 0 0 3px rgba(255,255,255,0.2);
  transition: opacity 0.2s ease; /* smooth fade */
  opacity: 1;
}

.hero-content h1 {
  font-family: 'Ethnocentric', sans-serif;
  font-size: 3.9rem;
  letter-spacing: 3px;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.hero-content p {
  font-family: 'ProximaNovaLight', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-top: 0.4rem;
  font-weight: 300;
  color: #fff;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

/* --- Waffle + Mobile Menu --- */
.waffle-btn {
  background: none;
  border: none;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 18px;
  width: 24px;
  cursor: pointer;
  margin-left: auto; /* pushes to the right */
}

.waffle-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
}

/* Show waffle only on small screens */
@media (max-width: 768px) {
  .waffle-btn {
    display: flex;
  }

  .navbar-divider,
  .nav-links {
    display: none;
  }

  .logo {
    margin-left: 0rem;
  }

  .navbar {
    justify-content: space-between;
    padding: 1rem 1.5rem;
  }
}
/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,10,10,0.95);
  opacity: 0;
  transform: translateY(-20px); /* start slightly above */
  pointer-events: none; /* prevents clicking when hidden */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* enable interaction when visible */
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.mobile-menu nav a {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  font-family: 'ProximaNovaLight', sans-serif;
}

.mobile-menu .enquire-btn {
  border: 1px solid #fff;
  padding: 0.6rem 1.3rem;
  border-radius: 3px;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Flash effect for main word */
.flash {
  color: #fff;
  text-shadow: 0 0 20px #fff, 0 0 40px #fff, 0 0 60px #fff;
}

@keyframes flash {
  0% { opacity: 0; text-shadow: 0 0 20px #fff; }
  50% { opacity: 1; text-shadow: 0 0 20px #fff; }
  100% { opacity: 1; text-shadow: none; }
}

/* --- Footer text --- */
.footer-text {
  position: absolute;
  bottom: 25px;
  right: 35px;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 1px;
  z-index: 2;
}

.footer-text span {
  font-weight: bold;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-divider {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .logo img {
    height: 36px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 50px;
  }

  .footer-text {
    right: 15px;
    bottom: 12px;
    font-size: 0.8rem;
  }
}
