* {
  margin: 0;
  padding: 0;
  opacity: 1;
  box-sizing: border-box;
  font-family: 'poppins', 'sans-serif';
}

body {
  background: #fff;
}

.container {
  position: fixed;
  padding: 10px 50px;
  display: flex;
  top: 0;
  bottom: 20;
  z-index: 10000;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
  width: 100%;
  margin-bottom: 300px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.navbar ul {
  display: flex;
}

ul a {
  padding: 5px 20px;
  text-decoration: none;
  border-radius: 2px;
  color: #18191f;
  font-family: 'Josefin Sans', sans-serif;
  line-height: 26.6px;
  font-size: 16px;
  font-weight: 600; /* semibold */
}

ul a:hover,
a.btnn:hover {
  background: rgb(68, 129, 68);
  color: #fff;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
  transition: 0.1s;
}

.btn {
  background: #ff0000;
  box-shadow: 3px 5px 5px 0 rgba(0, 0, 0, 0.3);
  padding: 5px 13px;
  margin-left: 30px;
  margin-right: 20px;
  border-radius: 2px;
  color: #fff;
}

#main-about {
  background: url(../Assets/tracting.png) no-repeat center 50%;
  margin-bottom: 270px;
  margin-top: 500px;
  margin: 0;
  height: 70vh;
  background-size: cover;
  top: 7dvh;
  opacity: 0.8;
  position: relative; /* ensures text sits on top */
}

#main-about h1 {
  display: flex;
  align-items: center;
  color: #ffffff;
  width: 100%;
  height: 100%;
  font-size: 56px;
  font-family: 'Libre Baskerville', serif;
  justify-content: center;
  font-weight: 700;
}

.fifth-section {
  padding: 80px;
  margin-top: 50px;
  box-sizing: border-box;
}

.fifth {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 49.1%;
  max-height: 491px;
  gap: 100px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
}

.video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

.video.active {
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid white;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  text-align: center;
  line-height: 100px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.play-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}


.three-container {
    width: 100%;
    padding:80px;
    box-sizing: border-box;
}

.three{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:100%;
    height: 49.1%;
    max-height: 491px;
    gap: 100px;
    margin:0 0 50px 0;
}

.content {
  width: 70.17%;
  height: 100%;
  max-width: 600px;
  margin: 0;
  margin-bottom: 30px;
}

.content h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  font-family: 'Libre Baskerville', serif;
  width: 93%;
  height: 76px;
  word-spacing: 2px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #003319;
}

.content p {
  line-height: 1.8;
  margin-bottom: 1.8rem;
  width: 90%;
  text-align: justify;
  font-size: 18px;
  font-family: 'Josefin Sans', sans-serif;
  color: #333;
}


.img-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
}

.imgs {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 16px;
}

.img-container .imgs{
  transition: opacity 600ms ease-in-out;
  pointer-events: none;
  will-change: opacity;
}

.imgs.active {
  display: block;
}


.card {
    width: 362px;
    height: 350px;
    background-image: url(../Assets/backimg.png); /* Replace with actual path */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.card_patch {
    width: 362px;
    height: 350px;
    background-image: url(../Assets/patch.png); /* Replace with actual path */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.card_path{
    width: 362px;
    height: 350px;
    background-image: url(../Assets/path.png); /* Replace with actual path */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8),transparent);
    padding: 20px;
    color: white;
}

.overlay h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    width: 324px;
    height: 32px;
    line-height: 1.6;
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: uploadFade 3s ease-in-out infinite;
}

.overlay p {
    font-family: 'Josefin Sans', serif;
    font-size: 16px;
    line-height: 1.3;
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: uploadFade 7s ease-in-out infinite;
    animation-delay: 0.4s; /* Optional: staggered start */
}

/* Keyframes */
@keyframes uploadFade {
    0% {
    opacity: 0;
    transform: translateY(20px);
}
20% {
    opacity: 1;
    transform: translateY(0);
}
80% {
    opacity: 1;
    transform: translateY(0);
}
100% {
    opacity: 0;
    transform: translateY(20px);
}
}


.third_card{
    display: flex;
    gap: 50px;
    justify-content: center;
    margin: 30px 0 60px 0;
}


.testimonials {
    text-align: center;
    padding: 60px 20px;
    background: #F2EEE9;
}

.testimonials h2 {
    font-size: 2.5rem;
    color: #023F3A;  
    font-family: 'Libre Baskerville', serif;
    font-size: 2.9rem; /* approx 46-48px */
    font-weight: 700;
    line-height: 58px;
    margin-bottom: 40px;
}

.carousel-container {
    display: none;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-container.active {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    opacity: 1;
    transform: scale(1);
    animation: popFade 0.8s ease-in-out;
}

@keyframes popFade {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
}
}

.testimonial {
    width: 90%;
}
.testimonial p {
    font-size: 18px;
    font-family: 'Josefin Sans', sans-serif;
    color: #525560;
    font-weight: 400;
    width: 100%;
    line-height: 130%;
    margin-bottom: 15px;
    
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: uploadFade 0.8s ease forwards;
    animation-delay: 0.4s;
}

.carousel-container.active .testimonial:nth-child(2) p {
    animation-delay: 0.6s;
}

.carousel-container.active .testimonial:nth-child(3) p {
    animation-delay: 0.8s;
}

@keyframes uploadFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.testimonial h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

.dots {
    margin-top: 30px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    align-items: center;
    justify-content: center;
    background-color: #f8d5bb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active{
    background-color: rgb(180, 18, 18); /* red */
    outline: 2px solid #ff5e14;        /* orange outer ring */
    outline-offset: 2px;               /* gap between dot and border */
}

footer {
    margin: 0;
    padding: 50px 60px 30px 60px; /* balanced spacing */
    background: #F8F6F4;
    width: 100%;
    height: auto; /* let content define height */
    font-family: 'Josefin Sans', sans-serif;
} 

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: nowrap; /* desktop: keep in a row */
    padding: 20px 0;
    gap: 50px;
}

.footer-logo img {
    width: 120px; /* slightly bigger */
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h1 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #222222;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Josefin Sans', sans-serif;
}

.link {
    opacity: 0.85;
    padding: 6px 0;
    line-height: 1.6;
    font-family: 'Josefin Sans', sans-serif;
}

.footer-links a {
    font-size: 14px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #000;
}

.footer-links a:hover {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    padding-left: 3px; /* subtle hover effect */
}

.footer-links h3 {
    display: inline;
    font-weight: bold;
    font-size: 14px;
    margin-left: 6px;
    color: #000;
}

.social-icons a {
    margin-right: 10px;
    font-size: 18px;
    color: #000;
}

.social-icons a:hover {
    color: #0d9e66;
    padding-left: 1px;
}

.footer-divider {
    margin: 30px 0;
    border: 0;
    height: 1px;
    background: #ddd;
}

footer h3 {
    text-align: center;
    font-size: 14px;
    padding-bottom: 10px;
}