/* ========================================
   About Page Styles
   Atelier Flint & Associates Architects
======================================== */

/* Hero Section Styles */
#about-hero {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.about-hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.7) 100%);
}

#about-hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

#about-hero p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Scroll Down Indicator Animation */
#about-hero .animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Company Story Timeline Styles */
#company-story {
    background: linear-gradient(135deg, #F8F9FA 0%, #ffffff 100%);
}

.timeline-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    transition: width 0.4s ease;
    z-index: 1;
}

.timeline-card:hover::before {
    width: 100%;
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FFD700 0%, #FF6B35 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.timeline-card h3 {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.timeline-card p {
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

/* Values & Mission Section */
#values-mission .value-card {
    background: linear-gradient(135deg, #F8F9FA 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 123, 255, 0.05) 100%);
    transition: width 0.4s ease;
    z-index: 1;
}

.value-card:hover::before {
    width: 100%;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.value-card h4,
.value-card p {
    position: relative;
    z-index: 2;
}

/* Mission Statement Card */
#values-mission .bg-gradient-to-r {
    background: linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

#values-mission .bg-gradient-to-r::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

#values-mission .bg-gradient-to-r:hover::before {
    left: 100%;
}

/* Team Section Styles */
#team {
    background: linear-gradient(135deg, #F8F9FA 0%, #ffffff 100%);
}

.team-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 123, 255, 0.05) 100%);
    transition: width 0.4s ease;
    z-index: 1;
}

.team-card:hover::before {
    width: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.team-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.team-image img {
    transition: transform 0.5s ease;
}

.team-content {
    position: relative;
    z-index: 2;
}

.qualification-badge {
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.qualification-badge:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #000000;
    transform: scale(1.05);
}

.team-contact a {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
}

.team-contact a:hover {
    background: #007BFF;
    color: white !important;
    transform: scale(1.1);
}

/* Team CTA Section */
#team .bg-gradient-to-r {
    background: linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Professional Certifications */
#certifications .certification-card {
    background: linear-gradient(135deg, #F8F9FA 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 123, 255, 0.1) 100%);
    transition: width 0.4s ease;
    z-index: 1;
}

.certification-card:hover::before {
    width: 100%;
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cert-icon {
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.certification-card h4,
.certification-card p {
    position: relative;
    z-index: 2;
}

/* Professional Memberships */
.membership-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.membership-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.membership-item i {
    transition: all 0.3s ease;
}

.membership-item:hover i {
    color: #28a745 !important;
    transform: scale(1.2);
}

/* Scroll Progress Indicator */
#scroll-progress {
    background: linear-gradient(90deg, #FFD700 0%, #FF6B35 100%);
    height: 4px;
    transform-origin: left;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #about-hero h1 {
        font-size: 3.5rem;
    }
    
    .timeline-card,
    .value-card,
    .team-card,
    .certification-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 992px) {
    #about-hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    #about-hero h1 {
        font-size: 3rem;
    }
    
    #about-hero p {
        font-size: 1.25rem;
    }
    
    .timeline-card {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    #company-story .flex-col {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #about-hero {
        min-height: 70vh;
    }
    
    #about-hero h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    #about-hero p {
        font-size: 1.125rem;
    }
    
    .timeline-year {
        font-size: 1.25rem;
    }
    
    .timeline-card h3 {
        font-size: 1.5rem;
    }
    
    .value-card,
    .team-card,
    .certification-card {
        margin-bottom: 1.5rem;
    }
    
    #values-mission .bg-gradient-to-r {
        padding: 2rem;
    }
    
    #team .bg-gradient-to-r {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    #about-hero h1 {
        font-size: 2rem;
    }
    
    #about-hero p {
        font-size: 1rem;
    }
    
    .timeline-card,
    .value-card,
    .team-card,
    .certification-card {
        padding: 1.5rem;
    }
    
    .team-image {
        height: 200px;
    }
    
    .team-image img {
        height: 100%;
        object-fit: cover;
    }
    
    .qualification-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .timeline-card,
    .value-card,
    .team-card,
    .certification-card {
        background: rgba(26, 26, 26, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .timeline-card h3,
    .value-card h4,
    .team-card h4,
    .certification-card h4 {
        color: #ffffff;
    }
    
    .timeline-card p,
    .value-card p,
    .team-card p,
    .certification-card p {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Print Styles */
@media print {
    #about-hero {
        min-height: auto;
        padding: 2rem 0;
        background: none !important;
    }
    
    #about-hero h1 {
        color: #000000 !important;
        font-size: 2rem;
    }
    
    #about-hero p {
        color: #333333 !important;
    }
    
    .timeline-card,
    .value-card,
    .team-card,
    .certification-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #cccccc;
        margin-bottom: 1rem;
    }
    
    .team-image img {
        max-height: 150px;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #about-hero .animate-bounce {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .timeline-card,
    .value-card,
    .team-card,
    .certification-card {
        border: 2px solid #000000;
        background: #ffffff;
    }
    
    .timeline-year {
        color: #000000 !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
    }
    
    .value-icon,
    .cert-icon {
        background: #000000 !important;
        color: #ffffff !important;
    }
}

/* Focus Styles for Accessibility */
.team-contact a:focus,
.qualification-badge:focus {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover Effects for Interactive Elements */
.timeline-card:hover h3,
.value-card:hover h4,
.team-card:hover h4,
.certification-card:hover h4 {
    color: #007BFF;
    transition: color 0.3s ease;
}

/* Enhanced Button Styles */
#about-hero a {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#about-hero a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

#about-hero a:hover::before {
    left: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD700 0%, #FF6B35 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
}