/* 
   ZamnStock - تنسيقات الصفحة الرئيسية (بدون ناف بار/فووتر/واتساب/سكرول/أزرار/حركات)
   تصميم عصري لشركة تقنية عربية عالمية
*/

/* 1. استيراد الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* 2. المتغيرات والألوان */
:root {
    --primary-color: #377E4F;
    --primary-dark: #2a613d;
    --primary-light: #e8f5e9;
    --accent-color: #25D366;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(55, 126, 79, 0.15);
    --shadow-lg: 0 20px 40px rgba(55, 126, 79, 0.2);
    --radius: 16px;
}

/* 3. التنسيقات العامة */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 4. تنسيق قسم الهيرو */
.hero-section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(55, 126, 79, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-section .display-4 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section .lead {
    color: var(--text-gray);
    font-size: 1.2rem;
}

/* 5. الصور العائمة في الهيرو */
.main-image-container {
    position: relative;
}

.floating-img {
    border-radius: var(--radius);
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.main-image-container .floating-img:nth-child(2) {
    animation-delay: 0s;
}

.main-image-container .floating-img:nth-child(3) {
    animation-delay: 0.5s;
}

.main-image-container .floating-img:nth-child(4) {
    animation-delay: 1s;
}

.floating-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md) !important;
}

/* 6. تنسيق بطاقات المميزات */
.card-feature {
    transition: all 0.3s ease;
    border-radius: var(--radius) !important;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.card-feature::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-feature:hover::before {
    transform: scaleX(1);
}

.card-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md) !important;
}

.card-feature .display-4 {
    color: var(--primary-color);
    transition: all 0.3s;
}

.card-feature:hover .display-4 {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.card-feature .card-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-feature .card-text {
    color: var(--text-gray);
    line-height: 1.7;
}

/* 7. تنسيق قسم الإحصائيات */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stats-section h2 {
    position: relative;
    display: inline-block;
}

.stats-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 25%;
    width: 50%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
}

.stats-section h1 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.stats-section .col-md-3:hover h1 {
    transform: scale(1.05);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.stats-section p {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 8. تنسيق معرض الصور (Carousel) */
.carousel {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.carousel-indicators button {
    background-color: var(--primary-color) !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s;
}

.carousel-indicators button.active {
    background-color: var(--primary-dark) !important;
    width: 20px;
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(55, 126, 79, 0.7);
    border-radius: 50%;
    padding: 20px;
    transition: all 0.3s;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.carousel-item img {
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

/* 9. تنسيق النصوص العامة */
.text-success {
    color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-gray) !important;
}

/* 10. تنسيق البطاقات والأقسام */
section {
    position: relative;
}

section.bg-white {
    background-color: var(--white) !important;
}

section.bg-light {
    background-color: var(--bg-light) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-4 {
    border-radius: var(--radius) !important;
}

/* 11. تحسينات التجاوب (Responsive) */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 1.8rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section {
        padding: 20px 0;
    }

    .stats-section h1 {
        font-size: 2rem;
    }

    .stats-section h2 {
        font-size: 1.5rem;
    }

    .card-feature {
        margin-bottom: 1rem;
    }

    .card-feature .display-4 {
        font-size: 2rem;
    }

    .floating-img {
        display: none;
    }

    .main-image-container {
        margin-top: 2rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 15px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .floating-img {
        width: 25% !important;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }
}

/* 12. تنسيقات إضافية للبطاقات في وضع hover */
.hover-shadow {
    transition: all 0.3s;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* 13. تنسيق الصور داخل البطاقات */
.card img {
    transition: all 0.3s;
}

.card:hover img {
    transform: scale(1.02);
}

/* 14. تنسيق الأيقونات */
.bi {
    transition: all 0.3s;
}

.card-feature:hover .bi {
    transform: scale(1.1);
}

/* 15. تنسيق الحاويات */
.container {
    position: relative;
    z-index: 1;
}

html,
body {
    height: 100%;
    margin: 0;
}

.page-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

/* ========================================
   16. تنسيقات الفوتر (Footer)
   ======================================== */

footer.bg-dark {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    position: relative;
    overflow: hidden;
}

footer.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* روابط الفوتر */
.footer-links li a {
    position: relative;
    padding-right: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links li a:hover {
    color: var(--accent-color) !important;
    padding-right: 10px;
}

.footer-links li a i {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.footer-links li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* أيقونات التواصل الاجتماعي */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-icon:hover {
    background: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: var(--white) !important;
}

.social-icon i {
    font-size: 1.2rem;
}

/* ========================================
   16. تنسيقات الفوتر - الشعارين المزدوجين
   ======================================== */

/* حاوية الشعار */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-wrapper:hover {
    background: rgba(55, 126, 79, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

