/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: auto;
  min-height: 100%;
  font-family: 'Playfair Display', serif;
  overflow-x: hidden;
  overflow-y: auto;
}


/* --- General Container --- */
.cinematic-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* --- Panel Setup --- */
.panel {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 2s ease-in-out;
}

.panel.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* --- Background Image Setup --- */
.bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1);
  animation: zoomIn 20s ease-in-out infinite;
}

/* Overlay (for better text contrast) */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

/* --- Panel Background Assignments --- */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures it fills the panel */
  z-index: -2;       /* keep it behind overlay + text */
}





.define-bg {
  background-image: url('../images/define.png');
  
  filter: grayscale(40%) brightness(0.75) contrast(1.1);
}




.amplify-bg {
  background-image: url('../images/amplify.jpg');
  
}

.nav-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10; /* above panels */
  pointer-events: none; /* container doesn't block clicks */
}

.arrow {
  pointer-events: auto; /* but buttons are clickable */
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 0.6rem 1rem;
  margin: 0 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.arrow:hover {
  background: rgba(0,0,0,0.75);
}



/* --- Text Styling --- */
.panel .content {
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.panel h1 {
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.panel p {
  font-size: 1.3rem;
  max-width: 650px;
  margin: 1rem auto 0;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.panel.active h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.panel.active p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

/* --- CTA Button --- */
.cta-btn {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f5f5f5;
  border: 2px solid #D4AF37; /* Gold */
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #D4AF37;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: -1;
}

.cta-btn:hover::before {
  transform: scaleX(1);
}

.cta-btn:hover {
  color: #111;
}

/* Hamburger Icon */
.menu-icon {
  position: fixed;
  top: 40px;
  right: 50px;
  cursor: pointer;
  z-index: 1000;
  width: 40px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.2s ease;
  transform-origin: center;
}


/* Morph when active */
.menu-icon.active span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}





/* Overlay Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 999;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.menu-links {
  list-style: none;
  text-align: center;
  font-size: 2rem;
  line-height: 3rem;
  padding: 0;
}

.menu-links li {
  margin: 20px 0;
}

.menu-links a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

.menu-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.menu-links a:hover::after {
  width: 100%;
}

/* Close Icon Styling as List Item */
.close-icon {
  display: inline-block;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.4s ease;
  margin-top: 40px; /* Spacing below Contact */
}

.close-icon:hover {
  opacity: 1;
  transform: rotate(90deg);
}


/* Blur Background Layer */
.blur-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 998; /* Just below menu-overlay */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.blur-background.active {
  opacity: 1;
  pointer-events: all;
}



/* --- Keyframe Effects --- */
@keyframes zoomIn {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes blurPulse {
  0%   { filter: grayscale(50%) brightness(0.7) blur(0px); }
  50%  { filter: grayscale(50%) brightness(0.6) blur(2px); }
  100% { filter: grayscale(50%) brightness(0.7) blur(0px); }
}










