/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark grey text */
    direction: rtl; /* Right-to-left for Arabic */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    overflow-x: hidden; /* Also apply to html for good measure */
}

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

h1, h2, h3 {
    color: #1a1a1a; /* Dark grey/off-black for headings */
}

a {
    text-decoration: none;
    color: #c5a572; /* Gold color for links */
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c5a572; /* Gold */
    color: #ffffff; /* White text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background-color: #b38e5a; /* Darker gold */
    text-decoration: none;
}

/* Header */
header {
    background-color: #1a1a1a; /* Dark grey/off-black */
    color: #f0f0f0; /* Light grey/off-white text */
    padding: 10px 0;
    border-bottom: 3px solid #c5a572; /* Gold border */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure container uses full width within its parent */
}

.logo {
    display: flex; /* Align logo and brand name */
    align-items: center;
    gap: 10px; /* Space between logo and name */
    flex-shrink: 0; /* Prevent logo area from shrinking too much */
}

.logo img {
    max-height: 50px; /* Adjust as needed */
    max-width: 100%; /* Ensure logo scales down */
}

.brand-name {
    color: #f0f0f0; /* Light grey/off-white color for brand name */
    font-size: 1.2rem; /* Adjust size as needed */
    font-weight: bold;
    white-space: nowrap; /* Prevent wrapping initially */
}

nav {
    flex-shrink: 0; /* Prevent nav from shrinking too much */
}

#lang-switch-btn {
    background-color: #e4a80f; /* Brighter Gold */
    color: #1a1a1a; /* Dark Text */
    border: 1px solid #f0f0f0; /* Light border */
    padding: 10px 20px; /* Increased padding */
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold; /* Make text bold */
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent button text wrapping */
}

#lang-switch-btn:hover {
    background-color: #f0f0f0; /* Light background on hover */
    color: #1a1a1a; /* Dark text on hover */
    text-decoration: none;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('../assets/luxury_background.jpg') no-repeat center center/cover; /* Dark overlay */
    color: #ffffff; /* White text */
    text-align: center;
    padding: 80px 20px; /* Add horizontal padding */
}

.welcome-section h1 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 2.5rem;
    word-wrap: break-word; /* Allow long words to break */
}

.whatsapp-btn {
    background-color: #25D366; /* WhatsApp green */
    margin-top: 20px;
    color: #ffffff;
}

.whatsapp-btn:hover {
    background-color: #1DAE51;
}

/* Perfumes Section */
.perfumes-section {
    padding: 50px 0;
    text-align: center;
    background-color: #ffffff; /* White background for product section */
}

.perfume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f5f5f5; /* Light grey background */
    padding: 50px 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* FAQ Section */
.faq-section {
    padding: 50px 0;
    background-color: #ffffff; /* White background */
}

.faq-accordion {
    margin-top: 30px;
}

/* Footer */
footer {
    background-color: #1a1a1a; /* Dark grey/off-black */
    color: #f0f0f0; /* Light text */
    padding: 30px 0 10px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%; /* Ensure footer container uses full width */
}

.footer-links,
.footer-contact {
    display: flex;
    flex-wrap: wrap; /* Allow links to wrap on small screens */
    justify-content: center; /* Center links when wrapped */
    gap: 10px; /* Add gap between wrapped links */
}

.footer-links a,
.footer-contact a {
    color: #f0f0f0;
    margin: 0 5px; /* Reduce horizontal margin */
    white-space: nowrap; /* Prevent link text wrapping */
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #c5a572; /* Gold hover */
}

.footer-logo {
    display: block;
    margin-top: 10px;
    width: auto;
    height: auto;
}

.footer-logo-img {
    max-height: 40px; /* Smaller logo in footer */
    display: inline-block;
    vertical-align: middle;
}

.copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #aaaaaa; /* Lighter grey */
    word-wrap: break-word; /* Allow copyright text to wrap */
}

