.phase-in {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Space between elements */
  margin-top: 200px;
  position: relative;
  
}

.text-box {
  width: 25%;
  padding: 25px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(178, 6, 6, 0.5);
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: translateY(30px);
  font-size:1.5em;
}

.left-box {
  animation: fadeInUp 0.8s 0.2s forwards;
  margin-left:50px;
  margin-bottom:300px;
}

.right-box {
  animation: fadeInUp 0.8s 0.4s forwards;
  margin-right:50px;
  margin-top:300px;
}

.text-box:hover {
  transform:  scale(1.3);
  background: rgba(0, 0, 0, 0.9);
  border-color: rgb(178, 6, 6);
  box-shadow: 0 10px 20px rgba(178, 6, 6, 0.3);
}

.wizard {
  width: 50%; 
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.044));
  z-index: 1;
  animation: fadeInUp 1s 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#intro-vid
{
  position:relative;
}
 #intro-vid video
 {
  height:110vh;
  max-width:100%;
  z-index:10;
  background-position:absolute;
  object-fit:cover;

 }
 #intro-vid video {
  -webkit-mask-image: linear-gradient(to bottom, 
                     black 0%, 
                     black 80%, 
                     transparent 100%);
  mask-image: linear-gradient(to bottom, 
              black 0%, 
              black 80%, 
              transparent 100%);
}


 #intro-vid .content{
  background:rgba(0,0,0,0.5);
  height:100%;
  width:100%;
  z-index:20;
  position:absolute;   
  top:0;
  left:0;  
  display:flex;
  align-items:center;
  justify-content:center; 
 }

 #intro-vid .content button{
    background:rgba(0, 0, 0, 0.543);
    width: 400px;
    height: 150px; 
    color:rgb(255, 255, 255);
    font-size:40px;
    border:none;  
    transition: 500ms;
    border-radius:40px;
 }
 #intro-vid .content button:hover{
    background:rgb(0, 0, 0);
    color:rgb(255, 255, 255);
    cursor:pointer;
    box-shadow: 0px 0px 10px red;
    transform:scale(1.05);

 }

 .typewriter{
  font-size:30px;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid rgb(134, 12, 12); /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .2em; /* Adjust as needed */
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: rgb(150, 8, 8); }
}

.rapsodo-info {
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0px;
}
.rapsodo
{
  font-size:40px;
  text-decoration:underline;
  margin-bottom:50px;
  transition:.5s;
}

.rapsodo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 90%;
    max-width: 1600px;
    height:1000px;
}

.rapsodo-video {
    width:280px; 
    height:500px;
    border-radius: 10px;
    transition: .5s;
    margin-right: 100px;
    
  }
  .rapsodo-video:hover
  {
    transform: scale(1.5);
    margin-right:200px;
    filter: drop-shadow(0 0 15px rgba(178, 6, 6, 0.8));
}

.data {
  width: 700px;
  opacity: 0;
  transform: translateX(20px);
  transition: transform .5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              filter 0.4s ease !important;
}


@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(100);
  }
}

/* Applied animation */
.data.animated {
  animation: fadeInRight 1.5s ease-out forwards;
}

/* Hover state - will override cleanly */
.data:hover {
  transform: scale(1.3);
  margin-left: 20px; /* Only if absolutely necessary */
  filter: drop-shadow(0 0 15px rgba(178, 6, 6, 0.8));
}

#review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 60px; /* Reduced gap */
    margin: 80px auto;
    padding: 0 20px;
    max-width: 1200px;
    width: calc(100% - 40px); /* Account for padding */
    box-sizing: border-box;
}

/* Review Card Styling */
.review-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 500px;
    box-sizing: border-box;
    overflow: hidden; /* Prevents content overflow */
    min-width: 0; /* Fixes flexbox overflow */
}

/* Review Content */
.name-review {
    width: 100%;
    margin-bottom: 15px;
}

.name-review h2 {
    color: white;
    font-size: 1.1rem; /* Slightly smaller */
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: bold;
}

.name-review p {
    color: #ddd;
    line-height: 1.4;
    margin: 0;
    font-size: 0.9rem; 
    display: -webkit-box;
    line-clamp:3;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-text{
  text-decoration:underline;
  text-align:center
}


/* Hover Effects */
.review-card:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 1);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    #review-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 30px;

    }
    .typewriter{
      font-size:20px;
    }
}

@media (max-width: 768px) {
    #review-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 60px 20px;
        padding: 0;
    }
    
    .review-card {
        padding: 25px 20px;
    }
     .typewriter{
      font-size:15px;
    }
    .name-review p {
        max-width: 100%;
    }
}
.contact{
  margin-top:500px;
}