
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    --primary-color:#86b817;
    --secondary-color:#fe8800;
    --light:#f5f5f5;
    --dark:#14141f;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: black !important;
}


/* ========HERO======== */

.hero { 
    height: 100vh;
    max-width: 100%;
    color: #ffffff;
    text-align: center;
    padding: 2em 3em;
    z-index: 1;
}
.hero::before {
    content: "";
    background-image: linear-gradient(to bottom, rgba(20, 20, 31, 0), rgb(0, 0, 0,1)),url('../cover.jpeg');
    background-size: cover;
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    filter: brightness(60%);
    z-index: -1;
}

.nav-title{
    font-size: 1.2em !important;
    font-weight: bold;
}

.navbar {
    position: fixed;
    width: 100%;
    z-index: 2;

}

.navbar-brand,
.nav-link {
    color: #ffffff !important;
}

.nav-link{
    font-size: 1.2em !important;
    margin-left: 20px;
}

.hero-content{
    position: relative;
    margin-top: 100px;
    z-index: 3;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
}

.explore-btn {
    width: 50vw;
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px !important;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    z-index: 5;
    font-weight: bold !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.explore-btn:hover i{
    transform: translateX(5px);
}

.explore-btn i {
    transition: transform 0.3s ease;
    margin-left: 5px;
}

/* =======CONTAINER========= */

.container {
    position: relative;
    margin-top: -200px !important;
    padding-bottom: 50px;
    z-index: 5;
    padding: 0 3em;
}

.container section{
    padding: 0 2em;
}

h2, p{
    color: var(--light);
    padding: 1em 0;
    text-align: center;
}

/* =========WHY KERALA========== */

#why-kerala{
    margin-top:50px;
}

#why_kerala_img{
    display: block;
    margin-top: 30px;
    max-width: 100%;
    height: 250px;
    margin-left: 0;
    margin-right: 0;
}

#why_kerala_img:hover{
    margin-top: 30px;
    max-width: 100%;
    max-height: 100%;
}

h4{
    color: var(--light);
    padding: 0.5em 0;
}

/* =========SERVICES========= */

/* .card-cont{
    margin: 1.5em;
} */

#services {
    margin: 0 0 3em 0;
}


#services .container{
    padding-top: 13em !important;
}


.services-card {
    padding: 20px;
    text-align: center;
    color: white;
}
        
/* .services-card:before {
    content: "";
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(-45deg, #60efff 0%, #00ff87 100% );
    transform: translate3d(0px, 20px, 0) scale(0.95);
    filter: blur(20px);
    opacity: var(0.7);
    transition: opacity 0.3s;
    border-radius: inherit;
}


.services-card::after {
    content: "";
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: inherit;
    border-radius: inherit;
} */
   
/* ========PACKAGES========= */

#packages h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--light); /* Adjust text color as needed */
}

.carousel-item{
    overflow: hidden;
}

.carousel-item .d-block{
    height:250px;
    object-fit: fill;
    border-radius: 10px;
}

.carousel-caption {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(20, 20, 31, 0.8);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}


.carousel-caption h3{
    margin-bottom: 10px;
    margin-top: 30px;
}

.carousel-item:hover .carousel-caption {
    opacity: 1;
}

.explore-package-btn {
    position: absolute;
    bottom: 30px;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-item:hover .explore-package-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(-20px);
}

/* =========CONATACT US=========== */

#contact h2{
    margin: 1.5em 0;
}

.input-field{
    background-color: black!important;
    border: none !important;
    border-bottom: 2px solid var(--dark)!important;
}

textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    resize: none; /* Disable resizing by the user */
    overflow: hidden; /* Hide overflow content */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
  }

.marginr-3{
    margin-right: 3em!important;
}

.sub-btn{
    background-color: var(--light) !important;
    color: black;
}

.sub-btn:hover{
    background-color: var(--primary-color) !important;
    color: var(--light) !important;
}

#social{
    background-color: #262626;
}

footer{
    margin-top: 5em;
    background-color: #111111;
}

.footer-links {
    padding: 1rem 0 !important;
  }
  
  .footer-links .col-md-3,
  .footer-links .col-md-2,
  .footer-links .col-md-4 {
    margin-bottom: 1rem o !important;
  }
  
  .footer-links h6 {
    color: var(--light); /* Heading color */
  }
  
  .footer-links p {
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
  }
  
  /* Copyright Section */
  .text-center.p-4 {
    background-color: rgba(0, 0, 0, 0.05); /* Light background color */
    color: #666; /* Text color */
  }
  
  .text-center.p-4 a {
    color: #333; /* Link color */
  }
  
  .text-center.p-4 a:hover {
    text-decoration: none;
  }

  #gallery{
    margin-bottom: 1.5em;
  }

  .masonry-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px; /* Adjust as needed */
    margin-right: -10px; /* Adjust as needed */
}

