@view-transition{
    navigation:auto;
}

::view-transition-group(*){
    animation-duration: 1s;
}

::view-transition-old(root) {
    animation: slide-out-to-left 1s forwards;
}

::view-transition-new(root) {
    animation: slide-out-to-right 1s forwards;
}

@keyframes slide-out-to-left{
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes slide-out-to-right{
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0; /* Light gray background for the entire page */
}

.titulo {
    padding: 15px 20px; /* Adjust padding for smaller screens */
    color: #446518;
    background: #d1e4c0;
    border-radius: 30px; /* Adjust border-radius for smaller screens */
    font-size: 1.5em; /* Adjust font size for smaller screens */
    text-align: center; /* Center the title on smaller screens */
    margin-bottom: 20px; /* Add some margin below the title */
    opacity: 0; /* Initial state for animation */
    transform: translateY(-20px); /* Initial state for animation */
    animation: fadeInSlideDown 0.6s ease-out forwards;
}

.page-background {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px; /* Add some padding around the main container on smaller screens */
}

.main-container {
    width: 100%; /* Occupy full width on smaller screens */
    max-width: 600px; /* Limit maximum width */
    background-color: #446518; /* Dark green background */
    border-radius: 15px; /* Rounded corners for the main container */
    display: flex;
    flex-direction: column; /* Stack content vertically on smaller screens */
    align-items: center;
    padding: 20px;
    position: relative; /* For decorative elements positioning */
    overflow: hidden; /* Ensure nothing spills out */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    opacity: 0; /* Initial state for animation */
    animation: fadeIn 0.4s ease-out forwards;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes dotFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { transform: translateX(20px); opacity: 0; }
    to { opacity: 1; transform: translateX(0); }
}

.decorative-dots {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%); /* Center dots on smaller screens */
    display: flex;
    gap: 8px; /* Space between dots */
}

.decorative-dots span {
    display: block;
    width: 8px;
    height: 8px;
    background-color: #d1e4c0; /* Light green for dots */
    border-radius: 50%;
    opacity: 0; /* Initial state for animation */
    transform: translateY(-10px); /* Initial state for animation */
    animation: dotFadeIn 0.4s ease-out forwards; /* Applied with individual delays in HTML */
}

.content-wrapper {
    display: flex;
    flex-direction: column; /* Stack image and text on smaller screens */
    align-items: center;
    gap: 20px; /* Space between image and text */
    width: 100%;
    padding-top: 30px; /* Space for the dots */
    padding-bottom: 20px; /* Add some padding at the bottom */
}

/* Image Circle Section */
.image-circle-section {
    flex-shrink: 0; /* Prevent shrinking */
    width: 200px; /* Smaller circle for mobile */
    height: 200px; /* Smaller circle for mobile */
    border-radius: 50%;
    background-color: #d1e4c0; /* Light green background for the circle */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optional: add a subtle shadow */
    margin-left: 0; /* Reset left margin for mobile */
    opacity: 0; /* Initial state for animation */
    transform: scale(0.8); /* Initial state for animation */
    animation: scaleIn 0.5s ease-out forwards;
}

.circle-border {
    width: 190px; /* Inner circle diameter */
    height: 190px;
    border-radius: 50%;
    border: 3px solid #ffffff; /* White border */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide parts of images outside the circle */
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    grid-template-rows: repeat(2, 1fr); /* 2 rows */
    width: 100%;
    height: 100%;
    position: relative;
    /* This makes the grid itself perfectly circular */
    border-radius: 50%;
    overflow: hidden; /* Ensure images within grid are clipped */
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
    display: block;
    opacity: 0; /* Initial state for animation */
    animation: fadeIn 0.3s ease-out forwards; /* Subtle fade-in for grid images, with delays in HTML */
}

/* Styling for the white lines between grid images */
.grid-image.top-left {
    border-bottom: 1.5px solid white;
    border-right: 1.5px solid white;
    animation-delay: 0.1s; /* HTML inline delay will override if present, or work with this */
}

.grid-image.top-right {
    border-bottom: 1.5px solid white;
    border-left: 1.5px solid white;
    animation-delay: 0.2s;
}

.grid-image.bottom-left {
    border-top: 1.5px solid white;
    border-right: 1.5px solid white;
    animation-delay: 0.3s;
}

.grid-image.bottom-right {
    border-top: 1.5px solid white;
    border-left: 1.5px solid white;
    animation-delay: 0.4s;
}

