:root {
    --text: #1f2937;
    --muted: #6b7280;
    --accent-start: #ff7eb3;
    --accent-end: #7c3aed;
}
* { box-sizing: border-box; }
body {
    font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: auto;
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* Changed to solid white */
    min-height: 100vh;
}

.banner-image-container {
    position: relative;
    width: 100%;
    height: auto; /* Allow height to adjust based on content */
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    display: flex; /* Use flexbox to center the image */
    justify-content: center;
    align-items: center;
}
.banner-image {
    max-width: 100%; /* Ensure image does not exceed its natural size or container width */
    width: auto; /* Allow image to take its natural width if smaller than container, or scale down */
    height: auto; /* Maintain aspect ratio */
    /* Removed object-fit: contain to prevent potential shrinking if the container is larger than the image's natural size */
    display: block; /* Remove extra space below image */
    border-radius: 8px;
}

@media (max-width: 768px) {
    .banner-image {
        width: 100%; /* On mobile, ensure it always takes full width of its container */
        height: auto; /* Maintain aspect ratio */
    }
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}
.main-content {
    text-align: center;
    width: fit-content;
    max-width: 1200px; /* Changed from 1024px to 1200px as requested */
    padding: 0;
    position: relative; 
    z-index: 10;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main-content {
        border-radius: 12px;
        padding: 0;
        margin: 15px auto;
    }
}

.cascade-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 700ms cubic-bezier(.22,1,.36,1) forwards;
}

.main-content h1, .main-content h2, .main-content h3 {
    font-family: 'Poppins', 'Nunito', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    background-image: linear-gradient(90deg, #3b82f6, #1e3a8a, #3b82f6); 
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
    background-repeat: no-repeat;
    will-change: background-position;
    animation: gradient-flow 4s linear infinite alternate; 
}
.main-content h1 {
    margin: 0 0 2px 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}
.main-content h2 {
    margin-top: 15px; 
    margin-bottom: 8px;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}
.main-content h3 {
    margin-top: 32px; 
    margin-bottom: 8px;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.main-content .main-logo {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(124, 58, 237, 0.08));
    margin: 4px auto 14px auto;
    display: block;
}
.main-content p {
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    max-width: 60ch;
    margin: 0 auto;
}
.main-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto 14px auto;
    max-width: 60ch;
    text-align: center;
}
.main-content ul li {
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
}
.products-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 44px;
    margin-top: 24px;
}
.product-column {
    text-align: left;
}
.product-column h4 {
    font-family: 'Poppins', 'Nunito', sans-serif;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--text);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.35;
    margin: 0 0 12px 0;
}
.products-container .product-column:nth-child(1) h4:first-of-type {
    text-align: center;
}
.products-container .product-column:nth-child(2) h4:first-of-type {
    text-align: center;
}
.product-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 6px 0;
}
.product-column ul li {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}
.product-column ul li + li {
    margin-top: 6px;
}
.product-column ul + h4 {
    margin-top: 20px;
}
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}
.animated-text .word-animation {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordJump 0.6s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes wordJump {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.gradient-divider {
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end), var(--accent-start));
    background-size: 200% 100%;
    animation: gradient-flow 4s linear infinite;
    margin: 15px auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(255, 126, 179, 0.2);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Specific rule for the gradient divider after "View Templates" */
.main-content p + .gradient-divider {
    margin-top: 20px !important; /* Ensure it has enough space */
    display: block !important; /* Ensure it's not hidden by other display properties */
    visibility: visible !important; /* Ensure it's visible */
    z-index: 100; /* Ensure it's above other elements if there's an overlap */
}

.free-sample-link {
    display: inline-block;
    background-color: #7c3aed;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.free-sample-link:hover {
    background-color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.no-underline-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.3s ease;
}

.no-underline-link:hover {
    color: var(--text);
}

.view-templates-button {
    display: inline-block;
    background-color: #3b82f6; /* A nice blue color */
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.view-templates-button:hover {
    background-color: #1e3a8a; /* Darker blue on hover */
    transform: translateY(-3px); /* Move up slightly */
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); /* More pronounced shadow */
}

/* Custom styles for the half-circle and its animation from homepage-banner.php */

/* Define the 'bob' animation */
@keyframes bob {
    0%, 100% {
        /* Start and end at the original position */
        transform: translateY(0);
    }
    50% {
        /* Move up by 15px at the midpoint */
        transform: translateY(-15px);
    }
}

/* Define the 'moveGradient' animation */
@keyframes moveGradient {
    0%, 100% {
        /* Start and end at the top position */
        background-position: 0% 0%;
    }
    50% {
        /* Move to the bottom position at the midpoint */
        background-position: 0% 100%;
    }
}

/* New animation for particles */
@keyframes floatParticle {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    100% {
        /* Move up and fade out */
        transform: translateY(-220px); /* Move just past the top */
        opacity: 0;
    }
}

.half-circle {
    /* Make the element fixed to the top of the viewport */
    position: fixed;
    /* MODIFIED: Changed top from 0 to 100px */
    top: 100px;
    left: 0;
    z-index: -1; /* Place it behind other content */
    /* Add overflow: hidden to contain the particles */
    overflow: hidden;

    /* Set the size: 100% width and a fixed 200px height */
    width: 100%;
    height: 200px; /* Set the height directly */

    /* Apply the top-to-bottom light blue gradient */
    /* Updated colors based on the provided image */
    background-image: linear-gradient(
        to bottom, 
        #e6f7ff, /* Lighter Blue (from image) */
        #a8daff  /* Richer Blue (from image) */
    );

    /* Clip the shape into a curve (bottom half) */
    /* This syntax (H-radius / V-radius) forces a smooth elliptical curve */
    /* H-radii (50%) are based on width, V-radii (200px) are based on height */
    /* This ensures the curve goes from edge to edge and is 200px tall */
    border-radius: 0 0 50% 50% / 0 0 200px 200px;

    /* Add a shadow */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    /* Make the background gradient twice as tall so it has room to move */
    background-size: 100% 200%;

    /* Apply both animations, separated by a comma */
    /* The 'bob' animation moves the element */
    /* The 'moveGradient' animation moves the background */
    animation: 
        bob 4s ease-in-out infinite,
        moveGradient 3s ease-in-out infinite;
}

/* Container for the particles inside the half-circle */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Don't intercept mouse */
    z-index: 1; /* Make sure it's above the gradient but below other content (if any) */
}

