:root {
  --maroon: #220000;
  --gold: #c99b32;
  --light-gold: rgba(201, 155, 50, 0.3);
  --white: #f8f9f7;
  --black: #000000;
  --text-color: #333;
  --beige: #ccc0b2;
  --off-white: #f8f9f7;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--off-white) 0%, var(--beige) 100%);
}

* {
  box-sizing: border-box;
}

/* Blur Overlays */
.blur-overlay {
  position: fixed;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* .top-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 10;
} */

.top-blur {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent); /* slight dark fade */
  box-shadow: 0 20px 40px 20px rgba(0, 0, 0, 0.1); /* subtle dark smudge at bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 10;
}


/* .bottom-blur {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 10;
} */

.bottom-blur {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  backdrop-filter: blur(4px); /* slightly increased for more effect */
  -webkit-backdrop-filter: blur(4px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent); /* slight dark fade */
  box-shadow: 0 -20px 40px 20px rgba(0, 0, 0, 0.1); /* subtle dark smudge instead of white */
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent 100%);
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
  z-index: 10;
}





.top-blur.visible,
.bottom-blur.visible {
  opacity: 1;
}




/* .bottom-blur {
  bottom: 0;
  height: 100px;
  width: 100%;
  position: fixed;
  pointer-events: none;
  /* backdrop-filter: blur(6px); */
  /* -webkit-backdrop-filter: blur(6px); */
  /* background: transparent; */
  /* background-color: rgba(255, 255, 255, 0.2); */
  /* z-index: 10; */
/* } */

/* Existing styles */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--maroon);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

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

.loader-logo-img {
  max-width: 200px;
  height: auto;
  opacity: 0;
  filter: grayscale(100%) brightness(200%);
  transition: opacity 1s ease-in-out, filter 1s ease-in-out;
  animation: subtle-pulse 2s infinite ease-in-out;
}

.loader-wrapper.loading-done .loader-logo-img {
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
  animation: glow-in 1.5s forwards;
}

/* Keyframes for the pulsing and glowing effect */
@keyframes subtle-pulse {
  0% { transform: scale(1); filter: brightness(200%); }
  50% { transform: scale(1.05); filter: brightness(220%); }
  100% { transform: scale(1); filter: brightness(200%); }
}

@keyframes glow-in {
  0% {
    opacity: 0;
    filter: grayscale(100%) brightness(200%);
  }
  50% {
    opacity: 0.8;
    filter: grayscale(50%) brightness(150%);
    transform: scale(1.1);
    /* box-shadow: 0 0 10px 5px var(--glow-color); */
  }
  100% {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--glow-color); /* Fades out the glow */
  }
}

:root {
  --glow-color: #ffcc00;
}
.cinzel-font {
  font-family: 'Cinzel', serif;
}

.hero-section {
  position: relative;
  height: 100vh !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  padding: 0 20px;
}

/* Overlay for better text readability */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-section h1 {
  font-family: 'Cinzel', serif;
  font-size: 3.5em;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.content-section {
  padding: 60px 5%;
  background-color: var(--white);
  min-height: 80vh;
  width: 100%;
}

.navbar-container {
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  padding: 15px 0;
  transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-container .navbar {
  max-width: 1000px;
  width: 55%;
  background-color: rgba(128, 0, 0, 0.1);
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease-in-out;
}

.navbar-container.scrolled .navbar {
  background-color: var(--maroon);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  margin-top: 10px;
}

.navbar-links li {
  margin-left: 35px;
}

.navbar-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  padding: 5px 0;
  position: relative;
  overflow: hidden;
  display: inline-block;
  transition: all 0.3s ease;
}

.navbar-links a::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--gold) !important;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.navbar-links a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.navbar-links a:hover::before {
  transform: translateY(0);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--gold) !important;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.navbar-links a.active {
  box-shadow: inset 0 -2px 0 var(--gold);
  color: var(--gold);
}


.navbar-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar-toggle {
  display: none;
  font-size: 1.8em;
  color: var(--gold) !important;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 5px;
}

.logo-img {
  max-height: 60px;
  width: auto;
  display: block;
}

.navbar-links a.active-link {
  color: var(--gold) !important;
  font-weight: 700;
}

.navbar-links a.active-link::before {
  transform: translateY(0);
}

.navbar-links a.active-link::after {
  transform: scaleX(1);
  height: 4px;
}

@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.8em;
  }
  .logo-img {
    max-height: 50px;
  }
  .navbar-links li {
    margin-left: 25px;
  }
}

@media (max-width: 768px) {
  .navbar-container .navbar {
    width: 100%;
    border-radius: 0;
    padding: 15px 20px;
    background-color: var(--maroon);
    margin-top: -20px !important;
  }
  
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100vw;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    background-color: var(--maroon);
  }
  
  .navbar-links.active {
    display: flex;
  }
  
  .navbar-links li {
    margin: 15px 0;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .hero-section h1 {
    font-size: 2.2em;
  }
  
  .logo-img {
    max-height: 45px;
  }
  
  .loader-logo-img {
    max-width: 150px;
  }

  .navbar-logo img {
    max-height: 70px;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.8em;
  }
}


.autoBlur {
  filter: blur(30px);
  opacity: 0.5;
  transition: filter 1s ease, opacity 1s ease;
}

.autoBlur.visible {
  filter: blur(0px);
  opacity: 1;
}

.section-blur-top,
.section-blur-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}

.section-blur-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

.section-blur-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.4), transparent);
}

/* Make sure parent sections have relative positioning */
.welcome-section,
.services-section {
  position: relative;
  overflow: hidden;
}
