/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}

:root {
    --primary-text: #4E342E;
    --headings: #D4AF37;
    --background: #FDF8F0;
    --accent: #800020;
    --whatsapp: #25D366;
    --white: #FFFFFF;
    --shadow: rgba(78, 52, 46, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0002a;
}

/* Scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--background);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo h1 {
    color: var(--headings);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-text);
    margin: 3px 0;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.6), rgba(78, 52, 46, 0.6)),
                url('./Images/hero.png') center/cover;
    will-change: transform;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 90%;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--headings);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

.cta-button {
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: #a0002a;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(128, 0, 32, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: var(--headings);
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 8px 30px rgba(78, 52, 46, 0.15);
}

.product-card.special {
    border: 2px solid var(--headings);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.arabic-name {
    font-size: 1rem;
    color: var(--headings);
    margin-bottom: 1rem;
    font-weight: 500;
    direction: rtl;
    text-align: right;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #FFD700;
    font-size: 1rem;
}

.rating-text {
    color: var(--primary-text);
    font-weight: 500;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.size {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--primary-text);
}

/* WhatsApp Button */
.whatsapp-btn {
    width: 100%;
    background: var(--whatsapp);
    color: var(--white);
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

.whatsapp-btn svg {
    flex-shrink: 0;
}

/* Our Story Section */
.our-story {
    background: var(--white);
}

.story-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    
    
}

.story-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-item.reverse {
    direction: rtl;
}

.story-item.reverse .story-content {
    direction: ltr;
}

.story-image {
    overflow: hidden;
    border-radius: 16px;
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.story-item:hover .story-image img {
    transform: scale(1.05);
}

.story-content h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--headings);
    margin-bottom: 1rem;
    font-weight: 600;
}

.story-content p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: var(--primary-text);
}

/* Health Benefits */
.health-benefits {
    background: linear-gradient(135deg, var(--background), rgba(212, 175, 55, 0.05));
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(78, 52, 46, 0.15);
}

.benefit-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.benefit-item h4 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--primary-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: var(--primary-text);
    opacity: 0.8;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Testimonials */
.testimonials {
    background: var(--white);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    transition: var(--transition);
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-content {
    text-align: center;
    padding: 2rem;
    background: var(--background);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

.testimonial-content .stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.customer-name {
    font-weight: 600;
    color: var(--accent);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    background: var(--accent);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background: #a0002a;
    transform: scale(1.1);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-text), var(--accent));
    color: var(--white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--headings);
}

.newsletter p {
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    color: var(--primary-text);
    min-width: 0;
}

.newsletter-form button {
    background: var(--headings);
    color: var(--primary-text);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #e6c547;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: var(--primary-text);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--headings);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.1rem);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--headings);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(212, 175, 55, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    border: 1px solid var(--headings);
    white-space: nowrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
     
    }
    .header{
        width: 100vw;
    }
    body{
        overflow: hidden;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(253, 248, 240, 0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 80vh;
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .story-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .story-item.reverse {
        direction: ltr;
    }
    
    .story-image img {
        height: 250px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
    
    .benefit-item {
        padding: 1.5rem 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-content {
        padding: 0.75rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .story-content,
    .testimonial-content {
        padding: 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg {
        will-change: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.5);
    }
    
    .product-card {
        border: 2px solid var(--primary-text);
    }
    
    .benefit-item {
        border: 2px solid var(--primary-text);
    }
}

/* Print Styles */
@media print {
    .header,
    .testimonial-nav,
    .newsletter,
    .whatsapp-btn {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    .product-card {
        break-inside: avoid;
    }
}