/* Modern CSS for Petal Pouches - Black & Pink Theme */
:root {
    --primary-color: #F2C2B9;
    --secondary-color: #f4d3cc;
    --accent-color: #e8a898;
    --dark-bg: #000000;
    --darker-bg: #0a0a0a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #1a1a1a;
    --border-color: #262626;
    --gradient-1: linear-gradient(135deg, #F2C2B9 0%, #e8a898 100%);
    --gradient-2: linear-gradient(135deg, #f4d3cc 0%, #F2C2B9 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    --shadow: 0 10px 30px rgba(242, 194, 185, 0.2);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Arabic text styling */
.arabic-text {
    font-family: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
    font-size: 0.9em;
    opacity: 0.8;
    color: var(--text-muted);
    display: inline-block;
    margin-top: 0.5rem;
}

/* Hero section Arabic text */
.hero .arabic-text {
    color: #d1d5db;
    font-size: 0.85em;
}

/* Section titles Arabic text */
.section-title .arabic-text {
    font-size: 0.75em;
    display: block;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Navigation Arabic text */
.nav-link .arabic-text {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Button Arabic text */
.btn .arabic-text {
    font-size: 0.85em;
}

/* Feature card Arabic text */
.feature-card .arabic-text {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Process step Arabic text */
.process-step .arabic-text {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Stats section Arabic text */
.stat-label .arabic-text {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow-dark);
}

.navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section - Improved for eye comfort */
.hero {
    min-height: 100vh;
    background: radial-gradient(ellipse at center top, rgba(242, 194, 185, 0.15) 0%, rgba(0, 0, 0, 0.9) 40%, #000000 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(242,194,185,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(242, 194, 185, 0.03) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f4d3cc 30%, #F2C2B9 70%, #e8a898 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(242, 194, 185, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    color: #e2e8f0;
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-image img {
    max-width: 300px;
    filter: drop-shadow(0 20px 40px rgba(242, 194, 185, 0.3));
    animation: float 6s ease-in-out infinite;
    /* White outline for logo visibility */
    -webkit-filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)) drop-shadow(0 20px 40px rgba(242, 194, 185, 0.3));
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)) drop-shadow(0 20px 40px rgba(242, 194, 185, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 194, 185, 0.4);
    color: #000000 !important; /* Black text on pink button */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 194, 185, 0.6);
    background: var(--gradient-2);
    color: #000000 !important; /* Black text on pink button */
}

.btn-outline-light {
    border: 2px solid rgba(242, 194, 185, 0.5);
    color: var(--primary-color);
    background: rgba(242, 194, 185, 0.1);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(242, 194, 185, 0.2);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(242, 194, 185, 0.05) 100%);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #000000; /* Black text on pink background */
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-align: center;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

/* Stats Section */
.stats-section {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    text-align: center;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

/* Process Steps */
.process-step {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(242, 194, 185, 0.05) 100%);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000; /* Black text on pink background */
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-align: center;
}

.process-step p {
    color: var(--text-muted);
    text-align: center;
}

/* Gallery Section */
.gallery-section {
    background: var(--dark-bg);
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(242, 194, 185, 0.8) 0%, rgba(232, 168, 152, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: #000000;
    padding: 1rem;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000000;
}

.gallery-overlay p {
    font-size: 1rem;
    color: #000000;
    opacity: 0.9;
}

.gallery-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.gallery-icon i {
    font-size: 1.5rem;
    color: #000000;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.gallery-modal img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-dark);
}

.gallery-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--gradient-1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    transform: scale(1.1);
}

.gallery-modal-close i {
    color: #000000;
    font-size: 1.2rem;
}

.gallery-modal-info {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-light);
}

.gallery-modal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.gallery-modal-info p {
    color: var(--text-muted);
}

/* Gallery Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    color: #000000;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    background: var(--darker-bg);
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(242, 194, 185, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.contact-icon i {
    font-size: 2rem;
    color: #000000; /* Black text on pink background */
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* About Section Fixes */
#about {
    text-align: left;
}

#about .row.justify-content-center {
    text-align: center;
}

#about .row.mt-5 {
    text-align: left;
}

#about h3, #about h4 {
    color: var(--text-light);
    text-align: left;
}

#about p {
    text-align: left;
}

#about .col-6 h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--secondary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text color overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Contact section centering fixes */
.contact-card h2 {
    text-align: center;
}

.contact-card .section-subtitle {
    text-align: center;
}

.contact-card .row.text-center h4 {
    color: var(--text-light);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        background: radial-gradient(ellipse at center top, rgba(242, 194, 185, 0.1) 0%, rgba(0, 0, 0, 0.95) 30%, #000000 100%);
    }
    
    .hero-content {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .feature-card,
    .process-step,
    .contact-card {
        margin-bottom: 2rem;
    }
    
    #about .row.mt-5 {
        text-align: center;
    }
    
    #about h3, #about h4 {
        text-align: center;
    }
    
    #about p {
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-filters {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    /* Arabic text responsive adjustments */
    .arabic-text {
        font-size: 0.8em;
    }
    
    .section-title .arabic-text {
        font-size: 0.7em;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-1);
}

.shadow-lg {
    box-shadow: var(--shadow);
}