/* Add padding between images */
.masonry-item {
    width: 100%;
    margin-bottom: 10px; /* Margin between rows */
    padding: 10px; /* Padding around each image */
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 576px) {
    .masonry-item {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .masonry-item {
        width: 33.3333%;
    }
}

@media (min-width:992px){

.hero{
    padding: 2em 10em;
}

    .navbar-nav .nav-link {
        position: relative;
        color: #333; /* Default link color */
        text-decoration: none;
        padding-bottom: 3px; /* Space for the underline */
        transition: color 0.3s ease; /* Smooth color transition */
      }
      
      .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px; /* Height of the underline */
        bottom: 0;
        left: 0;
        background-color: #ffffff; /* Underline color */
        transform: scaleX(0); /* Start with no width */
        transform-origin: bottom right;
        transition: transform 0.3s ease; /* Smooth animation */
      }
      
      .navbar-nav .nav-link:hover::before {
        transform: scaleX(1); /* Expand the underline on hover */
        transform-origin: bottom left;
      }
      
      /* Optional: Adjust link color on hover */
      .navbar-nav .nav-link:hover {
        color: #ffffff; /* Change link color on hover */
      }
      

    .explore-btn{
        width: 20vw;
    }

    .explore-btn i{
        transition: transform 0.3s ease;
    }

    .explore-btn:hover i{
        transform: translateX(5px);
    }

    .hero-content{
        margin-top:170px;
    }

    .container{
        margin-top: 0 !important;
    }

    #why-kerala{
        display: flex;
        width: 100%;
        margin-bottom: 4em;
        margin-top: 4em;
    }
    #why-kerala .text{
        width: 40%;
        margin-top: 25px;
    }

    .img-container{
        width: 600px !important;
        height: 350px;
        overflow: hidden;
        position: relative;
        margin-left: 3em;
        margin-top: 1.5em;
        border-radius: 10px;
    }

    #why_kerala_img {
        max-width: 100%; /* Ensure image doesn't overflow container */
        height: 100%; /* Maintain container height */
        transition: transform 0.3s ease; /* Smooth transition on transform */
        position: absolute; /* Position image relative to container */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 10px;
        object-fit: cover; /* Maintain aspect ratio and cover container */
        filter: brightness(90%);
        margin-top: 0 !important;
    }
    
    #why_kerala_img:hover {
        border-radius: 10px;
        transform: scale(1.1); /* Zoom effect on hover */
    }

    #services .container{
        padding: 0 !important;
    }

    .services-carousel {
        display: none;
    }
    
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .services-grid .col-lg-3 {
        display: flex;
        justify-content: center;
    }
    
    .services-grid .card-cont {
        margin: 1.5em;
    }

    .carousel-item .d-block{
        height:600px;
        object-fit: fill;
        border-radius: 10px;
    }

    .carousel-caption h3{
        margin-bottom: 10px;
        margin-top: 50px;
    }

    .join__shadow {
        position: absolute;
        top: 0;
        width: 5%; /* Adjust the width to control the gradient spread */
        height: 100%;
        background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
        z-index: 2; /* Ensure the gradient is above the image */
      }
      
      .join__shadow.right {
        right: 0;
        left: auto;
        background: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
      }  
    

    .explore-package-btn{
        bottom: 70px;
    }


    .sub-btn{
        align-self: center;
    }

    #social div{
        padding: 0 13em;
    }
    .masonry-item {
        width: 25%;
    }

}

.element{
    opacity: 0;
}

.fade-in {
    opacity: 0;
    animation: fadeInAnimation 4s ease forwards; /* Adjust timing as needed */
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInLeftAnimation {
    0% {
        opacity: 0;
        transform: translateX(-50px); /* Move left initially */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* Move to original position */
    }
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeftAnimation 2s ease forwards; /* Adjust timing as needed */
}

@keyframes zoomInAnimation {
    0% {
        opacity: 0;
        transform: scale(0.8); /* Start smaller */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* Full size */
    }
}

.zoom-in {
    opacity: 0;
    animation: zoomInAnimation 2s ease forwards; /* Adjust timing as needed */
}

@keyframes fadeInRightAnimation {
    0% {
        opacity: 0;
        transform: translateX(50px); /* Move left initially */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* Move to original position */
    }
}

.fade-in-right{
    opacity: 0;
    animation: fadeInRightAnimation 2s ease forwards;
}


@keyframes fadeInUpAnimation {
    0% {
        opacity: 0;
        transform: translateY(50px); /* Move left initially */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Move to original position */
    }
}

.fade-in-up{
    opacity: 0;
    animation: fadeInUpAnimation 2s ease forwards;
}