:root {
    --primary-color: #050505; /* Deep Black */
    --secondary-color: #000000; /* Black */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #fafafa;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Amiri', serif;
    color: var(--primary-color);
}

/* --- Loader Styles --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Amiri', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Header & Nav --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 70px; /* Set fixed height for PC */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensure nav takes full height of header */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Amiri', serif;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Amiri', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-icon {
    margin-left: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -10px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.7)), url('https://source.unsplash.com/1600x900/?quran,luxury,dark');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 10rem 2rem 3rem 2rem;
    text-align: center;
    position: relative;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #e5e7eb;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    background-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Sections --- */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 0; /* Removed padding for full-width image */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f3f4f6;
}

.product-content {
    padding: 2rem;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.price {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 1.5rem 0;
    font-family: 'Amiri', serif;
}

/* --- Product Details Page --- */
.details-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    padding: 4rem 0;
}

.details-image {
    flex: 1;
}

.details-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.details-image img:hover {
    transform: scale(1.02);
}

.details-info {
    flex: 1;
}

.details-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.details-description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* --- Form --- */
.form-container {
    background: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f3f4f6;
    border-radius: 10px;
    font-family: inherit;
    background-color: #f9fafb;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: none;
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    color: var(--white);
    border-top: 5px solid var(--secondary-color);
    padding: 0;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-family: 'Amiri', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-section.about p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 0.8rem;
}

.footer-section.links a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.footer-section.links a::before {
    content: '▸';
    margin-right: 0.5rem;
    color: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section.links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-section.links a:hover::before {
    opacity: 1;
}

.footer-section.contact-info p {
    color: #d1d5db;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-section.contact-info p strong {
    color: var(--white);
    display: block;
    font-weight: 600;
}

.footer-section.social p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    border-color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

/* --- Media Queries (Mobile & Tablet) --- */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px; /* Approx header height */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        margin-left: 0;
        display: block;
    }

    /* Layout Adjustments */
    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 6rem 1rem; }
    .section-title { font-size: 2rem; }
    .form-container { padding: 2rem; }
    .details-container { flex-direction: column; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    header { height: auto; } /* Reset height for mobile to allow content flow */
}

/* --- Scroll Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Lightbox Styles --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    font-family: sans-serif;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}





.help-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* --- Impact Section --- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.impact-item h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: inherit;
    font-family: 'Amiri', serif;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}
.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}
.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    border-top: 1px solid #f3f4f6;
}

/* Dark mode adjustments for new sections */
body.dark-mode .feature-card,
body.dark-mode .testimonial-card,
body.dark-mode .faq-item {
    background-color: #000000;
    border: 1px solid #333;
}
body.dark-mode .faq-item p {
    border-top-color: #333;
}

.objectives-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body.dark-mode .objectives-box {
    border: 1px solid #333;
}