@font-face {
    font-family: "Inter";
    src: url("fonts/InterVariable.ttf") format("truetype");
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    background-color: #FBF9F6;
    margin: 0;
    padding: 0;
    font-family: "Inter", Arial, sans-serif;
    overflow-x: hidden;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 0.6s ease-out;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 64px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.logo {
    padding: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 42px;
    width: auto;
    max-width: 100%;
    transition: transform 0.6s ease;
}

.logo img:hover {
    transform: rotate(360deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links li a {
    text-decoration: none;
    color: #36454F;
    font-weight: 400;
    font-size: clamp(13px, 2vw, 15px);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #8A9A5B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover {
    color: #8A9A5B;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* ===== MAIN CONTAINER ===== */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.hero {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 243px;
    height: auto;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

.hero-text {
    text-align: center;
    width: 100%;
    max-width: 800px;
    line-height: 1.1;
}

.hero-title {
    font-weight: 700;
    color: #8A9A5B;
    margin: 0 0 10px 0;
    padding: 0 10px;
    font-size: clamp(24px, 5vw, 40px);
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-subtitle {
    font-weight: 700;
    color: #36454F;
    margin: 0;
    padding: 0 10px;
    font-size: clamp(24px, 5vw, 40px);
    animation: slideInRight 0.8s ease-out 0.6s both;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.cta-button {
    background-color: #E8D1C5;
    color: #36454F;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: clamp(14px, 2.5vw, 16px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.cta-button:hover {
    background-color: #d9c2b6;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    animation: pulse 0.6s ease-in-out infinite;
}

/* ===== TYPES OF SOAPS SECTION ===== */
.typesofsoaps {
    width: 100%;
    max-width: 1200px;
    padding: 60px 0;
    margin: 0 auto;
}

.soap-type {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    gap: 30px;
}

.soap-type>div {
    flex: 1 1 280px;
    max-width: 350px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleIn 0.6s ease-out both;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Staggered animation delay for each soap card */
.soap-type>div:nth-child(1) {
    animation-delay: 0.1s;
}

.soap-type>div:nth-child(2) {
    animation-delay: 0.2s;
}

.soap-type>div:nth-child(3) {
    animation-delay: 0.3s;
}

.soap-type>div:nth-child(4) {
    animation-delay: 0.4s;
}

.soap-type>div:nth-child(5) {
    animation-delay: 0.5s;
}

.soap-type>div:nth-child(6) {
    animation-delay: 0.6s;
}

.soap-type>div:hover {
    transform: translateY(-10px);
}

.soap-type img {
    width: 100%;
    max-width: 307px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.soap-type>div:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.soap-type h3 {
    font-weight: 600;
    color: #8A9A5B;
    text-align: center;
    font-size: clamp(18px, 3vw, 20px);
    margin: 15px 0 10px 0;
    transition: color 0.3s ease;
}

.soap-type>div:hover h3 {
    color: #6d7a48;
}

.soap-type p {
    font-weight: 500;
    color: #36454F;
    text-align: center;
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.5;
    margin: 5px 0;
    padding: 0 10px;
}

/* ===== INGREDIENTS SECTION ===== */
.ingredients {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 60px 20px;
    margin: 0 auto;
}

.ingredients-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 200px;
    max-width: 300px;
    gap: 15px;
    animation: fadeIn 0.8s ease-out both;
    transition: transform 0.3s ease;
}

.ingredients-item:nth-child(1) {
    animation-delay: 0.2s;
}

.ingredients-item:nth-child(2) {
    animation-delay: 0.4s;
}

.ingredients-item:nth-child(3) {
    animation-delay: 0.6s;
}

.ingredients-item:hover {
    transform: translateY(-5px);
}

.leaf-icon,
.heart-icon,
.handmade-icon {
    filter: invert(62%) sepia(16%) saturate(1106%) hue-rotate(38deg) brightness(90%) contrast(89%);
    transition: all 0.3s ease;
}

.ingredients-item:hover .leaf-icon,
.ingredients-item:hover .heart-icon,
.ingredients-item:hover .handmade-icon {
    animation: bounce 0.6s ease-in-out;
}

.ingredients-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.ingredients-item h3 {
    font-weight: 600;
    color: #36454F;
    text-align: center;
    font-size: clamp(18px, 3vw, 22px);
    margin: 0;
}

/* ===== ORDER SECTION ===== */
.order-section {
    width: 100%;
    max-width: 800px;
    padding: 60px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.order-content h2 {
    font-weight: 700;
    color: #8A9A5B;
    margin: 0;
    padding: 0 10px;
    font-size: clamp(24px, 4vw, 32px);
}

.order-content p {
    width: 100%;
    max-width: 500px;
    color: #36454F;
    font-weight: 500;
    font-size: clamp(16px, 3vw, 22px);
    padding: 10px 20px;
    margin: 0 auto;
    line-height: 1.4;
}

.cta-button-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: clamp(14px, 2.5vw, 16px);
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

.cta-button-whatsapp:hover {
    background-color: #20BD5A;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.footer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto 20px auto;
}

.contact-info,
.social-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.contact-info h3,
.social-media h3 {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #36454F;
    font-weight: 600;
    margin: 0;
}

.contact-info p,
.social-media p {
    font-size: clamp(13px, 2vw, 15px);
    color: #999999;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.copyright p {
    font-size: clamp(13px, 2vw, 15px);
    color: #36454F;
    font-weight: 500;
    margin: 30px 0 0 0;
}

/* ===== MEDIA QUERIES ===== */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    header {
        padding: 0 10px;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logo {
        padding: 8px 0;
    }

    .nav-links {
        gap: 15px;
        flex-direction: column;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .hero {
        padding: 20px 0;
        gap: 20px;
    }

    .hero-image img {
        max-width: 180px;
    }

    .soap-type {
        gap: 20px;
    }

    .soap-type>div {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .ingredients {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding: 40px 10px;
    }

    .ingredients-item {
        flex: 1 1 140px;
        max-width: 100%;
    }

    .footer-container {
        gap: 30px;
    }
}

/* Large Mobile Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    nav {
        justify-content: space-between;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-image img {
        max-width: 220px;
    }

    .soap-type {
        gap: 25px;
    }

    .soap-type>div {
        flex: 1 1 calc(50% - 25px);
        max-width: calc(50% - 25px);
    }

    .ingredients {
        gap: 35px;
    }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        max-width: 100%;
        padding: 0 30px;
    }

    .soap-type>div {
        flex: 1 1 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }

    .ingredients-item {
        flex: 1 1 calc(33.333% - 40px);
    }
}

/* Large Desktops (1025px+) */
@media (min-width: 1025px) {
    .soap-type>div {
        flex: 1 1 calc(33.333% - 30px);
        max-width: 350px;
    }

    .hero-image img {
        max-width: 280px;
    }

    .cta-button,
    .cta-button-whatsapp {
        padding: 14px 28px;
        font-size: 16px;
    }
}