:root {
    --color-primary: #8DBFD6;      /* Soft Blue */
    --color-secondary: #E8A9A9;    /* Soft Pink */
    --color-bg: #F5EBDD;           /* Light Cream */
    --color-accent: #B08B5B;       /* Soft Brown / Gold */
    
    --color-text: #4A4A4A;         /* Dark Gray for readability */
    --color-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-heading-ar: 'Cairo', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-body-ar: 'Cairo', sans-serif;
    
    --shadow-soft: 0 8px 24px rgba(176, 139, 91, 0.15);
    --border-radius-lg: 24px;
    --border-radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

html[dir="rtl"] body {
    font-family: var(--font-body-ar);
}

html[dir="rtl"] .section-title, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 {
    font-family: var(--font-heading-ar);
}

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

.text-center {
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 5px;
}

/* ================= Navbar ================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: transparent;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

#navbar.sticky {
    background-color: rgba(245, 235, 221, 0.98);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

html[dir="rtl"] .nav-links li a::after {
    left: auto;
    right: 0;
}

.nav-links li a:hover {
    color: var(--color-accent);
}

.nav-links li a:hover::after {
    width: 100%;
}

.lang-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--color-accent);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-accent);
    cursor: pointer;
}

/* ================= Hero Section ================= */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(232,169,169,0.1) 0%, rgba(141,191,214,0.1) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(232, 169, 169, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(141, 191, 214, 0.4);
    transform: translateY(-3px);
}

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background-color: rgba(232, 169, 169, 0.3);
    border-radius: 50%;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background-color: rgba(141, 191, 214, 0.3);
    border-radius: 50%;
}

/* ================= About Section ================= */
.about {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.about-card {
    background-color: var(--color-bg);
    padding: 4rem 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--color-primary);
}

html[dir="rtl"] .about-card::before {
    left: auto;
    right: 0;
}

.about-card p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* ================= Collections Section ================= */
.collections {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.collections-group {
    margin-bottom: 4rem;
}

.collection-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    display: inline-block;
    border-bottom: 2px dashed var(--color-secondary);
    padding-bottom: 5px;
}

html[dir="rtl"] .collection-subtitle {
    font-family: var(--font-heading-ar);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.collection-card {
    background-color: var(--color-white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid transparent;
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(176, 139, 91, 0.25);
    border-color: rgba(232, 169, 169, 0.4);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.collection-card:hover .card-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1) rotate(5deg);
}

.collection-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

html[dir="rtl"] .collection-card h4 {
    font-family: var(--font-heading-ar);
}

.collection-card:hover h4 {
    color: var(--color-accent);
}

/* ================= Social Media ================= */
.social {
    padding: 5rem 0;
}

.social-subtitle {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    color: var(--color-accent);
    border-radius: 50%;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--color-white);
}

.social-icon:nth-child(1):hover { background-color: #E1306C; }
.social-icon:nth-child(2):hover { background-color: #1877F2; }
.social-icon:nth-child(3):hover { background-color: #000000; }
.social-icon:nth-child(4):hover { background-color: #25D366; }

/* ================= Location Section ================= */
.location {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.location-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.address-box {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    border-left: 4px solid var(--color-secondary);
}

html[dir="rtl"] .address-box {
    border-left: none;
    border-right: 4px solid var(--color-secondary);
}

.address-box h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.address-box p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.address-box i {
    color: var(--color-primary);
}

/* ================= Contact Section ================= */
.contact {
    padding: 6rem 0;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

html[dir="rtl"] .form-group {
    text-align: right;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.form-group input, 
.form-group textarea {
    padding: 1rem;
    border: 2px solid #EAEAEA;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 18px;
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

html[dir="rtl"] .submit-btn i {
    transform: scaleX(-1); /* Flip paper plane indicator for rtl */
}

.submit-btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

/* ================= Success Popup ================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.close-popup {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background-color: var(--color-bg);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

/* ================= Footer ================= */
footer {
    background-color: var(--color-white);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(176, 139, 91, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 60px;
}

.brand-name-footer {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1.5rem;
}

html[dir="rtl"] .brand-name-footer {
    font-family: var(--font-heading-ar);
}

.footer-social a {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-left: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

html[dir="rtl"] .footer-social a {
    margin-left: 0;
    margin-right: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #EAEAEA;
    font-size: 0.9rem;
    color: #888;
}

/* ================= Animations (Scroll Reveal) ================= */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.dissolve-in {
    animation: fadeIn 1s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

/* ================= Responsive Design ================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    html[dir="rtl"] .nav-links {
        left: auto;
        right: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .about-card {
        padding: 3rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-top: 1rem;
    }
    
    .footer-social a, html[dir="rtl"] .footer-social a {
        margin: 0 0.5rem;
    }
}
