/* ΦΟΡΤΩΣΗ CUSTOM ΓΡΑΜΜΑΤΟΣΕΙΡΑΣ (Από τον φάκελο fonts) */
@font-face {
    font-family: 'AstyMonospaced';
    src: url('fonts/AstyMonospaced-Thin.woff2') format('woff2'),
         url('fonts/AstyMonospaced-Thin.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-red: #bf1e1e;
    --bg-color: #f4f4f4;
    --text-color: #1a1a1a;
    --font-main: 'AstyMonospaced', sans-serif; /* Εφαρμογή της νέας γραμματοσειράς */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.5;
    padding-top: 80px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

/* ΛΟΓΟΤΥΠΟ (ΕΙΚΟΝΑ) */
.logo-box {
    display: flex;
    align-items: center;
}

.logo-box img {
    height: 34px; /* Αυτό είναι ακριβώς το ύψος που είχε το προηγούμενο κόκκινο κουτί */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

nav ul li a:hover { text-decoration: underline; }

/* SOCIAL ICONS */
.social-icons, .social-icons-body {
    display: flex;
    gap: 10px;
}

.social-icons a, .social-icons-body a {
    width: 28px;
    height: 28px;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s;
    color: black;
}

.social-icons a:hover, .social-icons-body a:hover {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.social-icons-body {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* MARQUEE BANNER (ΚΙΝΟΥΜΕΝΟ) */
.hero-banner {
    background-color: var(--primary-red);
    color: black;
    padding: 40px 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-bottom: 40px;
}

.marquee-wrapper {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    font-size: 5rem;
    font-weight: bold;
    padding-right: 50px;
    letter-spacing: -2px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text {
    font-size: 1.3rem;
    font-weight: 500;
    max-width: 900px;
    white-space: pre-line;
}

/* HOME GRID & TAGS */
.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.home-card {
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.home-card h3 {
    display: inline-block;
    padding: 4px 10px;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.2;
    align-self: flex-start;
}

.home-card:nth-child(1) h3 { background-color: var(--primary-red); color: black; }
.home-card:nth-child(2) h3 { background-color: black; color: white; }
.home-card:nth-child(3) h3 { background-color: var(--primary-red); color: black; }

.home-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.home-card:hover img { filter: grayscale(0%); }

/* VIDEO GRID & OVERLAY */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}

.video-overlay-click {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    background: transparent;
}

.video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* MODAL (FULL SCREEN VIDEO) */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-red);
}

/* BOOKS & CV */
.book-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Αυτό ορίζει ακριβώς 3 στήλες */
    gap: 40px; 
    justify-items: center; 
}
.book-item { text-align: center; max-width: 200px; }
.book-item img { width: 100%; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-bottom: 15px; }
.book-title { font-weight: bold; font-size: 1rem; }

.cv-content { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; margin-top: 50px; font-size: 0.9rem; margin-bottom: 50px; }
.cv-sidebar { font-size: 0.85rem; line-height: 1.6; }
.cv-main h3 { text-transform: uppercase; font-size: 0.9rem; margin-top: 30px; margin-bottom: 15px; color: #444; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
.cv-role { font-weight: bold; margin-top: 15px; font-size: 1rem;}
.cv-date { color: #666; font-size: 0.85rem; margin-bottom: 5px; }
.cv-desc { margin-top: 5px; margin-bottom: 15px; color: #333; }

/* CONTACT FORM */
.contact-wrapper { max-width: 600px; }
.contact-form label { display: block; margin-top: 15px; font-size: 0.9rem; font-weight: bold; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-top: 5px; border: 1px solid #999; background: transparent; border-radius: 20px; font-family: inherit; font-size: 1rem; }
.contact-form button { background-color: var(--primary-red); color: white; border: none; padding: 12px 40px; border-radius: 5px; margin-top: 25px; cursor: pointer; font-weight: bold; font-size: 1rem; }

footer { text-align: center; padding: 40px 0; font-size: 3rem; font-weight: bold; margin-top: 50px; }

/* --- MOBILE ΟΘΟΝΕΣ --- */
@media (max-width: 768px) {
    /* Δίνουμε περισσότερο "αέρα" δεξιά και αριστερά για να μην κολλάει το κείμενο στις άκρες */
    .container { 
        padding: 0 30px; 
    }

    /* Βελτιώνουμε το μενού για να μην πέφτει το ένα link πάνω στο άλλο */
    header { 
        padding: 15px 20px; 
        flex-direction: column; 
        gap: 15px; 
    }
    nav ul { 
        flex-wrap: wrap; 
        justify-content: center; 
        row-gap: 10px;
    }

    /* Μικραίνουμε το κείμενο και το banner για να χωράνε αρμονικά στην οθόνη */
    .intro-text { 
        font-size: 1.1rem; 
    }
    .hero-banner { 
        padding: 25px 0; 
        margin-bottom: 30px; 
    }
    .marquee-content { 
        font-size: 2.5rem; 
    }

    /* Όλα μπαίνουν σε 1 στήλη με σωστές αποστάσεις */
    .home-grid, .video-grid, .book-grid, .cv-content { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    /* Προσαρμογή στο Χ του βίντεο */
    .close-modal { 
        top: 10px; 
        right: 20px; 
        font-size: 40px; 
    }
}