/**
 * About Us Page - Custom Styles
 * Συμπληρωματικά styles για την About page
 * 
 * @package Grabit
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.about-hero {
    position: relative;
    isolation: isolate;
}

/* Smooth gradient overlay animation */
.about-hero .absolute.inset-0.bg-gradient-to-br {
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */

.timeline-item {
    position: relative;
}

/* Desktop timeline connector line animation */
@media (min-width: 1024px) {
    .timeline-item .absolute.left-1\/2.top-0.w-1 {
        animation: slideDown 0.5s ease-out;
    }
    
    @keyframes slideDown {
        from {
            height: 0;
        }
        to {
            height: 100%;
        }
    }
}

/* ==========================================================================
   Team Member Cards
   ========================================================================== */

.team-member-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover {
    transform: translateY(-4px);
}

/* Modal transitions */
.team-modal {
    animation: fadeIn 0.2s ease-out;
}

.team-modal > div:first-child {
    animation: fadeIn 0.2s ease-out;
}

.team-modal > div:last-child {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Modal close button hover */
.team-modal button[data-modal-close] {
    transition: all 0.2s ease;
}

.team-modal button[data-modal-close]:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stat-item {
    position: relative;
    overflow: hidden;
}

/* Stats number counter animation (optional, με JS) */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Partners Section
   ========================================================================== */

.partner-item img {
    transition: all 0.3s ease;
}

/* Grayscale → Color on hover */
.partner-item img.grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
}

.partner-item:hover img.grayscale {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #3b82f6, #06b6d4);
    transition: height 0.3s ease;
}

.testimonial-card:hover::before {
    height: 100%;
}

/* ==========================================================================
   Careers CTA
   ========================================================================== */

.about-careers-cta a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Accessibility - Focus Visible
   ========================================================================== */

/* Enhanced focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Remove outline for mouse clicks */
:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .about-hero {
        min-height: 40vh !important;
        break-inside: avoid;
    }
    
    .team-member-card,
    .testimonial-card,
    .value-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    /* Hide modals, CTAs */
    .team-modal,
    .about-careers-cta,
    button[data-modal-open] {
        display: none !important;
    }
    
    /* Show full bio in print */
    .team-member-card .bio_short {
        display: block !important;
    }
}

/* ==========================================================================
   Reduced Motion (Accessibility)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .team-member-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Dark Mode Support (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Αν θέλετε dark mode support, προσθέστε styles εδώ */
    /* Π.χ. */
    /*
    .about-page {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }
    
    .team-member-card,
    .testimonial-card,
    .value-card {
        background-color: #2d2d2d;
        color: #e5e5e5;
    }
    */
}

/* ==========================================================================
   Mobile Optimizations
   ========================================================================== */

@media (max-width: 640px) {
    /* Ensure no horizontal scroll */
    .about-page {
        overflow-x: hidden;
    }
    
    /* Smaller spacing on mobile */
    .about-hero {
        min-height: 50vh;
    }
    
    /* Stack timeline vertically */
    .timeline-item {
        padding-left: 2rem;
    }
}

