/* Reset & Variables */
:root {
    --primary-color: #007aff;
    --primary-dark: #0056b3;
    --secondary-color: #00e5ff;
    --accent-color: #ff3b30;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1d1d1f;
    --text-muted: #86868b;
    --border-color: #e5e5ea;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-dark);
    line-height: 1.3;
}

p {
    color: var(--text-muted);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Buttons */
.btn-primary, .btn-primary-small, .btn-submit, .btn-primary-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), #005ce6);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 8px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary {
    padding: 16px 32px;
    font-size: 1.2rem;
}

.btn-primary-small {
    padding: 10px 24px;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    margin-top: 20px;
    position: relative;
}

.btn-primary-full {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
}

.btn-primary:hover, .btn-primary-small:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #005ce6, var(--primary-dark));
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

/* Top Banner */
.top-banner {
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-features {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.hero-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

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

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

.hero-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.3);
}

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

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0,122,255,0.1), rgba(0,229,255,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Showcase Gallery */
.showcase {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.main-item {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Order Section */
.order-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, #e6f0fa 100%);
}

.order-container {
    display: flex;
    gap: 40px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.order-info {
    flex: 1;
    padding: 50px;
    background: var(--primary-dark);
    color: white;
}

.order-info h2, .order-info p {
    color: white;
}

.order-info h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.order-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pricing-card.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.radio-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card.active .radio-btn {
    border-color: white;
}

.pricing-card.active .radio-btn::after {
    content: '';
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
}

.price-details h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.price-details h3 {
    color: white;
    font-size: 1.8rem;
}

.strike {
    font-size: 1.2rem;
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 10px;
}

.best-value {
    border-color: var(--secondary-color);
}

.val-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.guarantee i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.order-form-wrapper {
    flex: 1.2;
    padding: 50px;
}

.order-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.form-subtitle {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-dark);
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.success-message {
    text-align: center;
    padding: 30px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius-md);
    color: #155724;
}

.success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 10px;
}

/* Loader */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 24px;
    height: 24px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

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

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

footer .logo {
    color: white;
    margin-bottom: 15px;
}

footer p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Sticky Mobile CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 99;
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .order-container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-features {
        display: inline-block;
        text-align: right;
    }
    
    .hero-price {
        justify-content: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-item {
        grid-column: 1 / 3;
    }
    
    .order-info, .order-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .main-item {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .sticky-cta {
        display: block;
    }
    
    /* Extra padding at bottom to prevent sticky CTA from covering footer content */
    footer {
        padding-bottom: 90px;
    }
}
