/* Base Styles */
:root {
    --primary: #F2A640; /* Orange from logo */
    --primary-dark: #E08A20; /* Darker orange */
    --primary-light: #FFD180; /* Lighter orange */
    --gradient-start: #F2A640; /* Start of gradient from logo */
    --gradient-end: #FFCC80; /* End of gradient from logo */
    --text: #222222; /* Dark text color */
    --text-light: #555555; /* Lighter text color */
    --light: #FFF9F0; /* Very light orange/cream */
    --white: #FFFFFF; /* White */
    --black: #000000; /* Black */
    --accent: #3D2314; /* Dark brown accent */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: none; /* Lighter gradient from coral to light orange */
    background-size: cover; /* Ensure the gradient covers the entire viewport */
    background-repeat: no-repeat; /* Prevent tiling */
    overflow-x: hidden;
}

/* Intro Animation */
.intro {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: url('criolloLoadingImage.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center; /* Ensures text stays centered */
}

.intro-logo-container {
    margin-bottom: 20px; /* Adds spacing between logo and tagline */
}

.intro-tagline {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px; /* Adds spacing before loader */
}

.intro-loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Ensure the overlay doesn't interfere */
.intro::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    top: 0;
    left: 0;
    z-index: -1; /* Keeps the overlay behind content */
}


.intro-logo-container {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.intro-logo-img {
    width: 200px;
    height: auto;
}



.intro-loader {
    width: 200px;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.5s;
}

.intro-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--text);
    animation: loading 2s ease forwards 1.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes loading {
    to {
        width: 100%;
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

/* Header */
header {
    background-color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 4rem;
}

.nav-links i {
    font-size: 24px;
    color: var(--text);
}

.nav-links i:hover {
    color: var(--primary-dark);
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('herobackground.jpg') no-repeat left center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark layer with 30% opacity */
    z-index: 1; /* Ensure it appears above the image */
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensure text appears above the dark layer */
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-description {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
}

.btn {
    display: inline-block;
    background-color: var(--text);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 60%;
    transform: translateY(-50%);
    width: 40%;
    max-width: 500px;
    opacity: 0;
}

.hero-image img {
    width: 300px; /* Match the width of the product image */
    height: 300px; /* Match the height of the product image */
    object-fit: cover; /* Ensure the image fits within the defined size */
    border-radius: 5%; /* Match the rounded corners of the product image */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2)); /* Keep the drop shadow */
}

/* Product Section */
.product {
    background-color: #F5F5DC; /* Light beige background */
    padding: 60px 0; /* Adjust padding */
    text-align: center; /* Center align text */
    
}

.product-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    align-items: center; /* Center vertically */
    justify-content: space-between; /* Space out items horizontally */
    gap: 40px; /* Add spacing between image and details */
}

.product-details {
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center-align the text content */
    margin: 0 auto; /* Center the text block horizontally */
    gap: 10px; /* Add spacing between the text and button */
}

.product-image {
    display: flex;
    justify-content: flex-end; /* Keep images aligned to the right */
}

.product-image img {
    width: 300px; /* Set a fixed width */
    height: 300px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image fits within the defined size */
    transition: opacity 1s ease-in-out; /* Smooth fade-in and fade-out effect */
    opacity: 1; /* Ensure the image is visible */
    position: relative; /* Remove absolute positioning */
    border-radius: 5%; /* Rounded corners */
}

.product-image img.active {
    opacity: 1; /* Show the active image */
    position: relative; /* Ensure the active image is visible */
}

.product-image img[src="productTwo.jpg"] {
    object-position: 50% 25%; /* Horizontal 50% (center), Vertical 80% */
    object-fit: cover; /* Ensure the image fills the container */
}

.product-image img[src="productOne.jpg"] {
    height: 400px; /* Set a taller height for productOne.jpg */
    object-fit: cover; /* Ensure the image fits within the defined size */
}

.product-details {
    max-width: 400px; /* Limit the width of product details */
}

.product-name {
    font-size: 2rem; /* Adjust font size */
    margin-bottom: 10px; /* Spacing below the name */
}

.product-description {
    margin-bottom: 20px; /* Spacing below the description */
}

.product-features {
    display: flex;
    /*flex-wrap: wrap;*/
    flex-direction: row;
    justify-content: space-around; /* Space evenly */
    margin-bottom: 20px; /* Spacing below features */
}

