:root {
    --primary-color: #2D3E50;
    --secondary-color: #3498DB;
    --accent-color: #E74C3C;
    --text-color: #444;
    --light-bg: #F4F6F9;
    --white: #fff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Sinhala', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

section {
    padding: 60px 0;
    text-align: center;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #BDE3FF, #8A2BE2);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.15' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zm1 5v1H5zM6 0H5L0 5V6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

.price-text {
    color: red; /* Or use a more specific color code like #FF0000 */
    font-weight: 700; /* Makes the text bold */
    font-size: 1.2rem; /* Makes the text slightly larger */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Base CTA Button styles */
.cta-button {
    background-color: #25D366; /* WhatsApp green */
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Added for more prominence */
}

.cta-button:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* Specific styles for the primary WhatsApp button on hero section */
.whatsapp-main-button {
    font-size: 1.5em; /* Larger for main CTA */
    padding: 20px 40px;
    margin-top: 20px;
}

/* Specific styles for the mid-page WhatsApp button */
.whatsapp-mid-button {
    margin-top: 20px; /* Space it from the text above */
}

/* Tagline below primary WhatsApp button */
.tagline-subtext {
    margin-top: 15px;
    font-size: 1.1em;
    opacity: 0.9;
    color: var(--white); /* Ensures text is visible on the hero section's background */
}

/* Price highlight within intro section */
.price-highlight {
    font-weight: bold;
    color: var(--accent-color); /* Using your defined accent color */
    font-size: 1.3em;
    text-align: center;
    margin-top: 20px;
    display: block; /* Ensures it takes full width for centering */
}


/* Text Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-text {
    opacity: 0; /* Hide elements before animation starts */
    animation: fadeInUp 1s ease-out forwards;
}

.animated-text:nth-of-type(1) {
    animation-delay: 0.5s;
}

.animated-text:nth-of-type(2) {
    animation-delay: 0.7s;
}

/* Feature Cards */
.features-section {
    background-color: var(--white);
    padding: 60px 0; /* Ensure section padding */
}

.features-section .container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--secondary-color);
}

/* Aspiration Section */
.aspiration-section {
    background: linear-gradient(to right, #6A82FB, #FC5C7D);
    color: var(--white);
    padding: 60px 20px;
}

.aspiration-section h2 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
}

.aspiration-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--white);
    margin: 10px auto 0;
    border-radius: 2px;
}

.aspiration-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.aspiration-item {
    font-size: 1.4rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.aspiration-item:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.3);
}

.aspiration-item .icon {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 15px;
    color: var(--white);
}

.final-line {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-bg);
    padding: 60px 0; /* Ensure section padding */
}

.testimonials-section .container {
    display: grid; /* Use grid for layout */
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid var(--primary-color);
}

.testimonial-caption {
    font-style: italic;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
    padding: 60px 0; /* Ensure section padding */
}

.faq-item {
    background-color: var(--light-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
}

/* WhatsApp Button for the final CTA section (similar to cta-button) */
.whatsapp-button {
    background-color: #25D366;
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Consistent shadow */
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

/* Footer */
.footer {
    background-color: #333;
    color: #bbb;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- Pop-up Specific Styles --- */
.whatsapp-popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent overlay */
    z-index: 1000; /* Ensure it's above other content */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    -webkit-backdrop-filter: blur(5px); /* Add a subtle blur effect for modern browsers */
    backdrop-filter: blur(5px);
}

.whatsapp-popup-content {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    max-width: 450px; /* Max width for the pop-up */
    width: 90%; /* Responsive width */
    transform: scale(0.9); /* Initial smaller scale for animation */
    animation: popupFadeIn 0.3s ease-out forwards;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.whatsapp-popup-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.whatsapp-popup-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: var(--accent-color);
}

.popup-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.popup-whatsapp-button {
    font-size: 1.2rem;
    padding: 15px 30px;
    margin-top: 10px; /* Space from text */
}

.popup-small-text {
    font-size: 0.9rem;
    color: #777;
    margin-top: 15px;
}

/* Responsive Design for Pop-up */
@media (max-width: 500px) {
    .whatsapp-popup-content {
        padding: 30px 20px;
    }
    .whatsapp-popup-content h3 {
        font-size: 1.5rem;
    }
    .whatsapp-popup-content p {
        font-size: 1rem;
    }
    .popup-whatsapp-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
}