/* Base style for a single particle */
.particle {
    position: absolute;
    background: rgb(255, 255, 255); /* Fully white, was rgba(255, 255, 255, 0.8) */
    border-radius: 50%;
    /* Start from the bottom, inside the element */
    bottom: 0;
    opacity: 0; /* Start invisible */
    
    /* Apply the animation */
    animation-name: floatParticle;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* --- Create variation for each particle --- */
/* This provides different sizes, speeds, and delays */

.particle:nth-child(1) {
    width: 5px; /* Was 3px */
    height: 5px; /* Was 3px */
    left: 10%;
    animation-duration: 7s;
    animation-delay: -1s; /* Was 0s */
}

.particle:nth-child(2) {
    width: 4px; /* Was 2px */
    height: 4px; /* Was 2px */
    left: 20%;
    animation-duration: 5s;
    animation-delay: -3s; /* Was 1.5s */
}

.particle:nth-child(3) {
    width: 6px; /* Was 4px */
    height: 6px; /* Was 4px */
    left: 30%;
    animation-duration: 8s;
    animation-delay: -2s; /* Was 0.5s */
}

.particle:nth-child(4) {
    width: 4px; /* Was 2px */
    height: 4px; /* Was 2px */
    left: 40%;
    animation-duration: 6s;
    animation-delay: -0.5s; /* Was 3s */
}

.particle:nth-child(5) {
    width: 5px; /* Was 3px */
    height: 5px; /* Was 3px */
    left: 50%;
    animation-duration: 7s;
    animation-delay: -4s; /* Was 2s */
}

.particle:nth-child(6) {
    width: 4px; /* Was 2px */
    height: 4px; /* Was 2px */
    left: 60%;
    animation-duration: 9s;
    animation-delay: -6s; /* Was 1s */
}

.particle:nth-child(7) {
    width: 6px; /* Was 4px */
    height: 6px; /* Was 4px */
    left: 70%;
    animation-duration: 5s;
    animation-delay: -1.2s; /* Was 2.5s */
}

.particle:nth-child(8) {
    width: 4px; /* Was 2px */
    height: 4px; /* Was 2px */
    left: 80%;
    animation-duration: 8s;
    animation-delay: -2.3s; /* Was 4s */
}

.particle:nth-child(9) {
    width: 5px; /* Was 3px */
    height: 5px; /* Was 3px */
    left: 90%;
    animation-duration: 6s;
    animation-delay: -5.5s; /* Was 0.2s */
}

.particle:nth-child(10) {
    width: 4px; /* Was 2px */
    height: 4px; /* Was 2px */
    left: 25%;
    animation-duration: 7s;
    animation-delay: -3.2s; /* Was 3.5s */
}

.particle:nth-child(11) {
    width: 5px; /* Was 3px */
    height: 5px; /* Was 3px */
    left: 75%;
    animation-duration: 8s;
    animation-delay: -4.7s; /* Was 1.8s */
}

.particle:nth-child(12) {
    width: 4px; /* Was 2px */
    height: 4px; /* Was 2px */
    left: 55%;
    animation-duration: 6s;
    animation-delay: -0.8s; /* Was 2.8s */
}