/* New feature box styles */
.feature-box {
    background: rgba(236, 236, 236, 0.5); /* Translucent white background */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border-radius: 15px; /* Rounded corners for the container */
    padding: 20px; /* Add padding inside the container */
    margin: 15px; /* Add margin around the container */
    width: 200px; /* Make the container larger than the icons */
    height: 200x; /* Ensure the container is larger than the icons */
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}

.feature {
    display: flex;
    align-items: center; /* Center icons and text */
    border-radius: 10px; /* Add curved edges */
    overflow: hidden; /* Ensure the image stays within the curved edges */
}

.feature-icon {
    width: 200px; /* Set the width of the icons */
    height: 200px; /* Set the height of the icons */
    object-fit: contain; /* Ensure the images fit within the defined size */
    
}

.product-price {
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 30px;
}

/* Order Form Section */
.order-form {
    display: none; /* Completely remove it from the layout */
    opacity: 0; /* Ensure it's invisible */
    height: 0; /* Prevent it from taking up vertical space */
    overflow: hidden; /* Hide any overflowing content */
    padding: 0; /* Remove padding when hidden */
    margin: 0; /* Remove any margins */
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in effect */
}

.order-form.show {
    display: flex; /* Make it visible */
    opacity: 1; /* Fully visible */
    height: auto; /* Allow it to expand */
    padding: 100px 0; /* Add padding when visible */
}


.section-title {
    text-align: center; /* Center-align the "Order Now" text */
    margin-bottom: 20px; /* Add spacing below the title */
}

.section-title h2 {
    font-size: 2rem; /* Adjust font size for the title */
    color: var(--text); /* Use the text color */
    font-weight: 600; /* Make the text bold */
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background-color: var(--white);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-col {
    flex: 1;
}

.map-container {
    height: 300px;
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: var(--primary-dark);
}

.quantity-input {
    width: 60px;
    text-align: center;
    margin: 0 10px;
}

.price-summary {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    margin-top: 10px;
}

.submit-btn {
    background-color: var(--text);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Style for the region selector */
#region {
    width: 100%; /* Make it responsive */
    padding: 10px; /* Add padding for better usability */
    font-size: 1rem; /* Match the font size with the rest of the form */
    border: 2px solid var(--primary-dark); /* Add a border matching the theme */
    border-radius: 8px; /* Rounded corners */
    background-color: var(--background-light); /* Match the background color */
    color: var(--text); /* Match the text color */
    outline: none; /* Remove default outline */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover/focus */
    appearance: none; /* Remove default dropdown arrow for consistent styling */
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333333"%3E%3Cpath d="M7 10l5 5 5-5z"/%3E%3C/svg%3E'); /* Custom dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* Change border color on focus */
#region:focus {
    border-color: var(--primary); /* Highlight border on focus */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

/* Style for the warning message */
.warning-message {
    font-size: 0.9rem;
    margin-top: 5px;
    color: red;
    display: none; /* Hidden by default */
}

/* Footer */
footer {
    background-color: var(--text);
    color: var(--light);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 0.9rem;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.success-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-title {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text);
}

.close-btn {
    background-color: var(--text);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #333;
}

/* Responsive Design */
@media (max-width: 576px) {
    .logo img {
        height: 80px; /* Adjust the logo height for mobile */
        width: auto; /* Maintain aspect ratio */
    }

    .nav-links i {
        font-size: 40px; /* Adjust icon size for mobile */
    }
}


@media (max-width: 992px) {
    .hero-content {
        width: 60%;
    }

    .hero-image {
        width: 35%;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
    }

    .hero-content {
        width: 90%;
        padding-left: 0;
        margin-bottom: 50px;
    }

    .hero-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 70%;
        margin: 0 auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .product-container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center-align text */
    }

    .product-image img {
        width: 100%; /* Make the image responsive */
        max-width: 300px; /* Limit the maximum width */
        height: auto; /* Maintain aspect ratio */
    }
}

@media (max-width: 576px) {
    #note{
        width:100% !important;
    }
    header{
        position: relative !important;
    }
    .product-container{
        display:flex !important;
        flex-direction:column !important;
    }
   .product-container {
    .intro-logo-img {
        width: 150px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .product-name {
        font-size: 1.8rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .form-container {
        padding: 30px 20px;
    }
}
