/* ======================================
   ملف التحسينات الإضافية
   css/enhancements.css
====================================== */

/* ======================================
   Partners Section Styles
====================================== */
.partners-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(13,77,61,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.partners-section .container {
    position: relative;
    z-index: 1;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.partner-card {
    background: var(--bg-color);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.partner-card:hover::before {
    transform: scaleX(1);
}

.partner-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 77, 61, 0.2);
}

.partner-logo {
    width: 140px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.4s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.15);
}

.partner-card h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    transition: var(--transition);
}

.partner-card:hover h4 {
    color: var(--primary-light);
}

/* ======================================
   Enhanced Product Price Display
====================================== */
.product-price-tag {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(13, 77, 61, 0.2);
}

.product-price-tag .price-value {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.product-price-tag .price-currency {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 600;
    margin-left: 5px;
}

/* ======================================
   Page Header Section
====================================== */
.page-header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 25px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.breadcrumb a {
    color: white;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ======================================
   Enhanced Feature Boxes
====================================== */
.feature-box {
    position: relative;
    background: var(--bg-color);
    padding: 45px 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.05;
    line-height: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(13, 77, 61, 0.3);
}

.feature-box h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-box p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ======================================
   Enhanced Stats Section
====================================== */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="hexagons" width="50" height="43.4" patternUnits="userSpaceOnUse"><path d="M24,0 L49,12.5 L49,37.5 L24,50 L0,37.5 L0,12.5 Z" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    position: relative;
    z-index: 1;
}

.stat-box {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px);
}

.stat-box .stat-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.stat-box:nth-child(2) .stat-icon {
    animation-delay: 0.5s;
}

.stat-box:nth-child(3) .stat-icon {
    animation-delay: 1s;
}

.stat-box:nth-child(4) .stat-icon {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-box h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-box p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 600;
}

/* ======================================
   Enhanced CTA Section
====================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    border-width: 3px;
}

/* ======================================
   Responsive Adjustments
====================================== */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .partner-card {
        padding: 25px 20px;
        min-height: 170px;
    }
    
    .partner-logo {
        width: 110px;
        height: 70px;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .page-header-content p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-box h3 {
        font-size: 2.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .partner-card {
        padding: 20px 15px;
        min-height: 150px;
    }
    
    .partner-logo {
        width: 100px;
        height: 60px;
    }
    
    .page-header-section {
        padding: 60px 0 40px;
    }
    
    .page-header-content h1 {
        font-size: 1.6rem;
    }
    
    .feature-box {
        padding: 35px 25px;
    }
    
    .feature-number {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
    
    .stat-box h3 {
        font-size: 2rem;
    }
    
    .stat-box p {
        font-size: 1rem;
    }
}

/* ======================================
   Print Styles
====================================== */
@media print {
    .partners-section,
    .stats-section,
    .cta-section {
        page-break-inside: avoid;
    }
    
    .partner-card,
    .feature-box {
        break-inside: avoid;
    }
}

/* ======================================
   Dark Mode Adjustments
====================================== */
body.dark-mode .partner-card,
body.dark-mode .feature-box {
    background: var(--bg-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

body.dark-mode .partner-logo img {
    filter: grayscale(100%) brightness(1.2);
}

body.dark-mode .partner-card:hover .partner-logo img {
    filter: grayscale(0%) brightness(1.4);
}

body.dark-mode .stat-box {
    background: rgba(0,0,0,0.2);
}

body.dark-mode .stat-box:hover {
    background: rgba(0,0,0,0.3);
}