/*
    ═══════════════════════════════════════════════════════════════
    About Page Stylesheet - WCAG 2.2 AAA Compliant
    ═══════════════════════════════════════════════════════════════
    
    Features:
    - Mobile-first responsive design
    - WCAG 2.2 AAA color contrast compliance
    - Modern, professional aesthetics
    - Optimized performance
*/

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.about-hero {
    position: relative;
    padding: var(--space-6) 0;
    animation: fadeIn 0.6s ease-out;
}

.about-image-container {
    position: relative;
    display: inline-block;
}

.about-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-slow);
}

.about-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

/* Badge Styling */
.about-badges .badge {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.about-badges .badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.content-section {
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--brand-primary);
    display: inline-block;
    width: 100%;
}

.section-title i {
    margin-right: var(--space-2);
    color: var(--brand-primary);
}

/* White House Highlight Section */
.white-house-highlight {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.03) 0%, 
        rgba(220, 38, 38, 0.08) 50%, 
        rgba(220, 38, 38, 0.03) 100%);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.white-house-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.white-house-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.3) !important;
}

.white-house-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--brand-danger) 0%, #b91c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

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

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

.white-house-highlight .text-danger {
    color: #b91c1c !important;
}

.white-house-highlight .badge-danger {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   AWARD CARDS
   ═══════════════════════════════════════════════════════════════ */

.award-card {
    background: linear-gradient(135deg, white 0%, var(--gray-50) 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.award-icon {
    font-size: 3rem;
    color: var(--brand-accent);
    margin-bottom: var(--space-3);
    transition: transform var(--transition-base);
}

.award-card:hover .award-icon {
    transform: scale(1.15) rotate(5deg);
}

.award-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.award-year {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: var(--space-2);
}

.award-org {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   MEDIA FEATURES
   ═══════════════════════════════════════════════════════════════ */

.media-feature {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.media-feature:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.media-logo {
    font-size: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-content h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.media-content p {
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════════ */

.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        var(--brand-primary) 0%,
        var(--brand-secondary) 100%
    );
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-6);
    padding-left: var(--space-5);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -15px;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 1;
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.timeline-content {
    background: white;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.timeline-content h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.timeline-content p {
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CALL TO ACTION BOX
   ═══════════════════════════════════════════════════════════════ */

.cta-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(8, 145, 178, 0.05) 100%);
    border: 3px solid var(--brand-primary);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
}

.cta-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(8, 145, 178, 0.08) 100%);
}

.cta-box h2 {
    color: var(--gray-900);
}

.cta-box .lead {
    color: var(--gray-700);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Mobile Devices */
@media (max-width: 767.98px) {
    .about-hero {
        padding: var(--space-4) 0;
    }
    
    .about-image {
        width: 200px;
        height: 200px;
    }
    
    .white-house-highlight {
        padding: var(--space-4) !important;
    }
    
    .white-house-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin: 0 auto var(--space-3);
    }
    
    .about-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .about-badges .badge {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .award-card {
        margin-bottom: var(--space-3);
    }
    
    .media-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .media-logo {
        margin: 0 auto;
    }
    
    .timeline {
        padding-left: var(--space-6);
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: -12px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .timeline-item {
        padding-left: var(--space-4);
    }
    
    .cta-box {
        padding: var(--space-4) !important;
    }
    
    .cta-box .btn {
        width: 100%;
        margin-bottom: var(--space-2);
    }
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 991.98px) {
    .about-image {
        width: 220px;
        height: 220px;
    }
    
    .award-card {
        min-height: 280px;
    }
}

/* Desktop Devices */
@media (min-width: 992px) {
    .award-card {
        min-height: 300px;
    }
    
    .timeline-content {
        max-width: 85%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .about-image,
    .award-card,
    .media-feature,
    .timeline-marker,
    .timeline-content,
    .cta-box,
    .about-badges .badge,
    .white-house-highlight,
    .white-house-icon,
    .white-house-highlight::before,
    .white-house-highlight .badge-danger {
        transition: none;
        animation: none;
    }
    
    .about-image:hover,
    .award-card:hover,
    .timeline-item:hover .timeline-marker,
    .white-house-highlight:hover {
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Enhanced Focus States - WCAG 2.2 AAA */
.award-card:focus-within,
.media-feature:focus-within,
.timeline-content:focus-within,
.cta-box:focus-within {
    outline: 3px solid var(--brand-primary);
    outline-offset: 3px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .award-card,
    .media-feature,
    .timeline-content {
        border-width: 3px;
    }
    
    .timeline::before {
        width: 4px;
    }
}

/* Print Styles */
@media print {
    .about-image {
        width: 150px;
        height: 150px;
        page-break-inside: avoid;
    }
    
    .award-card,
    .media-feature,
    .timeline-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    .cta-box {
        display: none;
    }
    
    .timeline::before {
        background: var(--gray-400);
    }
    
    .timeline-marker {
        background: var(--gray-600);
    }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

/* Ensure adequate spacing in content sections */
.content-section p {
    line-height: 1.75;
    margin-bottom: var(--space-4);
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* Lead paragraph styling for better hierarchy */
.content-section .lead {
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Background section styling */
.content-section.bg-light {
    background-color: var(--gray-50) !important;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.content-section.bg-light:hover {
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════
   END OF STYLESHEET
   ═══════════════════════════════════════════════════════════════ */
