/* Extra small devices */
@media (max-width: 576px) {
   /* body {
        padding-top: 10px;
    }*/
    .navbar {
        padding-bottom: 0.3rem;
    }
}
/* Custom CSS for Olive Oil Export Website */

:root {
    --primary-color: #6a6d6367;
    --secondary-color: #b7b2c7;
    --accent-color: #FBCFE8;
    --dark-color: #334155;
    --light-color: #F8FAFC;
    --surface-color: #FFFFFF;
    --muted-color: #94A3B8;
    --olive-green: #8FAF68;
    --earth-brown: #C9A27C;
    /* المتغير الجديد للون الخلفية المتناسق مع اللوجو */
    --logo-background-beige: #F8F7E8;
}

body {
    font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    /* offset for fixed-top navbar */
    padding-top: 30px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Arial, sans-serif;
}

/* Hero Section */
.hero-section {
    min-height: 20vh;
    background-color: var(--surface-color);
    position: relative;
    color: var(--dark-color);
}
.hero-content h1,
.hero-content p {
    color: var(--dark-color) !important;
}

/* للتأكد من أن الأيقونة تظهر باللون الأبيض */
.hero-scroll-indicator i {
    color: white;
}


.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: linear-gradient(180deg, #ffffff 50%, #334155 100%);
    opacity: 1;
    z-index: 1;
}

/* Dark, futuristic variant for hero (no gradients) */
.hero-section.hero-dark {
    background-color: #1A1A2E; /* Deep Navy */
    color: #ffffff;
}

/* Neon accent text */
.neon-accent {
    color: var(--accent-color);
    text-shadow: 0 0 6px rgba(34, 211, 238, 0.8),
                 0 0 18px rgba(34, 211, 238, 0.6);
}

/* Neon buttons */
.btn-neon-solid {
    background-color: var(--accent-color);
    color: #0b1220;
    border: 0;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.7), 0 0 24px rgba(34, 211, 238, 0.4);
}
.btn-neon-solid:hover,
.btn-neon-solid:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.9), 0 0 32px rgba(34, 211, 238, 0.6);
}

.btn-neon-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.5);
}
.btn-neon-outline:hover,
.btn-neon-outline:focus {
    background-color: rgba(34, 211, 238, 0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.8), 0 0 24px rgba(34, 211, 238, 0.5);
}

/* Hero visual glow */
.hero-image img {
    filter: drop-shadow(0 8px 24px rgba(34, 211, 238, 0.35));
    border-radius: 14px;
}

/* Ensure column stacking spacing */
.hero-section .row {
    padding-top: 28px;
    padding-bottom: 48px;
}

/* Hero typography sizing (smaller, responsive, and white) */
.hero-section .display-4 {
    font-size: 2rem;
    line-height: 1.25;
    color: #ffffff !important;
}
.hero-section .lead {
    font-size: 1rem;
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .hero-section .display-4 { font-size: 2.5rem; }
    .hero-section .lead { font-size: 1.125rem; }
}

@media (min-width: 1200px) {
    .hero-section .display-4 { font-size: 3rem; }
    .hero-section .lead { font-size: 1.15rem; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in-out 0.6s both;
}

.animate-slide-in {
    animation: slideInRight 1s ease-in-out;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.product-image {
    overflow: hidden;
}

.product-overlay {
    background: rgba(14, 165, 233, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-title {
    color: var(--dark-color);
}

.product-price {
    font-size: 1.2rem;
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
}

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

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    color: #666;
}

/* News Cards */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.news-image {
    overflow: hidden;
}

.news-image img {
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-success {
    background: var(--primary-color);
    border: none;
}

.btn-success:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 76, 109, 0.3);
}

.btn-outline-success {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-success:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--surface-color);
    border-top: 1px solid #e5e7eb;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Stats */
.stat-number {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* larger offset on mobile to avoid navbar overlap */
    body {
        padding-top: 50px;
    }
    .navbar {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }
    .hero-section {
        min-height: 70vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-olive {
    color: var(--olive-green) !important;
}

.bg-olive {
    background-color: var(--olive-green) !important;
}

.border-olive {
    border-color: var(--olive-green) !important;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rounded-custom {
    border-radius: 15px;
}

/* 1. تعريف الحركة (Keyframes) */
/* 🌟 تأثير احترافي لدخول العنصر من اليمين مع عمق ولمسة فخمة */
@keyframes slideInFromRight {
    0% {
        transform: translateX(120%) scale(0.8) rotateY(25deg);
        opacity: 0;
        filter: blur(8px);
    }

    60% {
        transform: translateX(-10%) scale(1.02) rotateY(0deg);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        transform: translateX(0) scale(1) rotateY(0deg);
        opacity: 1;
        filter: blur(0);
    }
}

/* تطبيق الأنميشن */
.animate-slide-in {
    animation: slideInFromRight 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform-origin: center right;
    will-change: transform, opacity;
}
