:root{
    --primary-color: #7D1C30;
    --accent-color: #E08C27;
    --secondary-color: #fff;
}

#main-heading{
  line-height: 80px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color)
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Julius Sans One', Arial, sans-serif;
    
    letter-spacing: 0.08em;
    color: var(--primary-color);
    padding: 1.25rem 1rem 0.5rem 1rem;
}

h1{
    font-size: 3.5rem;
    text-align: center;
    font-weight: 900;
}

h2{
      font-size: 2rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 2.5rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
}

h3{
    font-size: 1.5rem;
    text-align: center;
    font-weight:500;
}

p{
    font-size: 1rem;
}

.primary-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

.primary-btn:hover {
  background-color: #7a3f4e;
}

main, .fullscreen-iframe {
    height: 100vh;
    width: 100vw;
}

.fullscreen-iframe {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: auto;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
}

.fullscreen-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.fullscreen-iframe iframe:focus {
    outline: none;
}   
.fullscreen-iframe iframe:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}
.fullscreen-iframe iframe:focus:not(:focus-visible) {
    outline: none;
}
.fullscreen-iframe iframe::-webkit-scrollbar {
    display: none;
}


@supports not (aspect-ratio: 16 / 9) {
    .fullscreen-iframe {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 ratio */
    }
    .fullscreen-iframe iframe {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
}


.hero-section-text {
    position: relative;
    text-align: center;
    color: var(--primary-color);
    padding: 4rem 1rem; /* Adjusted for better spacing */
}

.hero-section-text h1 {
    position: relative;
    font-size: 3.5rem;
    font-weight: 700;
    padding: 1rem 2rem;
    text-align: center;
    margin: 0 auto;
    display: inline-block;
}
.hero-section-text p {
    position: relative;
    font-size: 1.5rem;
    margin: 4rem;
    font-weight: 400;
}
.second-scroll-ref {
    position: relative;
    width: 100vw;
    height: max-content;
    text-align:center;
    background-color: #F7E2C9;
    display: flex;
    align-items: center;    
    justify-content: center;
    padding: 2rem; 
    flex-direction: column;

}

.services-section {
  width: 100%;
  padding: 2rem 0;
  /* background: #fff; */
}
.services-cards {
  display: grid;
  width: 70%;
  text-align: center;
  grid-template-columns: repeat(3, 30%);
  grid-column-gap: 5%;
  margin-left: 15%;
}
.service-card {
  position: relative;
  width: 280px;
  height: 500px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: box-shadow 0.3s;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-bottom: 25px;
  max-width: 320px;
  min-width: 220px;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 
    filter 0.4s cubic-bezier(.4,0,.2,1),
    transform 0.4s cubic-bezier(.4,0,.2,1);
  display: block;
}


.services-cards a{
  text-decoration: none;
}

.service-label {
  color: #7D1C30;
  text-decoration: none;
  font-size: 24px;
}
/* .service-label {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0;
  background: rgba(0,0,0,0.35);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
} */

/* Hover effects for desktop */
.service-card:hover img,
.service-card:focus-within img {
  filter: grayscale(1);
  transform: scale(1.07);
}
.service-card:hover .service-label,
.service-card:focus-within .service-label {
  opacity: 1;
}
/* 

.services-cards {
    position: relative;
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;      
    justify-content: center;      
    gap: 5rem;                  
    width: 100%;                 
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.services-cards a{
    text-decoration:none; 
    color:inherit;
} */
.card-bg{
    background-color: var(--accent-color);
}

.card-bg-top{
    height: 30vh;
    width: 10vw;
    position: relative;
    transform: translateX(-50%);
    z-index: 1;
}

.card-image{
    height: 30vh;
    width: 10vw;
    z-index: 2;
    position: relative;
    top: -12rem;
    left: -4rem;
    object-fit:cover;
}

.card-bg-bottom{
    height: 15vh;
    width: 10vw;
    position: relative;
    transform: translateX(-50%);
    z-index: 1;
    top: -15rem;
    left: 1.5rem;
}

.card-bg-bottom p{
    position: absolute;
    margin-top: 4rem;
    margin-left: 1rem;
    font-family: 'Julias Sans One', Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--secondary-color);
}

.interim-mandala{
    position: relative;
    width: auto;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 5rem 0;

}

.interim-mandala-image{
    width: auto;
    height: 60%;
    object-fit: cover;
}