.center-avocado-image {
    position: absolute;
    width: 80px; /* Kept your change for mobile */
    height: 80px; /* Kept your change for mobile */
    object-fit: cover;
    border-radius: 50%;
    background-color: #d1e4c0;
    z-index: 10;
    top: 28%;
    left: 28%;
    transform: translate(-50%, -50%);
    border: 7px solid white; /* Kept your change for mobile */
    opacity: 0; /* Initial state for animation */
    transform: scale(0.7); /* Initial state for animation */
    animation: scaleIn 0.5s ease-out 0.2s forwards; /* Delay for center image */
}

/* Text Content Section */
.text-content-section {
    flex-grow: 1; /* Allow it to take remaining space */
    color: #d1e4c0; /* Light green text color */
    padding-right: 0; /* Reset right padding */
    text-align: center; /* Center text on smaller screens */
    opacity: 0; /* Initial state for animation */
    transform: translateX(20px); /* Initial state for animation */
    animation: slideLeft 0.6s ease-out 0.3s forwards; /* Slide in from left */
}

.text-content-section h1 {
    font-size: 2em; /* Adjust font size for smaller screens */
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    left: 0; /* Reset left position */
}

.text-content-section ul {
    list-style: none; /* Remove default bullet points */
    padding-left: 0;
}

.text-content-section li {
    font-size: 1em; /* Adjust font size for smaller screens */
    font-weight: 400;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center list items */
    opacity: 0; /* Initial state for animation */
    transform: translateX(15px); /* Initial state for animation */
    animation: slideLeft 0.5s ease-out forwards; /* Applied with individual delays in HTML */
}

.bullet-point {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #d1e4c0; /* Light green bullet */
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

/* Media Query for Tablets and Larger Screens */
@media (min-width: 768px) {
    .main-container {
        max-width: 900px;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        animation: fadeIn 0.5s ease-out forwards; /* Re-apply animation for larger screens if needed */
    }

    .decorative-dots {
        top: 25px;
        left: 450px;
        transform: translateX(0);
        gap: 15px;
    }

    .decorative-dots span {
        width: 15px;
        height: 15px;
        animation: dotFadeIn 0.5s ease-out forwards; /* Re-apply animation for larger screens if needed */
    }

    .content-wrapper {
        flex-direction: row; /* Display image and text side by side */
        align-items: center;
        gap: 40px;
        padding-top: 50px;
        padding-bottom: 0;
    }

    .image-circle-section {
        width: 350px;
        height: 350px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        animation: scaleIn 0.6s ease-out forwards; /* Re-apply animation for larger screens if needed */
    }

    .circle-border {
        width: 330px;
        height: 330px;
        border: 5px solid #ffffff;
    }

    .grid-image.top-left {
        border-bottom: 3px solid white;
        border-right: 3px solid white;
        animation-delay: 0.1s;
        animation: fadeIn 0.4s ease-out forwards;
    }

    .grid-image.top-right {
        border-bottom: 3px solid white;
        border-left: 3px solid white;
        animation-delay: 0.2s;
        animation: fadeIn 0.4s ease-out forwards;
    }

    .grid-image.bottom-left {
        border-top: 3px solid white;
        border-right: 3px solid white;
        animation-delay: 0.3s;
        animation: fadeIn 0.4s ease-out forwards;
    }

    .grid-image.bottom-right {
        border-top: 3px solid white;
        border-left: 3px solid white;
        animation-delay: 0.4s;
        animation: fadeIn 0.4s ease-out forwards;
    }

    .center-avocado-image {
        top: 34%;
        left: 34%;
        width: 100px; /* Default desktop size */
        height: 100px; /* Default desktop size */
        animation: scaleIn 0.7s ease-out 0.2s forwards; /* Re-apply animation for larger screens if needed */
    }

    .text-content-section {
        text-align: left; /* Align text to the left on larger screens */
        padding-right: 20px;
        animation: slideLeft 0.7s ease-out 0.3s forwards; /* Re-apply animation for larger screens if needed */
    }

    .text-content-section h1 {
        font-size: 3em;
        font-weight: 700;
        margin-bottom: 20px;
        left: -10px;
        text-align: left; /* Ensure left alignment */
        animation: fadeInSlideDown 0.7s ease-out forwards; /* Re-apply animation for larger screens if needed */
    }

    .text-content-section li {
        font-size: 1.2em;
        margin-bottom: 10px;
        justify-content: flex-start; /* Align list items to the left */
        animation: slideLeft 0.6s ease-out forwards; /* Re-apply animation for larger screens if needed */
    }

    .bullet-point {
        width: 8px;
        height: 8px;
        margin-right: 15px;
        top: -2px;
    }

    .titulo {
        font-size: 3em;
        border-radius: 60px;
        padding: 24px;
        text-align: left; /* Align title to the left on larger screens */
        animation: fadeInSlideDown 0.7s ease-out forwards; /* Re-apply animation for larger screens if needed */
    }
}
