/* =========================================================
   ABOUT.CSS - EXECUTIVE EDITION (CLEAN VERSION)
   ========================================================= */

/* --- 1. BIO SECTION (STYLING ONLY) --- */
/* ΣΗΜΕΙΩΣΗ: Το ύψος και το κεντράρισμα τα αναλαμβάνει πλέον 
   η κλάση .full-screen-hero από το global.css */

.bio-section {
    position: relative;
    width: 100%;
    
    /* ΜΟΝΟ ΤΟ ΝΤΥΣΙΜΟ (Styling) */
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
    overflow: visible;
}

.bio-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr; 
    gap: 90px;
    align-items: center; 
}

/* --- Φωτογραφία Wrapper: "The Oxford Frame" --- */
.bio-image {
    position: relative;
    z-index: 1;
    display: block;
    margin-left: 10px; 
    
    /* Styling */
    background: #fff;
    padding: 20px; 
    border: 1px solid #e5e5e5;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.12);
    border-radius: 4px;

    /* --- ΟΙ 3 ΕΝΤΟΛΕΣ ΓΙΑ ΝΑ ΣΤΑΜΑΤΗΣΕΙ ΤΟ ΚΟΥΝΗΜΑ --- */
    /* 1. Ενεργοποιεί την επιτάχυνση υλικού (GPU) */
    transform: translateZ(0); 
    
    /* 2. Αποτρέπει το τρεμόπαιγμα στις άκρες */
    backface-visibility: hidden; 
    
    /* 3. Προειδοποιεί τον browser ότι αυτό το στοιχείο θα αλλάξει */
    will-change: transform, opacity;
}

/* --- Η Εσωτερική Γραμμή --- */
.bio-image::after {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(138, 13, 45, 0.15); 
    z-index: 2;
    pointer-events: none; 
}

.bio-image img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

/* --- Badge Εμπειρίας --- */
.experience-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: var(--ergo-red);
    color: #fff;
    padding: 20px 30px;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(138, 13, 45, 0.25);
    border: 4px solid #fff; 
    z-index: 10;
}

.experience-badge .years {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Manrope', sans-serif;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    opacity: 0.9;
}

/* --- Τυπογραφία --- */
.bio-text h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #111;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.bio-text h4 {
    color: var(--ergo-red);
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.intro-text {
    font-size: 1.35rem;
    font-weight: 400;
    color: #222;
    line-height: 1.6;
    margin-bottom: 30px;
    border-left: 3px solid var(--ergo-red);
    padding-left: 25px;
    font-style: italic;
}

.bio-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    /* Σβήσαμε το .bio-section από εδώ γιατί το αναλαμβάνει το global css */
    
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .bio-image {
        margin: 0 20px;
    }
    .intro-text {
        border-left: none;
        padding-left: 0;
        font-size: 1.2rem;
        border-top: 3px solid var(--ergo-red);
        padding-top: 20px;
    }
    .experience-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -30px;
    }
}

/* --- 3. TIMELINE SECTION (PLATINUM ZEBRA) --- */
.timeline-section {
    padding: 100px 0;
    background-color: #f8f5f6;
    position: relative;
    overflow: hidden;
}

.section-header.center {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .tagline {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ergo-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    line-height: 1.2;
    font-weight: 800;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--ergo-red) 0%, rgba(138, 13, 45, 0.1) 100%);
    top: 0; bottom: 0; left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    z-index: 0; 
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    z-index: 2;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-content {
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(138, 13, 45, 0.1);
    border-color: rgba(138, 13, 45, 0.3);
}

