/* Global Styles - Blue Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --sky-blue: #60a5fa;
    --dark-blue: #1e40af;
    --light-bg: #f0f9ff;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --shadow-blue: rgba(59, 130, 246, 0.2);
    --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-light-blue: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(180deg, var(--light-bg) 0%, #e0f2fe 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header - Blue Theme */
.header {
    background: var(--gradient-blue);
    padding: 20px 0;
    box-shadow: 0 4px 20px var(--shadow-blue);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s infinite;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.header-left {
    flex: 1;
    order: 1;
}

.header-right {
    display: flex;
    align-items: center;
    order: 3;
}

.logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.site-title {
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 5px;
    animation: glow 2s ease-in-out infinite alternate;
}

.site-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Hero Section - Blue Theme */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-light-blue);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.5);
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.9) 0%,
        rgba(59, 130, 246, 0.8) 50%,
        rgba(96, 165, 250, 0.7) 100%);
    animation: heroGradient 8s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.7);
    animation: titleFloat 3s ease-in-out infinite;
    background: linear-gradient(45deg, #fff, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.5s both;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    animation: fadeInUp 1s ease 0.8s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.feature-item i {
    font-size: 18px;
    color: #60a5fa;
}

.feature-item span {
    font-size: 14px;
    font-weight: 600;
}

/* Products Section - Blue Theme */
.products {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-blue);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

.products h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--primary-blue);
    font-weight: 800;
    position: relative;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-light-blue);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow-blue);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px var(--shadow-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.product-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: all 0.4s ease;
    display: block;
    flex-shrink: 0;
}

.product-card:hover .product-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.product-info {
    padding: 30px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-weight: 700;
    transition: color 0.3s ease;
}

.product-card:hover .product-info h3 {
    color: var(--light-blue);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.7;
}

.price {
    font-size: 32px;
    font-weight: 800;
    color: var(--light-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gradient-light-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.order-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    flex-shrink: 0;
}

.order-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.order-btn:hover::before {
    width: 300px;
    height: 300px;
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--shadow-blue);
}

.order-btn:active {
    transform: translateY(-1px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    background: #128c7e;
}

/* Modal - Blue Theme */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    margin: 20px auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 25px;
    position: relative;
    animation: modalSlideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px var(--shadow-blue);
    border: 2px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--primary-blue);
    background: var(--light-bg);
    transform: rotate(90deg);
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f2fe 100%);
    flex-shrink: 0;
}

.modal h3 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 28px;
    text-align: center;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 200px);
}

/* Form Styles - Blue Theme */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--shadow-blue);
    transform: translateY(-2px);
}

.order-summary {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f2fe 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    align-items: center;
}

.summary-item:last-child {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 18px;
    color: var(--light-blue);
    padding-top: 12px;
    border-top: 2px solid rgba(59, 130, 246, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    border: none;
    border-radius: 0 0 25px 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

/* Loading Overlay - Blue Theme */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    text-align: center;
    color: var(--white);
}

.spinner {
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.loading-spinner p {
    font-size: 20px;
    font-weight: 600;
}

/* Success Message - Blue Theme */
.success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    z-index: 2001;
    box-shadow: 0 25px 60px rgba(30, 58, 138, 0.4);
    animation: successBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.2);
}

.success-content i {
    font-size: 70px;
    margin-bottom: 25px;
    animation: successPulse 1s infinite;
}

.success-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-content p {
    font-size: 18px;
    opacity: 0.95;
}

/* Payment Methods Section - Blue Theme */
.payment-methods {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.payment-methods::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-blue);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

.payment-methods h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 800;
    position: relative;
}

.payment-methods p {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.payment-item {
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    padding: 20px;
    border-radius: 20px;
    background: var(--white);
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
}

.payment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px var(--shadow-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.payment-item:hover::before {
    opacity: 1;
}

.payment-logo {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.payment-item:hover .payment-logo {
    filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.3));
    transform: scale(1.1);
}

.payment-item span {
    display: block;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 14px;
    transition: color 0.3s ease;
}

.payment-item:hover span {
    color: var(--light-blue);
}

/* Footer - Blue Theme */
.footer {
    background: var(--gradient-blue);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 4s infinite;
}

/* Animations */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

@keyframes modalSlideDown {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

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

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

@keyframes glow {
    from {
        text-shadow: 2px 2px 8px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.3);
    }
    to {
        text-shadow: 2px 2px 8px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.5);
    }
}

@keyframes heroZoom {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes heroGradient {
    0% {
        background: linear-gradient(135deg,
            rgba(30, 58, 138, 0.9) 0%,
            rgba(59, 130, 246, 0.8) 50%,
            rgba(96, 165, 250, 0.7) 100%);
    }
    50% {
        background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.9) 0%,
            rgba(96, 165, 250, 0.8) 50%,
            rgba(30, 58, 138, 0.8) 100%);
    }
    100% {
        background: linear-gradient(135deg,
            rgba(30, 58, 138, 0.9) 0%,
            rgba(59, 130, 246, 0.8) 50%,
            rgba(96, 165, 250, 0.7) 100%);
    }
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes successBounce {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

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

@keyframes whatsappFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design - Blue Theme */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .products h2 {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        align-items: stretch;
    }

    .payment-methods h2 {
        font-size: 32px;
    }

    .payment-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 25px;
    }

    .payment-logo {
        height: 60px;
    }

    .modal-content {
        margin: 10px;
        max-height: 90vh;
        width: 95%;
    }

    .modal-body {
        padding: 20px;
        max-height: calc(90vh - 180px);
    }

    .header .container {
        flex-direction: row;
        gap: 15px;
    }

    .site-title {
        font-size: 28px;
        text-align: right;
    }

    .site-tagline {
        text-align: right;
        display: none;
    }

    /* Header on mobile - logo on right */
    .header-left {
        order: 2;
        text-align: right;
        flex: 1;
    }

    .header-right {
        order: 1;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

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

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-card {
        margin: 0 10px;
    }

    .success-message {
        padding: 40px 30px;
        margin: 20px;
    }

    .header .container {
        flex-direction: row-reverse;
    }

    .site-title {
        font-size: 24px;
    }

    .whatsapp-float {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}