/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(99, 102, 241, 0.2);
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px 60px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.price-box {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    background: var(--white);
    color: var(--primary-color);
    padding: 20px 40px;
    border-radius: 50px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.price {
    font-size: 4rem;
    font-weight: 900;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.6);
}

.cta-button.pulse {
    animation: pulse 2s infinite, fadeInUp 0.8s ease-out 0.6s both;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.4s both;
}

.hero-product-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-product-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

/* Quick Order Section */
.quick-order-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.quick-order-section .order-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
}

.quick-order-section .order-title {
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 80px 20px;
    background: var(--white);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: grayscale(0);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Benefits Section */
.benefits {
    padding: 80px 20px;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(-5px);
}

.benefit-check {
    width: 40px;
    height: 40px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.benefit-item p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* FAQ Section */
.faq {
    padding: 80px 20px;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: var(--white);
    border: none;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 30px 25px 30px;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Order Section */
.order-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.order-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.order-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.price-summary {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1.1rem;
}

.price-row.total {
    border-top: 2px solid var(--border);
    margin-top: 15px;
    padding-top: 20px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.price-amount {
    font-weight: 700;
    color: var(--text-dark);
}

.price-row.total .price-amount {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Form Styles */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.submit-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
    font-family: 'Cairo', sans-serif;
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.6);
}

/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    animation: slideDown 0.5s ease;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Carousel Modal */
.carousel-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.carousel-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    max-width: 90%;
    max-height: 90vh;
    margin: 0 auto;
    position: relative;
}

.carousel-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
}

.carousel-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.carousel-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    font-size: 30px;
    padding: 20px 25px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10000;
    font-weight: 300;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
    right: 40px;
}

.carousel-next {
    left: 40px;
}

.carousel-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-item {
    cursor: pointer;
}

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

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-note {
    color: var(--success);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .price {
        font-size: 3rem;
    }

    .hero-product-image {
        max-width: 90%;
    }

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

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .order-box {
        padding: 30px 20px;
    }

    .quick-order-section .order-box {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .carousel-prev {
        right: 20px;
    }

    .carousel-next {
        left: 20px;
    }

    .carousel-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .price-box {
        padding: 15px 30px;
    }

    .price {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-icon {
        font-size: 3rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
        padding: 10px;
    }

    .carousel-prev {
        right: 10px;
    }

    .carousel-next {
        left: 10px;
    }

    .carousel-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }

    .carousel-counter {
        bottom: 15px;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}