/* Grey Background Section */
.grey-section {
  background-color: #000000;
  padding: 140px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative; /* Needed for fluid canvas positioning */
  overflow: hidden; /* Prevent content from overflowing */
}

/* Center content properly */
.grey-content {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  max-width: 1200px; /* Prevent content from getting too wide */
  width: 100%;
  margin: 0 auto; /* Center the container */
}

/* Text container */
.text-container {
  flex: 1;
  min-width: 300px; /* Prevent text from getting too narrow */
  max-width: 500px;
  padding: 20px;
  position: relative;
  top: -5em;
}

.text-container p{
  animation: moveFromBottom 1.7s ease-in-out; 

}
@keyframes moveFromTop {
  from { transform: translateY(-800px) }
}

/* Video container */
.video-control-container {
  position: relative;
  width: 25vw; /* Same as video width */
  min-height: 50vw;
  min-width: 300px; /* Prevent video from getting too small */
  max-width: 500px; /* Prevent video from getting too large */
  margin: 0 auto; /* Center the video container */
  margin-top: -4.5em;  /* Slight upward adjustment to match */
  animation: moveFromBottom 1.7s ease-in-out; 
  aspect-ratio: 9/16; /* Set a fixed aspect ratio container to prevent layout shifts */
}

@keyframes moveFromBottom {
from { transform: translateY(800px) }
}

/* Video styling */
.grey-video {
  width: 100%; /* Fill container */
  height: 100%; /* Fill container completely */
  object-fit: cover; /* Maintain aspect ratio but fill container */
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: block; /* Remove inline spacing */
}

/* Fluid canvas */
#grey-fluid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Start invisible */
  transition: opacity 1.5s ease-in-out; /* Smooth transition for opacity */
  mix-blend-mode: screen;
  z-index: 1;

  /* Controls coloring! */
  filter: sepia(100%) hue-rotate(330deg);
  /* filter: sepia(100%) hue-rotate(300deg) saturate(500%); Alot of options with coloring*/
}

/* Mute button */
.video-mute-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  border: none;
  transition: background 0.3s;
}

.video-mute-btn:hover {
  background: rgba(0,0,0,0.7);
}

.video-mute-btn i {
  color: white;
  font-size: 1.2rem;
}

/* Text positioning adjustments */
.grey-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  color: white;
  margin-bottom: 4rem;
  transform: scale(0.5);
  transition: 3s ease-out; /* 1.5s transform, 0.1s delay */
  text-align: left;
  position: relative;
  left: 0.7em;
}

.grey-content h2.visible {
  transform: scale(1.2);
}

.grey-content p {
  font-size: 1.2rem;
  color: rgb(168, 164, 164);
  line-height: 1.6;
}

/* Glow effect */
.glow {
  opacity: 0;
  transition: opacity 3s ease-out, text-shadow 3s ease-out;
}

.glow.visible {
  opacity: 1;
  text-shadow: 0 0 5px #fdb36e, 0 0 10px #f39e27, 0 0 1px #e2955e, 
               0 0 1px #f78a4f, 0 0 1px #f29430, 0 0 1px #cdd55e, 
               0 0 40px #eba728, 0 0 50px #efe888;
}

/* Unmuted state animations */
.video-mute-btn:not(.muted) i {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Added media queries to avoid flickering for mute button */
@media (max-width: 1050px) 
{
  /* Video styling */
.grey-video {
  min-height: 51vw;
}

}

/* Brand Message Section */
.brand-message {
  background-color: #f8f5f2; /* Light neutral background */
  padding: 80px 20px;
  color: #131313;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.message-content {
  max-width: 800px;
  margin-left: 0; /* Align to the left of the container */
  text-align: left; /* Align text to the left */
  padding-left: 0px; /* Optional: Add some left padding if you need spacing */
}

.message-content h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #141313;
  font-weight: 300;
  letter-spacing: 1px;
}

.message-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #555;
}

/* Optional animation for the text */
.message-content {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 4s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}