:root {
    --primary-color: #d69ca3; /* Soft Rose Gold / Pink */
    --secondary-color: #111111; /* Deep Black */
    --accent-color: #8a5a62;
    --bg-light: #fef8f9;
    --text-main: #333333;
    --text-muted: #777777;
    --white: #ffffff;
    --border-color: #ead1d4;
    --success: #2e7d32;
    --error: #d32f2f;
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-ar);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

html[lang="en"] body {
    font-family: var(--font-en);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    min-height: 80vh;
}

.hero-content {
    flex: 1 1 400px;
    padding: 2rem;
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(17,17,17,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(17,17,17,0.3);
}

.hero-image-wrapper {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 5%;
    background-color: var(--white);
    justify-content: center;
}

.feature-card {
    flex: 1 1 250px;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Order Section */
.order-section {
    padding: 5rem 5%;
    background-color: var(--bg-light);
    text-align: center;
}

.form-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    text-align: right;
}

html[lang="en"] .form-container {
    text-align: left;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fafafa;
    transition: border-color 0.3s ease, outline 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary-color);
    outline: 2px solid rgba(214, 156, 163, 0.3);
    background-color: var(--white);
}

.submit-button {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: inherit;
    box-shadow: 0 10px 20px rgba(138, 90, 98, 0.2);
}

.submit-button:hover {
    background-color: #724850;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
    transform: translateY(20px);
}

.modal-content h2 {
    color: var(--success);
    margin-bottom: 1rem;
}

.close-btn {
    margin-top: 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .current-price {
        font-size: 1.8rem;
    }
    .form-container {
        padding: 2rem 1.5rem;
    }
}

/* Hero Slider */
.hero-slider-wrapper {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    max-width: 100%;
}

.slider-container {
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}
.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-image {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    object-fit: cover;
    scroll-snap-align: center;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.9);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

html[dir="rtl"] .slider-arrow.prev {
    left: auto;
    right: 10px;
}

html[dir="rtl"] .slider-arrow.next {
    right: auto;
    left: 10px;
}

/* Reverse arrow icons for RTL */
html[dir="rtl"] .slider-arrow.prev::after {
    content: '\276F'; /* right arrow */
    position: absolute;
}
html[dir="rtl"] .slider-arrow.prev { color: transparent; }

html[dir="rtl"] .slider-arrow.next::after {
    content: '\276E'; /* left arrow */
    position: absolute;
}
html[dir="rtl"] .slider-arrow.next { color: transparent; }

.swipe-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    pointer-events: none;
    animation: fadeOut 3s forwards;
    animation-delay: 2s;
    z-index: 10;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: var(--accent-color);
}

.input-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fafafa;
    transition: border-color 0.3s ease, outline 0.3s ease;
    cursor: pointer;
}

.input-group select:focus {
    border-color: var(--primary-color);
    outline: 2px solid rgba(214, 156, 163, 0.3);
    background-color: var(--white);
}

.total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px dashed var(--primary-color);
}

.total-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.total-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