/* Policy Modals/Sections Overlay */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darker overlay */
    z-index: 999;
    display: none;
}

/* Policy Modals/Sections */
.policy-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border: none; /* Remove border */
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4); /* Stronger shadow */
    z-index: 1000;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

.policy-content h3 {
    margin-top: 0;
    color: #1a1a1a;
    border-bottom: 1px solid #e0e0e0; /* Lighter separator */
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.close-policy {
    display: block;
    margin-top: 20px;
    background-color: #c5a572; /* Gold */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    float: left;
}

html[lang="ar"] .close-policy {
    float: right;
}

.close-policy:hover {
    background-color: #b38e5a;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%; /* Slightly wider container on mobile */
    }

    .header-container {
        flex-direction: column;
        gap: 15px; /* Increased gap */
        padding: 10px 0; /* Add padding for column layout */
    }

    .brand-name {
        font-size: 1rem; /* Slightly smaller brand name */
    }

    .perfume-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .policy-content {
        width: 90%;
    }

    .card-buttons {
        flex-direction: column; /* Stack buttons vertically */
    }

    .card-buttons .btn {
        flex: 1 1 100%; /* Full width buttons */
        width: 100%; /* Ensure full width */
    }

    .countdown-timer {
        flex-basis: auto; /* Reset basis for column layout */
    }
}

@media (max-width: 480px) {
    .welcome-section h1 {
        font-size: 1.8rem; /* Further reduce heading size */
    }

    .perfume-card h3 {
        font-size: 1.2rem;
    }

    .perfume-card .price {
        font-size: 1.1rem;
    }

    .footer-links a,
    .footer-contact a {
        margin: 0 3px; /* Even smaller margin */
        font-size: 0.9rem;
    }
}

/* Perfume Card Styles */
.perfume-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Softer shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Prevent content overflow */
}

.perfume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.perfume-card img {
    max-width: 80%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
}

.perfume-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1a1a1a;
    word-wrap: break-word;
}

.perfume-card .description {
    font-size: 0.95rem;
    color: #555555;
    min-height: 100px;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.perfume-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.card-buttons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.card-buttons .btn {
    flex: 1 1 45%;
    padding: 10px 5px;
    font-size: 0.9rem;
    min-width: 100px;
}

.payment-btn {
    background-color: #c5a572; /* Gold */
}

.payment-btn:hover {
    background-color: #b38e5a;
}

.video-btn {
    background-color: #555555; /* Dark grey */
    color: #ffffff;
}

.video-btn:hover {
    background-color: #333333;
}

/* Testimonial Card Styles */
.testimonial-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* Lighter border */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.testimonial-card .quote {
    font-style: italic;
    color: #555555;
    margin-bottom: 10px;
    line-height: 1.6;
    word-wrap: break-word;
}

.testimonial-card .author {
    font-weight: bold;
    color: #1a1a1a;
    word-wrap: break-word;
}

/* FAQ Accordion Styles */
.faq-item {
    border-bottom: 1px solid #e0e0e0; /* Lighter border */
    margin-bottom: 10px;
}

.faq-question {
    background-color: transparent;
    border: none;
    padding: 15px 0;
    width: 100%;
    text-align: right;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

html[lang="en"] .faq-question {
    text-align: left;
    padding-right: 0;
    padding-left: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #c5a572; /* Gold */
    transition: transform 0.3s ease;
}

html[lang="en"] .faq-question::after {
    right: auto;
    left: 0;
}

.faq-question.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9; /* Very light grey for answer background */
    padding: 0 15px;
}

.faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: #333333;
    line-height: 1.6;
}

.faq-answer.active {
    max-height: 300px;
    padding: 10px 15px;
}

/* Countdown Timer Styles */
.countdown-timer {
    font-size: 0.9em;
    color: #c5a572; /* Gold color */
    margin-top: 8px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    flex-basis: 100%;
}

