/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f9f9ff;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #243B4A;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

header .logo img {
    height: 60px; /* Adjust the height as needed */
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #F9A826;
}

.get-a-quote-btn {
    background-color: #F9A826;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.get-a-quote-btn:hover {
    background-color: #ffb94a;
}

/* Hero Section Styles */
.hero {
    background-image: url('images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(240, 242, 255, 0.5); /* Fallback color with opacity */
    padding: 100px 0;
    position: relative; /* Needed for pseudo-element positioning */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 242, 255, 0.60); /* Semi-transparent background color */
    z-index: 0; /* Ensure it's behind the content */
}

.hero .container {
    position: relative; /* Ensure content is above the pseudo-element */
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero Left */
.hero-left {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-left img {
    width: 400px;
    animation: bounce 2s infinite alternate; /* Apply the animation */
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

.score-box {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.score-box p {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 5px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f0f2ff;
    border: 3px solid #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #4CAF50;
    margin: 0 auto;
}

/* Hero Right */
.hero-right {
    flex: 1;
    padding-left: 20px;
}

.hero-right .subtitle {
    font-size: 0.9rem;
    color: #F9A826;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-right h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.hero-right p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
}

.get-started-btn {
    background-color: #F9A826;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.get-started-btn:hover {
    background-color: #ffb94a;
}

.how-we-work-btn {
    background-color: #fff;
    color: #F9A826;
    border: 1px solid #F9A826;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.how-we-work-btn:hover {
    background-color: #F9A826;
    color: #fff;
}

.trusted-logos {
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
}

.trusted-logos img {
    width: 80px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: zoomInOut 4s infinite alternate; /* Apply the animation */
}

/* Keyframes for zoomInOut animation */
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
.trusted-logos img:hover {
    opacity: 1;
}

/* Services Section Styles */
.services {
    background-color: #E8EAF3;
    padding: 50px 0;
}

.services h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.services-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.service {
    text-align: center;
    transition: transform 0.3s ease
}

.service:hover {
    transform: translateY(-5px);
}

.service h3 {
    transition: color 0.3s ease;
}

.service:hover h3 {
    color: #F9A826;
}

.service img {
    width: 200px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
    height: 200px;
    opacity: 0;
    transform: scale(0); /* Initially scale down to 0 */
    filter: blur(20px); /* Initially apply a blur effect */
    animation: liquidFadeIn 2s ease-out forwards;
}

@keyframes liquidFadeIn {
    0% {
        transform: scale(0);
        opacity: 0;
        filter: blur(20px);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

.service h3 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}

.service p {
    font-size: 1rem;
    color: #555;
}

.view-all-services-btn {
    background-color: #F9A826;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-all-services-btn:hover {
    background-color: #ffb94a;
}

/* Packages Section Styles */
.packages {
    background-color: #fff;
    padding: 50px 0;
}

.packages h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.packages-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Allow packages to wrap to the next line */
}

.package {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 280px; /* Set a fixed width for all packages */
    margin: 10px; /* Add some margin around each package */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.package h3 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.package p, .package li {
    transition: color 0.3s ease;
}

.package:hover p, .package:hover li {
    color: #777;
}

.package p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.package ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.package li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}

.animated-heading {
    animation: colorChange 1s infinite alternate;
}

@keyframes colorChange {
    0% {
        color: #555;
    }
    100% {
        color: #F9A826;
    }
}

/* Original .view-details-btn style for buttons */
.view-details-btn {
    background-color: #F9A826;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Add this for <a> tags */
    display: inline-block; /* Add this for <a> tags */
}

.view-details-btn:hover {
    background-color: #ffb94a;
}

/* About Us Section Styles */
.about-us {
    background-color: #E8EAF3;
    padding: 50px 0;
}

.about-us h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.about-us p {
    font-size: 1rem;
    color: #555;
}

/* Testimonials Section Styles */
.testimonials {
    background-color: #fff;
    padding: 50px 0;
}

.testimonials h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.testimonial {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 600px;
    background-color: #fff;
}

.testimonial p {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

/* Logo Slider Styles */
.logo-slider {
    background-color: #ffffff;
    padding: 50px 0;
}

.logo-slider h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.slider {
    width: 80%;
    margin: 0 auto;
}

.slider img {
    width: 150px;
    margin: 0 20px;
    filter: grayscale(100%); /* Make logos grayscale */
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.slider img:hover {
    filter: grayscale(0%); /* Color on hover */
    opacity: 1;
}


/* Contact Section Styles */
.contact {
    background-color: #fff;
    padding: 50px 0;
}

.contact h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact button[type="submit"] {
    background-color: #F9A826;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button[type="submit"]:hover {
    background-color: #ffb94a;
}

/* Footer Styles */
footer {
    background-color: #243B4A;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* NEW STYLES FOR PACKAGE DETAILS PAGE */
.package-details-section {
    padding: 80px 0;
    background-color: #f9f9ff;
    min-height: calc(100vh - 120px); /* Adjust based on header/footer height */
    display: flex;
    align-items: center; /* Center content vertically */
}

.package-details-section .container {
    text-align: center;
    max-width: 800px;
}

.package-details-title {
    font-size: 3rem;
    font-weight: 700;
    color: #243B4A;
    margin-bottom: 40px;
}

.package-details-content {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: left;
    margin: 0 auto;
}

.package-details-content h2 {
    font-size: 2.2rem;
    color: #F9A826;
    margin-bottom: 25px;
    text-align: center;
}

.package-details-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #444;
}

.package-details-content ul li {
    background-color: #eef1f9;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.package-details-content ul li::before {
    content: '✓'; /* Checkmark icon */
    color: #4CAF50;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.3rem;
}

.package-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: center;
}

.details-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    margin-right: 15px;
}

.back-to-packages-btn {
    background-color: #cccccc;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1.1rem;
}

.back-to-packages-btn:hover {
    background-color: #999999;
    color: #fff;
}


/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
        padding: 0 10px; /* අවශ්‍ය නම් padding එක සකසන්න */
        margin: 0;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 10px;
    }

    header nav a {
        margin-left: 0;
        margin-right: 10px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        margin-bottom: 20px;
    }

    .hero-left img {
        width: 100%;
    }

    .hero-right {
        max-width: 100%; /* Add this line */
        padding-left: 0; /* Adjust as needed */
    }

    .hero-right h1 {
        font-size: 2.5rem;
    }

    .hero-right p {
        font-size: 1rem; /* Adjust font size */
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons button {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service {
        margin-bottom: 20px;
    }

    .packages-container {
        flex-direction: column;
        align-items: center;
    }

    .package {
        width: 80%;
    }

    .trusted-logos {
        justify-content: center;
        flex-wrap: wrap;
    }

    .trusted-logos img {
        margin: 10px;
    }

    .contact form {
        max-width: 100%; /* Full width on smaller screens */
        padding: 0 10px; /* Add some padding */
    }

    .contact input,
    .contact textarea {
        width: 95%;
    }

    /* Responsive for package details page */
    .package-details-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .package-details-content {
        padding: 25px;
    }

    .package-details-content h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .package-details-content ul li, .add-ons-list li {
        font-size: 1rem;
        padding: 10px 15px;
    }
    .add-ons-heading {
        font-size: 1.4rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .details-btn, .back-to-packages-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}