/* about.css - Isolated styling for About Us module */

.active-about {
    --color-primary: #E30613;
    --color-primary-rgb: 227, 6, 19;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.active-about section {
    padding: 80px 0;
    overflow: hidden;
}

.active-about .section-bg {
    background: var(--color-bg-section);
}

.active-about h1, .active-about h2, .active-about h3, .active-about h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.active-about p {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--color-text-main);
    font-style: normal;
}

/* Hero Section */
.active-about .hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/img/hero-bg.jpg') center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-align: center;
}

.active-about .hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: white !important; /* Force white color for light mode */
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.active-about .hero-section p {
    color: rgba(255,255,255,0.9) !important;
}

/* Feature Cards */
.active-about .feature-card {
    background: var(--color-bg-card);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.active-about .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: 0.3s;
    transform-origin: left;
}

.active-about .feature-card:hover::before {
    transform: scaleX(1);
}

.active-about .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.active-about .icon-box {
    font-size: 48px;
    margin-bottom: 24px;
}

/* Stats Section */
.active-about .stat-box {
    text-align: center;
    padding: 30px;
}

.active-about .stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.active-about .stat-label {
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Partner Slider */
.active-about .partner-slider {
    display: flex;
    gap: 40px;
    overflow: hidden;
    padding: 20px 0;
}

.active-about .partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 180px;
    transition: 0.3s;
}

.active-about .partner-logo {
    height: 60px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: 0.3s;
}

.active-about .partner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.active-about .partner-item:hover .partner-logo,
.active-about .partner-item:hover .partner-logo-icon {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.active-about .partner-item:hover .partner-name {
    opacity: 1;
    transform: translateY(0);
}

/* Values */
/* --- Bento 2.0 Premium Styles - Symmetry & Clarity Refinement --- */
.values-section {
    background: var(--color-bg-section, #ffffff);
    padding: 140px 0 !important;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

[data-theme="dark"] .values-section {
    background: #0a0a0a;
}

.bento-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 40px auto 0;
}

.bento-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px; /* Fixed base row height for better symmetry */
    gap: 20px; /* Tighter gap for modern bento look */
    grid-auto-flow: dense;
}

/* Base Item Style - Sharp & Professional */
/* Base Item Style - Vivid & Professional */
.bento-item-v2 {
    position: relative;
    border-radius: 30px;
    background: linear-gradient(145deg, #ffffff, #fdfdfd);
    border: 2px solid rgba(var(--color-primary-rgb, 227, 6, 19), 0.3); /* Stronger border visibility */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    perspective: 1200px;
}

[data-theme="dark"] .bento-item-v2 {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d); /* Deep lush dark gradient */
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

/* Perfectly Balanced Spans - Optimized for Full Text Visibility */
.bento-item-v2:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; } /* Master Feature */
.bento-item-v2:nth-child(6n+2) { grid-column: span 2; grid-row: span 1; }
.bento-item-v2:nth-child(6n+3) { grid-column: span 2; grid-row: span 1; } /* Innovation - Wide for text */
.bento-item-v2:nth-child(6n+4) { grid-column: span 2; grid-row: span 1; } /* Service - Wide for text */

/* Competitive Prices & Continuity - Now Balancing the Footer */
.bento-item-v2:nth-child(6n+5) { grid-column: span 2; grid-row: span 1; } 
.bento-item-v2:nth-child(6n+6) { grid-column: span 4; grid-row: span 1; } /* Continuity - Full Width */

/* Interactive States - Bold & Defined */
.bento-item-v2:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--color-primary, #E30613);
    box-shadow: 0 25px 60px rgba(var(--color-primary-rgb, 227, 6, 19), 0.15);
    z-index: 10;
}

[data-theme="dark"] .bento-item-v2:hover {
    background: rgba(35, 35, 35, 0.95);
    border-color: var(--color-primary, #E30613);
}

/* Icon & Content Proportions */
.bento-icon-v2 {
    width: 60px;
    height: 60px;
    background: rgba(var(--color-primary-rgb, 227, 6, 19), 0.08); /* Vivid icon background */
    border: 1px solid rgba(var(--color-primary-rgb, 227, 6, 19), 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--color-primary, #E30613);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Specific Style for Quality Icon (Child 1) */
.bento-item-v2:nth-child(6n+1) .bento-icon-v2 {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.15), transparent);
    animation: bento-pulse 4s infinite ease-in-out;
}

@keyframes bento-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(227,6,19,0)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 10px 20px rgba(227,6,19,0.2)); }
}


