/* style.css - Final Complete Version */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

:root {
    --deep-blue: #0a192f;
    --gold: #d4af37;
    --light-gray: #f8f9fa;
    --dark-gray: #495057;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-left: 10px;
}

.burger-menu {
    display: none; /* Hidden by default */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
}

nav {
    display: flex; /* Default is flex for desktop */
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--gold);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background-color: var(--gold);
    color: var(--deep-blue);
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--gold);
    color: var(--deep-blue);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Services Section */
.services-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--deep-blue);
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--deep-blue);
    margin-bottom: 15px;
}

.service-card .price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    margin: 20px 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .icon {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.customer-name {
    font-weight: 900;
    color: var(--deep-blue);
    margin-bottom: 5px;
}

.customer-title {
    color: var(--gold);
    font-size: 0.9rem;
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
    min-height: 70vh;
}

.cart-table {
    width: 100%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th, .cart-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.cart-table th {
    background-color: var(--deep-blue);
    color: var(--white);
}

.cart-summary {
    margin-top: 30px;
    text-align: left;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cart-summary h3 {
    margin-bottom: 15px;
    color: var(--deep-blue);
}

.cart-summary .total-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
}

/* Checkout Page */
.checkout-page {
    padding: 40px 0;
    display: flex;
    gap: 30px;
}

.checkout-form, .order-summary {
    flex: 1;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label, .contact-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--deep-blue);
}

.checkout-form input, .checkout-form textarea, .contact-form-container input, .contact-form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

.checkout-form textarea, .contact-form-container textarea {
    resize: vertical;
    min-height: 150px;
}

.checkout-form input:focus, .checkout-form textarea:focus, .contact-form-container input:focus, .contact-form-container textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Contact Page */
.contact-page {
    padding: 60px 0;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info, .contact-form-container {
    flex: 1;
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h2, .contact-form-container h2 {
    color: var(--gold);
    margin-bottom: 30px;
    font-size: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    text-align: right;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-left: 20px;
    width: 30px;
}

.info-item .info-text h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.info-item .info-text p {
    color: #b0b0b0;
}

.contact-form-container label {
    color: var(--white);
}

.contact-form-container input,
.contact-form-container textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 60px 0 20px 0;
    margin-top: 80px;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--gold);
}

.footer-section p {
    line-height: 1.8;
    color: #b0b0b0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease, padding-right 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--gold);
    padding-right: 5px;
}

.footer-section .contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-section .contact-info i {
    color: var(--gold);
    margin-left: 15px;
    font-size: 1.1rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    color: white;
}

.whatsapp-btn i {
    font-size: 1.2rem;
    margin-left: 10px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--deep-blue);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: row-reverse; /* Logo on right, burger on left */
    }
    
    .burger-menu {
        display: block;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--deep-blue);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    header nav.active {
        display: flex;
    }

    header nav a {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    header nav a::after {
        display: none;
    }
    
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    .checkout-page, .contact-page {
        flex-direction: column;
    }
    .cart-table {
        font-size: 0.9rem;
    }
    .cart-table th, .cart-table td {
        padding: 10px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-section .contact-info p {
        justify-content: center;
    }
}