.testimonial-section {
    width: 100%;
    padding: 0 0 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.testimonial-cards-row {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.testimonial-card {
    background: var(--secondary-color);
    width: 320px;
    max-width: 90vw;
    margin: 0;
    padding: 2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 10px grey;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.main-testimonial {
    text-align: center;
    color: var(--primary-color);
}

.credentials{
    font-style: italic;
    text-align: right;
    width: 100%;
    margin-top: 1rem;
}

.intro-paragraph {
    padding: 4rem 1rem 2rem 1rem;
    width: 75%;
    margin:2rem auto;
    text-align: center;
}



@media (max-width: 600px) {

  .service-card img {
  width: auto;
  height: 460px;
  object-fit: cover;
  transition: 
    filter 0.4s cubic-bezier(.4,0,.2,1),
    transform 0.4s cubic-bezier(.4,0,.2,1);
  display: block;
}

  .intro-paragraph {
    padding: 2rem 1rem 1rem 1rem;
    width: 75%;
    margin:2rem auto;
    text-align: center;
}
  
#main-heading{
  line-height: 40px;
  font-size: 28px;
  margin-bottom: 30px;
}

 .hero-section-text h1 {
    display: block;
    font-size: 2rem;
    padding: 0.5rem 0.5rem;
    margin: 0 auto;
    width: 100%;
    text-align: center;
  }
  .hero-section-text p {
    font-size: 1rem;
    margin: 0 0 1rem 0; /* Only bottom margin */
    text-align: center;
  }
  .primary-btn {
    font-size: 1rem;
    padding: 0.75rem 0.5rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 2rem 0 0 0; /* Only top margin */
    border-radius: 5px;
    display: block;
  }


  .second-scroll-ref {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    width: 100vw;
    box-sizing: border-box;
  }
  /* .services-cards {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;
    margin: 0 auto;
    
  } */
  .services-cards {
  display: grid;
  width: 85%;
  text-align: center;
  grid-template-columns: repeat(1, 100%);
  grid-column-gap: 5%;
  grid-row-gap: 30px;
  margin-left: 7.5%;
}

.service-card {
  position: relative;
  width: 280px;
  height: 500px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: box-shadow 0.3s;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 15px;
  max-width: 320px;
  min-width: 220px;
}

.service-label {
  color: #7D1C30;
  text-decoration: none;
  font-size: 18px;
}
  .services-cards a {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
.card-bg-top, .card-bg-bottom, .card-image {
        display: block;
        margin: 0 auto;
        left: 0;
        right: 0;
        position: relative;
}
.card-bg-top {
        height: 125px;
        width: 125px;
        position: relative;
        transform: translateX(-50%);
        z-index: 1;
        left: 15%;
}
.card-bg-bottom {
        height: 45px;
        width: 125px;
        margin-top: -36%;
        margin-left: 36%;
        padding: 33% 5%;
    }
  .card-image {
        height: 125px;
        width: 125px;
        margin-top: 85%;
        margin-left: -24%;
    }
    .card-bg-bottom p {
    position: relative;
    margin-top: 4rem;
    margin-left: 1rem;
    font-family: 'Julias Sans One', Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--secondary-color);
}
.interim-mandala{
    position: relative;
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 5rem 0;

}

.testimonial-card {
    background: var(--secondary-color);
    width: 320px;
    max-width: 90vw;
    margin: 0 20px;
    padding: 2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 10px grey;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.service-card:hover img,
.service-card:focus-within img {
  filter: none;
  transform: none;
}
.service-card:hover .service-label,
.service-card:focus-within .service-label {
  opacity: 1;
}

}

@media (min-width: 601px) and (max-width: 900px) {
     .second-scroll-ref {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    width: 100vw;
    box-sizing: border-box;
  }

  .services-cards {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;
    margin: 0 auto;
  }
  .services-cards a {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
.card-bg-top, .card-bg-bottom, .card-image {
        display: block;
        margin: 0 auto;
        left: 0;
        right: 0;
        position: relative;
}
.card-bg-top {
        height: 200px;
        width: 200px;
        position: relative;
        transform: translateX(-50%);
        z-index: 1;
        left: 15%;
}
 .card-bg-bottom {
        height: 81px;
        width: 200px;
        margin-top: -51%;
        margin-left: 36%;
        padding: 30% 5%;
    }
  .card-image {
        height: 200px;
        width: 200px;
        margin-top: 6%;
        margin-left: -24%;
    }
    .card-bg-bottom p {
    position: relative;
    margin-top: 6.5rem;
    margin-left: 1rem;
    font-family: 'Julias Sans One', Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--secondary-color);
}
}