* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* تحسين سرعة التحميل */
img {
    content-visibility: auto;
}

/* تحسين الأداء */
.hero {
    will-change: transform;
    contain: layout style paint;
}

:root {
    --bg: hsl(220, 40%, 8%);
    --text: hsl(0, 0%, 100%);
    --card: hsl(220, 40%, 12%);
    --primary: hsl(210, 100%, 55%);
    --secondary: hsl(220, 35%, 18%);
    --muted-bg: hsl(220, 30%, 16%);
    --muted-text: hsl(215, 20%, 55%);
    --accent: hsl(200, 100%, 60%);
    --border: hsl(220, 30%, 20%);
    --success: hsl(142, 76%, 36%);
    --danger: hsl(0, 84%, 60%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section with Background Image */
.hero {
    position: relative;
    min-height: 600px;
    background-image: url('src/couple-happy.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 20px;
    text-align: center;
    /* تحسين الأداء */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(17, 24, 39, 0.85) 0%, 
        rgba(17, 24, 39, 0.75) 50%,
        rgba(17, 24, 39, 0.9) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    color: var(--accent);
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-content {
    margin: 40px 0;
}

.hero-main-text {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-sub-text {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 18px;
    color: var(--muted-text);
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.ramadan-badge {
    display: inline-block;
    background-color: var(--danger);
    color: var(--text);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    margin-bottom: 20px;
}

.rating {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(17, 24, 39, 0.8);
    border-radius: 12px;
    display: inline-block;
}

.stars {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.rating-text {
    font-size: 16px;
    color: var(--text);
}

.rating-text strong {
    color: var(--accent);
}

/* Image Sections */
.image-section {
    width: 100%;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    /* تحميل كسول للصور */
    loading: lazy;
    /* تحسين الأداء */
    content-visibility: auto;
}

/* Order Section */
.order-section {
    padding: 60px 20px;
}

.order-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
}

.order-title {
    font-size: 26px;
    margin-bottom: 35px;
    text-align: center;
    color: var(--success);
    font-weight: 700;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(34, 197, 94, 0.5),
                     0 0 20px rgba(34, 197, 94, 0.3),
                     0 0 30px rgba(34, 197, 94, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(34, 197, 94, 0.8),
                     0 0 30px rgba(34, 197, 94, 0.5),
                     0 0 40px rgba(34, 197, 94, 0.3);
    }
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 15px;
}

.product-option {
    position: relative;
    display: block;
    background-color: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.product-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.product-option input[type="radio"]:checked + .option-content {
    color: var(--accent);
    font-weight: 600;
}

.product-option input[type="radio"]:checked {
    & ~ * {
        border-color: var(--primary);
    }
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.option-text {
    font-size: 16px;
    flex: 1;
}

.option-price {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.product-option.highlighted {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--muted-bg) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.15);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background: linear-gradient(135deg, var(--success) 0%, hsl(142, 76%, 30%) 100%);
    color: var(--text);
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.current-price {
    color: var(--success);
}

.old-price {
    text-decoration: line-through;
    color: var(--muted-text);
    font-size: 14px;
    margin-right: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    background-color: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 16px;
    color: var(--text);
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group input::placeholder {
    color: var(--muted-text);
}

.btn-submit {
    background: linear-gradient(135deg, var(--success) 0%, hsl(142, 76%, 30%) 100%);
    color: var(--text);
    border: none;
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6);
}

/* Trust Section */
.trust-section {
    padding: 60px 20px;
    background-color: var(--muted-bg);
}

.trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 18px;
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 1;
}

.trust-card:hover {
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.trust-text {
    font-size: 12px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 60px 15px;
    }

    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .hero-main-text {
        font-size: 32px;
    }

    .hero-sub-text {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .ramadan-badge {
        font-size: 14px;
        padding: 8px 20px;
    }

    .stars {
        font-size: 20px;
    }

    .rating-text {
        font-size: 14px;
    }

    .btn-primary {
        padding: 15px 40px;
        font-size: 18px;
        width: 100%;
        max-width: 300px;
    }
    
    .order-section {
        padding: 40px 15px;
    }

    .order-card {
        padding: 25px 20px;
    }

    .order-title {
        font-size: 20px;
    }

    .option-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .option-text {
        font-size: 15px;
    }

    .option-price {
        font-size: 16px;
    }

    .btn-submit {
        font-size: 18px;
        padding: 18px;
    }
    
    .trust-section {
        padding: 40px 15px;
    }

    .trust-grid {
        gap: 15px;
    }

    .trust-card {
        padding: 12px 16px;
        gap: 8px;
    }

    .trust-icon {
        font-size: 22px;
    }

    .trust-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
        padding: 40px 10px;
    }

    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-main-text {
        font-size: 26px;
    }

    .hero-sub-text {
        font-size: 22px;
    }

    .hero-description {
        font-size: 14px;
    }

    .ramadan-badge {
        font-size: 12px;
        padding: 6px 15px;
    }

    .rating {
        padding: 15px;
    }

    .stars {
        font-size: 18px;
    }

    .rating-text {
        font-size: 13px;
    }

    .btn-primary {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
    }

    .order-section {
        padding: 30px 10px;
    }

    .order-card {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .order-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .product-option {
        padding: 15px;
    }

    .popular-badge {
        font-size: 11px;
        padding: 3px 10px;
        top: -10px;
        right: 15px;
    }

    .option-text {
        font-size: 14px;
    }

    .option-price {
        font-size: 15px;
    }

    .old-price {
        font-size: 13px;
    }

    .form-group input {
        padding: 12px;
        font-size: 15px;
    }

    .btn-submit {
        font-size: 16px;
        padding: 16px;
    }

    .trust-section {
        padding: 30px 10px;
    }

    .trust-grid {
        gap: 12px;
        padding: 0 10px;
    }

    .trust-card {
        padding: 10px 14px;
        gap: 6px;
        flex: 0 0 calc(50% - 6px);
    }

    .trust-icon {
        font-size: 20px;
    }

    .trust-text {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-main-text {
        font-size: 22px;
    }

    .hero-sub-text {
        font-size: 20px;
    }

    .hero-description {
        font-size: 13px;
    }

    .order-card {
        padding: 15px 12px;
    }

    .trust-grid {
        gap: 10px;
        padding: 0 10px;
    }

    .trust-card {
        padding: 10px 12px;
        gap: 6px;
        flex: 0 0 calc(50% - 5px);
    }

    .trust-icon {
        font-size: 18px;
    }

    .trust-text {
        font-size: 10px;
    }
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background-color: var(--success);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.error-message {
    background-color: var(--danger);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* زر إشتري الآن في Hero */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--success) 0%, hsl(142, 76%, 30%) 100%);
    color: var(--text);
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.6);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}


/* Order Section with Split Layout */
.order-section-split {
    padding: 0;
    background-color: var(--bg);
}

.container-split {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
}

/* Slider Container */
.slider-container {
    width: 100%;
    position: relative;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.slider {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.slide {
    display: none;
    animation: fadeIn 1s;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slider-dots {
    text-align: center;
    padding: 20px 0;
    background-color: var(--bg);
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: var(--muted-text);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: var(--primary);
}

/* Order Form Container */
.order-form-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background-color: var(--bg);
}

.order-form-container .order-card {
    width: 100%;
    max-width: 600px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive for Split Layout */
@media (max-width: 1024px) {
    .slider-container {
        padding: 0;
    }

    .order-form-container {
        padding: 50px 20px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        padding: 0;
    }

    .order-form-container {
        padding: 30px 15px;
    }

    .order-form-container .order-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        padding: 0;
    }

    .order-form-container {
        padding: 20px 10px;
    }

    .order-form-container .order-card {
        padding: 20px 15px;
    }
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}
