/* ========================================
   ABOUT PAGE CSS - LinkCodeAI
   ======================================== */

/* === VARIABLES === */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f5f7fa;
    --gray-medium: #6b7280;
    --orange-primary: #ff6b35;
    --orange-hover: #ff5722;
    --green-accent: #10b981;
    --blue-hover: #3b82f6;
    --navy-dark: #0a1929;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.about-hero-section {
    position: relative;
    min-height: 500px;
    height: 70vh;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    z-index: 1;
}

.about-hero-section .container {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.breadcrumbs li {
    color: var(--gray-medium);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: var(--gray-medium);
}

.breadcrumbs a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color var(--transition-normal);
    position: relative;
}

.breadcrumbs a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--orange-primary);
    transition: width var(--transition-normal);
}

.breadcrumbs a:hover {
    color: var(--orange-primary);
}

.breadcrumbs a:hover::after {
    width: 100%;
}

/* Hero Content */
.about-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-headline {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.about-mission-statement {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.about-mission-statement p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.about-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.8s ease 0.4s backwards;
    position: relative;
    overflow: hidden;
}

.about-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.about-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.about-cta-button:hover {
    background: linear-gradient(135deg, var(--blue-hover), #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.about-cta-button svg {
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 1;
}

.about-cta-button:hover svg {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   OUR STORY SECTION
   ======================================== */
.our-story-section {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-accent), var(--orange-primary));
    border-radius: 2px;
}

.story-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--green-accent), var(--orange-primary));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--green-accent), var(--orange-primary));
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--gray-light);
    z-index: 2;
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2);
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all var(--transition-slow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--white);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white) transparent transparent;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--orange-primary);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ========================================
   VISION & VALUES SECTION
   ======================================== */
.vision-values-section {
    padding: 80px 0;
    background: var(--white);
}

.vision-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.vision-statement {
    font-size: 24px;
    line-height: 1.6;
    color: var(--gray-medium);
    font-style: italic;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-card {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--green-accent);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--green-accent), #059669);
    border-radius: 50%;
    color: var(--white);
    margin-bottom: 20px;
    transition: all var(--transition-slow);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.value-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
}

.value-description {
    font-size: 16px;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--gray-medium);
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all var(--transition-slow);
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.member-photo {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity var(--transition-normal);
}

.team-member-card:hover .member-photo img {
    transform: scale(1.05);
    opacity: 0.9;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 41, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.team-member-card:hover .member-overlay {
    opacity: 1;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--green-accent);
    color: var(--white);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--orange-primary);
    transform: scale(1.2) rotate(5deg);
}

.member-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin: 20px 20px 10px;
}

.member-role {
    font-size: 16px;
    color: var(--green-accent);
    font-weight: 600;
    margin: 0 20px 10px;
}

.member-bio {
    font-size: 14px;
    color: var(--gray-medium);
    margin: 0 20px 20px;
    line-height: 1.6;
}

/* ========================================
   ACHIEVEMENTS SECTION
   ======================================== */
.achievements-section {
    padding: 80px 0;
    background: var(--white);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.achievement-card {
    background: linear-gradient(135deg, var(--gray-light), var(--white));
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-slow);
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--orange-primary);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
    background: linear-gradient(135deg, var(--white), var(--gray-light));
}

.achievement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    border-radius: 50%;
    color: var(--white);
    margin-bottom: 25px;
    transition: all var(--transition-slow);
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.achievement-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
}

.achievement-label {
    font-size: 16px;
    color: var(--gray-medium);
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.about-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1e3a5f 100%);
    color: var(--white);
    text-align: center;
}

.about-cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-cta-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.about-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.about-cta-btn:hover {
    background: linear-gradient(135deg, var(--orange-hover), #e64a19);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.6);
}

.about-cta-btn svg {
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 1;
}

.about-cta-btn:hover svg {
    transform: translateX(5px);
}

/* ========================================
   FADE-IN ANIMATION
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .about-hero-headline {
        font-size: 38px;
    }
    
    .timeline-item {
        flex-direction: column !important;
    }
    
    .timeline-content {
        width: 80%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about-hero-section {
        min-height: 450px;
        height: 60vh;
    }
    
    .about-hero-headline {
        font-size: 32px;
    }
    
    .about-mission-statement p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .our-story-section,
    .vision-values-section,
    .team-section,
    .achievements-section {
        padding: 60px 0;
    }
    
    .story-timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .values-grid,
    .team-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .about-cta-section {
        padding: 60px 0;
    }
    
    .about-cta-title {
        font-size: 28px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.about-cta-button:focus-visible,
.about-cta-btn:focus-visible,
.social-link:focus-visible {
    outline: 3px solid var(--green-accent);
    outline-offset: 3px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}