/* Arrows */
.timeline-content::before, .timeline-content::after {
    content: " "; position: absolute; top: 26px; width: 0; height: 0; border-style: solid; transition: border-color 0.3s ease;
}
.timeline-item:nth-child(odd) .timeline-content::before { right: -11px; z-index: 1; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent rgba(0,0,0,0.05); }
.timeline-item:nth-child(odd) .timeline-content::after { right: -9px; z-index: 2; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent #fff; }
.timeline-item:nth-child(odd) .timeline-content:hover::before { border-color: transparent transparent transparent rgba(138, 13, 45, 0.3); }

.timeline-item:nth-child(even) .timeline-content::before { left: -10px; z-index: 1; border-width: 10px 10px 10px 0; border-color: transparent rgba(0,0,0,0.05) transparent transparent; }
.timeline-item:nth-child(even) .timeline-content::after { left: -9px; z-index: 2; border-width: 10px 10px 10px 0; border-color: transparent #fff transparent transparent; }
.timeline-item:nth-child(even) .timeline-content:hover::before { border-color: transparent rgba(138, 13, 45, 0.3) transparent transparent; }

/* Dot */
.timeline-dot {
    width: 18px; height: 18px; background-color: #fff; 
    border: 4px solid var(--ergo-red); position: absolute; border-radius: 50%;
    top: 30px; right: -9px; box-shadow: 0 0 0 10px #f8f5f6;
    z-index: 10;
}
.timeline-item:nth-child(even) .timeline-dot { left: -9px; right: auto; }

.date-badge { display: inline-block; background-color: var(--ergo-red); color: #fff; padding: 6px 15px; border-radius: 50px; font-weight: 700; margin-bottom: 15px; }
.icon-wrapper { font-size: 2rem; color: var(--ergo-red); margin-bottom: 10px; }
.timeline-content h3 { margin-bottom: 10px; font-weight: 800; font-size: 1.25rem; }
.timeline-content p { font-size: 0.95rem; color: #666; line-height: 1.6; }


/* --- 4. VALUES SECTION --- */
.values-section {
    padding: 100px 0;
    background-color: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--ergo-red);
    box-shadow: 0 15px 40px rgba(138, 13, 45, 0.1);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--ergo-red);
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-card:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.value-card h3 { margin-bottom: 15px; font-size: 1.3rem; font-weight: 800; }
.value-card p { color: #666; font-size: 1rem; line-height: 1.6; }


/* --- 5. MINI CTA BANNER (UPDATED TO ERGO RED) --- */
.cta-banner-mini {
    /* Το Premium Gradient της ERGO */
    background: linear-gradient(90deg, #7B0A28 0%, #220305 100%);
    padding: 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.flex-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px; /* Ο χώρος που είχαμε ορίσει */
}

.cta-text h3 { 
    font-size: 2rem; 
    margin-bottom: 10px; 
    font-weight: 800; 
    max-width: 700px; 
}

.cta-text p { 
    opacity: 0.9; 
    font-size: 1.1rem; 
}

.btn-white {
    background: #fff;
    /* Τα γράμματα γίνονται το βαθύ κόκκινο για να δένουν με το φόντο */
    color: #7B0A28; 
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex-shrink: 0; 
    white-space: nowrap; 
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    /* Προαιρετικά: Μια πολύ απαλή απόχρωση στο hover για αίσθηση αλλαγής */
    background-color: #f9f9f9; 
}


/* --- 6. RESPONSIVE (EXTRA) --- */
@media (max-width: 900px) {
    .flex-cta { flex-direction: column; gap: 30px; text-align: center; }
}

@media (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; text-align: left; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 21px; right: auto; }
    
    .timeline-item:nth-child(odd) .timeline-content::before, .timeline-item:nth-child(even) .timeline-content::before { left: -10px; right: auto; border-width: 10px 10px 10px 0; border-color: transparent rgba(0,0,0,0.05) transparent transparent; }
    .timeline-item:nth-child(odd) .timeline-content::after, .timeline-item:nth-child(even) .timeline-content::after { left: -9px; right: auto; border-width: 10px 10px 10px 0; border-color: transparent #fff transparent transparent; }
    .timeline-item:nth-child(odd) .timeline-content:hover::before, .timeline-item:nth-child(even) .timeline-content:hover::before { border-color: transparent rgba(138, 13, 45, 0.3) transparent transparent; }
    
    .values-grid { grid-template-columns: 1fr; }
}

/* --- 7. ANIMATIONS --- */

/* Άλλαξε το .flex-cta σε .cta-banner-mini */
.timeline-item, 
.bio-grid, 
.value-card,
.cta-banner-mini {  /* <--- ΕΔΩ Η ΑΛΛΑΓΗ */
    opacity: 0;
    transform: translateY(60px); /* Το αυξήσαμε λίγο (60px) για πιο ωραία είσοδο */
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Κατάσταση Εμφάνισης */
.timeline-item.visible, 
.bio-grid.visible, 
.value-card.visible,
.cta-banner-mini.visible { /* <--- ΚΑΙ ΕΔΩ */
    opacity: 1;
    transform: translateY(0);
}

/* Τα delay για τις κάρτες μένουν ίδια */
.value-card:nth-child(1) { transition-delay: 0.1s; }
.value-card:nth-child(2) { transition-delay: 0.2s; }
.value-card:nth-child(3) { transition-delay: 0.3s; }