.bento-item-v2:hover .bento-icon-v2 {
    color: #ffffff;
    background: var(--color-primary, #E30613);
    transform: rotate(8deg) scale(1.05);
}

.bento-title-v2 {
    font-size: 1.56rem; /* Matching H4 standard from index.css */
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-heading, #111111);
    letter-spacing: -0.01em;
    font-family: inherit;
}

[data-theme="dark"] .bento-title-v2 { color: #ffffff; }

.bento-desc-v2 {
    font-size: 0.95rem; /* Exactly like the section below */
    color: var(--text-main, #333333);
    line-height: 1.6; /* Balanced for readability */
    margin-top: auto;
    font-weight: 400;
    font-family: inherit;
}

[data-theme="dark"] .bento-desc-v2 { color: #ffffff; }

/* Enrichment Elements for Master Boxes */
.bento-badge-v2 {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

/* Hosted Stats Grid - Auto-fit for Symmetry */
.bento-stats-grid-v2 {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Better fit for 5 or 6 items */
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.bento-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-v {
    font-size: 2rem; /* Balanced size for complex grids */
    font-weight: 900;
    color: #000000; /* Default Black for Light Mode */
    line-height: 1;
    transition: color 0.3s ease;
}

[data-theme="dark"] .stat-v {
    color: var(--color-primary, #E30613); /* Red for Dark Mode */
}

.stat-l {
    font-size: 0.9rem; /* Enlarged for readability */
    font-weight: 700;
    color: #666666; /* Grey for Light Mode */
    text-transform: uppercase;
    font-family: inherit;
    line-height: 1.3;
    transition: color 0.3s ease;
}

[data-theme="dark"] .stat-l { 
    color: #ffffff; /* White for Dark Mode */
}

/* Mouse Glow Subtle Accent */
.bento-glow-v2 {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--color-primary-rgb, 227, 6, 19), 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.bento-item-v2:hover .bento-glow-v2 { opacity: 1; }



/* Responsive Grid Adapting - Fully Mobile Optimized */
@media (max-width: 1100px) {
    .bento-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .bento-item-v2 { grid-column: span 1 !important; grid-row: span 1 !important; min-height: auto !important; padding: 30px; border-radius: 25px; }
    .bento-title-v2 { font-size: 1.4rem !important; }
}

@media (max-width: 600px) {
    .bento-grid-v2 { grid-template-columns: 1fr; gap: 15px; }
    .values-section { padding: 80px 0 !important; }
    .bento-item-v2 { padding: 25px; }
    .bento-stats-grid-v2 { 
        grid-template-columns: 1fr 1fr; /* Stay 2x2 for stats on mobile unless very small */
        gap: 15px;
    }
    .stat-v { font-size: 1.8rem; }
    .stat-l { font-size: 0.7rem; }
    
    /* Child 1 title correction for mobile */
    .bento-item-v2:nth-child(6n+1) .bento-title-v2 { font-size: 1.8rem !important; }
}

.value-indicator {
    width: 30px;
    height: 4px;
    background: var(--color-primary);
    margin: 0 auto;
    border-radius: 10px;
    opacity: 0.2;
    transition: all 0.4s ease;
}

.value-card-premium:hover .value-indicator {
    width: 70px;
    opacity: 1;
    box-shadow: 0 0 15px rgba(227, 6, 19, 0.4);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(227, 6, 19, 0.1) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.value-card-premium:hover .card-glow {
    opacity: 1;
}

@media (max-width: 992px) {
    .values-grid-display {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    .value-card-premium { padding: 25px 15px; min-height: 160px; }
    .value-text-premium { font-size: 1rem !important; }
    .value-icon-wrapper { width: 55px; height: 55px; font-size: 1.4rem; }
}

/* Slick Override for Mobile */
.values-slider .slick-dots { bottom: -30px; }
.values-slider .slick-dots li button:before { color: var(--color-primary); font-size: 8px; }

.values-slider {
    margin: 0 -10px;
    padding-bottom: 20px;
}

.value-item {
    padding: 8px 10px;
    outline: none;
}

.active-about .value-card {
    background: var(--color-bg-card, rgba(255, 255, 255, 0.08));
    padding: 20px 10px; /* Even smaller padding */
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-clr, rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px; /* Reduced from 160px */
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.active-about .value-icon {
    font-size: 36px; /* Reduced from 48px */
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(227, 6, 19, 0.2));
    transition: 0.3s;
}

.active-about .value-text {
    font-weight: 700;
    font-size: 1.1rem; /* Slightly smaller font */
    color: var(--color-text-main);
    line-height: 1.3;
}

[data-theme="dark"] .active-about .value-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.active-about .value-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(227, 6, 19, 0.15);
    background: rgba(227, 6, 19, 0.05);
}

.active-about .value-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(227, 6, 19, 0.3));
    transition: 0.3s;
}

.active-about .value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.active-about .value-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text-main);
    line-height: 1.4;
}

/* Slick Dots Custom Styling */
.values-slider .slick-dots {
    bottom: 0;
}

.values-slider .slick-dots li button:before {
    color: var(--color-primary);
    font-size: 12px;
    opacity: 0.2;
}

.values-slider .slick-dots li.slick-active button:before {
    color: var(--color-primary);
    opacity: 1;
}

/* CTA */
.active-about .cta-section {
    background: var(--color-primary);
    color: white;
    text-align: center;
    border-radius: 30px;
    margin: 40px 0;
    padding: 60px 40px;
}

.active-about .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Animation classes */
.active-about .reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .active-about .grid-2, 
    .active-about .grid-3, 
    .active-about .grid-4 {
        grid-template-columns: 1fr !important;
    }
    
    .active-about .hero-section {
        height: 300px;
    }
    
    .active-about .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .active-about .stat-number {
        font-size: 2.2rem;
    }
    
    .active-about .value-card {
        width: 100%;
        max-width: 300px;
    }
    
    .active-about .cta-buttons {
        flex-direction: column;
    }
    
    .active-about .cta-buttons .btn {
        width: 100%;
    }
}
