/* ============================================
   ABOUT PAGE - Bio-Link.se
   Company story, mission, team & values
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #8b9df8;
    --secondary: #764ba2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success: #28a745;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-900: #212529;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0,0,0,0.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,0.175);
    --shadow-xl: 0 2rem 4rem rgba(0,0,0,0.2);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. NAVBAR ENHANCEMENTS
   ============================================ */
.navbar {
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--primary) !important;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* ============================================
   3. ABOUT HERO SECTION
   ============================================ */
.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about-hero h1 {
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-hero p.lead {
    position: relative;
    color: rgba(255,255,255,0.95);
}

/* ============================================
   4. SECTION BADGES
   ============================================ */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   5. STATS SECTION
   ============================================ */
.stats-section {
    padding: 4rem 0;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   6. STORY SECTION
   ============================================ */
.story-section {
    padding: 5rem 0;
}

.story-image-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-highlight {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.story-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.story-highlight:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.story-highlight:hover::before {
    transform: scaleX(1);
}

.highlight-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.story-highlight h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.story-highlight p {
    color: var(--gray-600);
    margin: 0;
}

/* ============================================
   7. VALUES SECTION
   ============================================ */
.values-section {
    padding: 5rem 0;
}

.value-card {
    background: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.value-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.value-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.value-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.value-card a:hover {
    text-decoration: underline;
}

/* ============================================
   8. TECHNOLOGY SECTION
   ============================================ */
.tech-section {
    padding: 5rem 0;
}

.tech-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.tech-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tech-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.tech-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

/* ============================================
   9. TEAM SECTION
   ============================================ */
.team-section {
    padding: 5rem 0;
}

.team-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.team-card h4 {
    font-weight: 800;
    color: var(--gray-900);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gray-50);
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.company-badge strong {
    font-size: 1.2rem;
    color: var(--gray-900);
}

/* ============================================
   10. CTA SECTION
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    padding: 5rem 2rem;
    margin: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.cta-section h2,
.cta-section p,
.cta-section .btn {
    position: relative;
}

/* ============================================
   11. BUTTONS
   ============================================ */
.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
    text-decoration: none;
}

.btn-light {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--gray-50);
    color: var(--primary);
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   12. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ============================================
   13. UTILITY CLASSES
   ============================================ */
.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */

/* Large Tablets (≤991px) */
@media (max-width: 991px) {
    .story-section {
        padding: 4rem 0;
    }

    .story-image-container {
        margin-top: 3rem;
    }

    .values-section,
    .tech-section,
    .team-section {
        padding: 4rem 0;
    }

    .social-links {
        margin-top: 1.5rem;
    }
}

/* Tablets & Mobile (≤768px) */
@media (max-width: 768px) {
    .about-hero {
        padding: 100px 0 60px;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .story-highlight {
        padding: 1.5rem;
    }

    .story-highlight:hover {
        transform: translateY(-4px);
    }

    .value-card {
        margin-bottom: 1.5rem;
    }

    .tech-card {
        margin-bottom: 1.5rem;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
        margin: 4rem 0 0;
    }

    .btn {
        width: 100%;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
}

/* Small Mobile (≤576px) */
@media (max-width: 576px) {
    .about-hero {
        padding: 80px 0 40px;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .value-icon,
    .tech-logo {
        font-size: 2.5rem;
    }

    .highlight-icon {
        font-size: 2rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

/* ============================================
   15. ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   16. PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .cta-section,
    footer {
        display: none;
    }

    .about-hero {
        padding: 2rem 0;
        background: white !important;
        color: black !important;
    }

    .stat-card,
    .value-card,
    .tech-card,
    .team-card {
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h2, h3 {
        page-break-after: avoid;
    }
}