/**
 * DigitalDuniya - About Page CSS
 * Custom styles for about us page
 */

/* =====================================================
   ABOUT HERO SECTION
   ===================================================== */
.about-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin: 24px 0;
}

.about-hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.about-stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.about-stat-number {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.about-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.about-hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* =====================================================
   MISSION & VISION CARDS
   ===================================================== */
.mission-card {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-200);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.mission-icon i {
    font-size: 36px;
    color: white;
}

.mission-card h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.mission-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--gray-700);
}

.mission-list i {
    color: var(--accent-green);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* =====================================================
   VALUES SECTION
   ===================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.value-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-100);
    animation: fadeInUp 0.6s ease-out;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.3);
}

.value-icon i {
    font-size: 32px;
    color: white;
}

.value-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}

/* =====================================================
   TIMELINE SECTION
   ===================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.timeline-left .timeline-content {
    width: calc(50% - 60px);
    margin-left: 0;
    margin-right: auto;
    text-align: right;
}

.timeline-right .timeline-content {
    width: calc(50% - 60px);
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-100);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-200);
}

.timeline-year {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-600);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.1);
}

/* =====================================================
   TEAM SECTION
   ===================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.team-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--gray-200);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
}

.team-placeholder i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.5);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 12px;
}

.team-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-social-link:hover {
    background: var(--primary-600);
    transform: translateY(-4px);
}

.team-info {
    padding: 24px;
}

.team-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.team-position {
    color: var(--primary-600);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    margin: 0;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .about-hero-title {
        font-size: 36px;
    }

    .about-hero-subtitle {
        font-size: 16px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .about-stat-number {
        font-size: 32px;
    }

    .mission-card {
        padding: 32px 24px;
    }

    .mission-card h2 {
        font-size: 24px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline mobile view */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 40px 1fr;
        gap: 20px;
    }

    .timeline-left .timeline-content,
    .timeline-right .timeline-content {
        grid-column: 2;
        text-align: left;
    }

    .timeline-dot {
        grid-column: 1;
        margin-left: 10px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .mission-icon {
        width: 60px;
        height: 60px;
    }

    .mission-icon i {
        font-size: 28px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
    }

    .value-icon i {
        font-size: 24px;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}