/* About Page - Light Professional Theme */

/* CSS Variables */
:root {
    --primary: #151644;
    --secondary: #2563eb;
    --danger: #dc2626;
    --dark: #1f2937;
    --darker: #f8fafc;
    --light: #1f2937;
    --gray: #6b7280;
    --card-bg: rgba(255, 255, 255, 0.8);
}

/* Base Styles */
body {
    background: var(--darker);
    color: var(--light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.about-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(21, 22, 68, 0.05), rgba(37, 99, 235, 0.05));
    position: relative;
    overflow: hidden;
    padding: 5rem 5%;
    margin-top: 60px;
    text-align: center;
}

/* Animated Grid Background */
.about-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(21, 22, 68, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 22, 68, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

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

/* Scanning Line Effect */
.about-hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    top: 0;
    animation: scan 3s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2) drop-shadow(0 0 20px var(--primary)); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.company-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.badge {
    background: linear-gradient(135deg, rgba(21, 22, 68, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(21, 22, 68, 0.2), transparent);
    transition: left 0.5s ease;
}

.badge:hover::before {
    left: 100%;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(21, 22, 68, 0.3);
}

/* About Sections */
.about-section {
    padding: 5rem 5%;
    position: relative;
}

.about-section.overview {
    background: linear-gradient(180deg, var(--darker) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.about-section.mission {
    background: var(--darker);
}

.about-section.team {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, var(--darker) 100%);
}

.about-section.tech4peace {
    background: linear-gradient(135deg, rgba(21, 22, 68, 0.05), rgba(37, 99, 235, 0.05));
    position: relative;
}

/* Floating Particles for Tech4Peace Section */
.tech4peace::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    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%3Cg fill='%23151644' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(21, 22, 68, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Hover Effect with Glow */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 0.1;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::after {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(21, 22, 68, 0.2);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.about-content h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Credentials Box */
.credentials-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(21, 22, 68, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.credentials-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.credentials-box:hover::before {
    opacity: 0.08;
}

.credentials-box:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.credentials-box h3 {
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.credentials-list {
    list-style: none;
}

.credentials-list li {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(21, 22, 68, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.credentials-list li:hover {
    background: rgba(21, 22, 68, 0.1);
    transform: translateX(5px);
}

.credentials-list strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.credentials-list p {
    color: var(--gray);
    line-height: 1.6;
}

/* Mission Cards */
.mission-card {
    text-align: center;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mission-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.mission-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.values-list {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.values-list li {
    padding: 0.75rem 0;
    color: var(--gray);
    padding-left: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.values-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.values-list li:hover {
    color: var(--dark);
    transform: translateX(5px);
}

/* Team Section */
.team-card {
    text-align: center;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 700;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary);
    position: relative;
    transition: all 0.3s ease;
}

.team-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(21, 22, 68, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-photo:hover::before {
    opacity: 1;
    animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.team-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(21, 22, 68, 0.5);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.position {
    color: var(--primary);
    margin: 0.5rem 0 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.cert-badge {
    background: linear-gradient(135deg, rgba(21, 22, 68, 0.1), rgba(37, 99, 235, 0.1));
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(21, 22, 68, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(21, 22, 68, 0.3), transparent);
    transition: left 0.5s ease;
}

.cert-badge:hover::before {
    left: 100%;
}

.cert-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 22, 68, 0.3);
}

.bio {
    color: var(--gray);
    margin-top: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* About Cards - Legacy Support */
.about-card,
.value-card {
    background: var(--card-bg);
    border: 1px solid rgba(21, 22, 68, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(21, 22, 68, 0.08);
}

.about-card:hover,
.value-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(21, 22, 68, 0.15);
    transform: translateY(-5px);
}

.about-card .icon,
.value-card .icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.about-card h3,
.value-card h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.about-card p,
.value-card p {
    color: var(--gray);
    line-height: 1.8;
    text-align: center;
}

/* Stats Section */
.stat-card {
    background: var(--card-bg);
    border: 1px solid rgba(21, 22, 68, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(21, 22, 68, 0.08);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(21, 22, 68, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(21, 22, 68, 0.2);
}

.stat-label {
    color: var(--gray);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team Section - Legacy Support */
.team-member {
    background: var(--card-bg);
    border: 1px solid rgba(21, 22, 68, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(21, 22, 68, 0.08);
}

.team-member:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(21, 22, 68, 0.15);
    transform: translateY(-5px);
}

.team-member h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.team-member p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--gray);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.highlight-text {
    color: var(--primary);
    font-weight: 600;
}

/* Background Elements */
.background-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(21, 22, 68, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 22, 68, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
}

.glowing-border {
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(21, 22, 68, 0.3);
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

/* Timeline */
.timeline-item {
    border-left: 2px solid rgba(21, 22, 68, 0.2);
    padding-left: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(21, 22, 68, 0.3);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid rgba(21, 22, 68, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(21, 22, 68, 0.08);
}

.timeline-content h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* Certifications */
.certification-badge {
    background: var(--card-bg);
    border: 1px solid rgba(21, 22, 68, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(21, 22, 68, 0.08);
}

.certification-badge:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(21, 22, 68, 0.15);
    transform: translateY(-3px);
}

.certification-badge .cert-name {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certification-badge .cert-org {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.about-cta,
.team-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 22, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-cta:hover,
.team-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(21, 22, 68, 0.4);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-badges {
        flex-direction: column;
        align-items: center;
    }

    .about-section {
        padding: 3rem 3%;
    }

    .team-card {
        margin-bottom: 2rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .credentials-box h3 {
        font-size: 1.5rem;
    }

    .about-hero {
        padding: 3rem 5%;
        min-height: 50vh;
    }

    .about-card,
    .mission-card,
    .value-card,
    .team-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 2rem 3%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-card,
    .mission-card,
    .value-card,
    .team-card {
        padding: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .card, .credentials-box {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
