/* styles.css */
:root {
    --primary-color: #4e54c8;
    --primary-gradient: linear-gradient(135deg, #4e54c8, #8f94fb);
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --bg-dark: #2c3e50;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition-fast: 0.3s ease;
    --transition-med: 0.5s ease;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 20px;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: var(--bg-white);
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-color);
    transition: color var(--transition-fast);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background-color: var(--text-color);
    border-radius: 3px;
    transform-origin: center;
    transition: var(--transition-fast);
}

.hamburger span:last-child {
    margin-bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-color);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.language-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

.language-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 200px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-med);
    z-index: 1000;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.language-menu.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.language-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-option.active {
    background-color: rgba(78, 84, 200, 0.1);
    color: var(--primary-color);
}

/* CTA Button Styles */
.cta-button {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 16px;
    white-space: nowrap;
}

.cta-button:hover, .cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
    color: white;
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 18px;
}

.desktop-only {
    display: inline-block;
}

/* Hero Section Styles */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1, .hero-text h2 {
    color: white;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Benefits Section Styles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-med);
    border-radius: var(--border-radius);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    color: white;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card:hover h3, .benefit-card:hover p {
    color: white;
}

.benefit-card:hover .benefit-icon {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(78, 84, 200, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: all var(--transition-med);
}

/* Ingredients Section Styles */
.ingredients-section h2 {
    text-align: center;
}

.ingredients-section > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ingredient-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.ingredient-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-med);
}

.ingredient-card:hover img {
    transform: scale(1.05);
}

.ingredient-card h3, .ingredient-card p {
    padding: 0 20px;
}

.ingredient-card h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ingredient-card p {
    margin-bottom: 20px;
}

/* How It Works Section Styles */
.how-it-works-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.how-it-works-text {
    flex: 1;
}

.how-it-works-image {
    flex: 1;
}

.how-it-works-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    transition: clip-path var(--transition-med);
}

.how-it-works-image img:hover {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.how-it-works-text ul {
    margin-bottom: 30px;
}

.how-it-works-text li {
    margin-bottom: 10px;
}

/* Testimonials Section Styles */
.testimonials-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    position: relative;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(78, 84, 200, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-icon {
    display: flex;
    margin-bottom: 20px;
    color: #ffc107;
}

.testimonial-title {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: -15px;
}

/* Pricing Section Styles */
.pricing-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.pricing-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 350px;
    position: relative;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-header h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 5px;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.pricing-card .cta-button {
    display: block;
    margin: 0 30px 30px;
}

.shipping-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* FAQ Section Styles */
.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
    overflow: hidden;
}

details:hover {
    box-shadow: var(--shadow-md);
}

summary {
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--text-color);
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

details[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* CTA Section Styles */
.cta-section {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-section .cta-button {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-section .cta-button:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Footer Styles */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Animation Effects */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    background-size: 1000px 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefits-card, .ingredient-card, .testimonial-card, .pricing-card {
    animation: fadeIn 0.8s ease-out backwards;
}

.benefits-card:nth-child(2), .ingredient-card:nth-child(2), .testimonial-card:nth-child(2), .pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefits-card:nth-child(3), .ingredient-card:nth-child(3), .testimonial-card:nth-child(3), .pricing-card:nth-child(3) {
    animation-delay: 0.4s;
}

.benefits-card:nth-child(4), .ingredient-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* Media Queries */
@media (max-width: 1024px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .pricing-grid, .testimonials-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        max-width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
        margin: 30px 0;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .main-nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: height var(--transition-med);
        z-index: 1000;
    }
    
    .main-nav ul.active {
        height: 100vh;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .hero-content, .how-it-works-content {
        flex-direction: column;
    }
    
    .hero-image, .how-it-works-image {
        margin-top: 30px;
    }
    
    h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        flex-direction: column;
    }
    
    .testimonial-card {
        margin-bottom: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: clamp(1.8rem, 5vw, 2.3rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cta-button.large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .pricing-grid {
        gap: 20px;
    }
    
    .pricing-features ul {
        font-size: 14px;
    }
    
    footer {
        padding: 60px 0 30px;
    }
}

/* Accessibility Improvements */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Modern Effects */
.frosted-glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.7);
}

/* Fix for CLS */
.hero-image img, .how-it-works-image img, .ingredient-card img {
    will-change: transform;
}

/* For font display: swap */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');
}