/* About page – green theme aligned with home, product, category */
:root {
    --about-primary: var(--primary-color);
    --about-primary-hover: var(--primary-hover);
    --about-secondary: var(--secondary-color);
    --about-accent: var(--accent-color);
    --about-light: #dcfce7;
    --about-light-bg: #f0fdf4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--light-bg, #f8fafc);
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

body.urdu {
    font-family: 'Noto Nastaliq Urdu', 'Inter', sans-serif;
    direction: rtl;
}

/* Hero – green gradient overlay, match product/category style */
.hero-bg {
    background: var(--primary-color) url('/images/about-us.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}


.section-bg {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%2316a34a' fill-opacity='0.04'%3E%3Cpath d='M20 40h20v20H20zM100 40h20v20h-20zM60 80h20v20H60zM20 120h20v20H20zM100 120h20v20h-20z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
    position: relative;
}

.section-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle – compact, attractive pill */
.language-toggle {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 9999px;
    padding: 4px 4px 4px 10px;
    box-shadow: 0 2px 12px rgba(22, 163, 74, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.35);
    backdrop-filter: blur(8px);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.language-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--about-primary);
    margin-right: 6px;
    font-size: 0.75rem;
    opacity: 0.9;
}

.lang-btn {
    padding: 5px 11px;
    border: none;
    background: transparent;
    border-radius: 9999px;
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #4b5563;
    min-width: 2.25rem;
    text-align: center;
}

.lang-btn:hover {
    color: var(--about-primary-hover);
}

.lang-btn.active {
    background: var(--about-primary);
    color: white;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.35);
}

.lang-btn:not(.active):hover {
    background: var(--about-light);
    color: var(--about-primary-hover);
}

/* Floating Elements – green/yellow accent */
.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    z-index: 0;
}

.floating-element-1 {
    width: 120px;
    height: 120px;
    background: var(--about-primary);
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.floating-element-2 {
    width: 80px;
    height: 80px;
    background: var(--about-secondary);
    top: 70%;
    right: 10%;
    animation: float 6s ease-in-out infinite 1s;
}

.floating-element-3 {
    width: 60px;
    height: 60px;
    background: var(--about-accent);
    bottom: 20%;
    left: 15%;
    animation: float 7s ease-in-out infinite 2s;
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.3s;
}

.hero-breadcrumb a:hover {
    color: white;
}

.hero-breadcrumb span {
    color: var(--about-light);
}

/* Story / Content Sections – cards with green accent */
.story-content {
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.08);
    border-left: 4px solid var(--about-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.urdu .story-content {
    border-left: none;
    border-right: 4px solid var(--about-primary);
}

.story-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.12);
}

.story-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--about-primary-hover);
    position: relative;
    display: inline-block;
}

/* .story-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--about-primary), var(--about-secondary));
    border-radius: 2px;
} */

body.urdu .story-title::after {
    left: auto;
    right: 0;
}

.story-text {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

/* Stats Section – green gradient like product/category header */
.stats-section {
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Section spacing */
.section {
    padding: 4rem 0;
    position: relative;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-animation.animated > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation.animated > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.animated > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.animated > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation.animated > *:nth-child(4) { transition-delay: 0.4s; }

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

/* Responsive */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .story-content {
        padding: 1.5rem;
    }
    .story-title {
        font-size: 1.5rem;
    }
    .language-toggle {
        top: 10px;
        right: 10px;
        padding: 3px 3px 3px 8px;
        font-size: 0.75rem;
    }
    .lang-btn {
        padding: 4px 9px;
        min-width: 2rem;
    }
    .language-toggle-icon {
        font-size: 0.7rem;
        margin-right: 4px;
    }
}
