/* ================== ΒΑΣΙΚΕΣ ΡΥΘΜΙΣΕΙΣ ================== */
body {
    margin: 0;
    font-family: 'Dancing Script', cursive;
}

.titlos {
    padding-left: 16px;
    color: #000000;
    font-size: 1.8em;
    text-shadow:
        -1px -1px 0 #ffffff91,
         1px -1px 0 #ffffff91,
        -1px  1px 0 #ffffff91,
         1px  1px 0 #ffffff91;
}

header {
    padding: 1em;
    color: black;
    clear: left;
    text-align: center;
}

section {
    max-width: 1000px;
    width: 90%;
    margin: auto;
    padding: 1.5em 0em;
    color: black;
}

article p {
    font-weight: 900;
    color: black;
    margin-left: 0;
}

article h3 {
    font-weight: 1500;
    color: black;
    font-size: 1.4em;
    text-shadow:
        -1px -1px 0 #ffffff91,
         1px -1px 0 #ffffff91,
        -1px  1px 0 #ffffff91,
         1px  1px 0 #ffffff91;
}
.tags {
  text-align: center;
  margin-bottom: -7em;
}

.tags span {
  background: rgba(255, 220, 22, 0.8);
  color: black;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 20px;
  margin: 4px;
  display: inline-block;
  font-size: 0.9em;
}

.read_more {
    text-align: right;
    font-style: italic;
}

.read_more a {
    color: black;
}

.read_more a:hover {
    color: #000000;
}

footer {
    padding: 1em;
    color: black;
    clear: left;
    text-align: center;
    font-weight: bolder;
}

.portfolio-credit {
  color: #000000;         
  text-shadow:
        -1px -1px 0 #ffffff91,
         1px -1px 0 #ffffff91,
        -1px  1px 0 #ffffff91,
         1px  1px 0 #ffffff91;
  font-family: "Courier New", monospace; 
  letter-spacing: 1px;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}


address a {
    color: whitesmoke;
    font-weight: lighter;
}

iframe {
    margin: 6em;
}

/* ================== BACKGROUND ================== */
#bg {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    z-index: -99;
    opacity: 0.7;
}

/* ================== HEADER IMAGES ================== */
.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5em;
    padding: 1em;
    flex-wrap: wrap;
}

.image-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.header-image {
    width: 30vw;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

/* ================== MENU ================== */
.menu {
    overflow: hidden;
    display: flex;
    justify-content: center;
    gap: 20em;
}

.menu a {
    color: #ffdc16;
    text-shadow:
        -1px -1px 0 #000000f5,
         1px -1px 0 #000000f5,
        -1px  1px 0 #000000f5,
         1px  1px 0 #000000f5;
    text-align: center;
    padding: 30px 15px;
    text-decoration: none;
    font-size: 28px;
}

.menu a:hover {
    background-color: rgba(93, 125, 228, 0.726);
}

.menu a.active {
    color: #ffdc16;
}

/* ================== MAIN / ASIDE ================== */
#pageContent {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    padding: 2em;
    max-width: 1200px;
    margin: auto;
}

main {
    flex: 2;
    min-width: 300px;
}

aside {
    flex: 1;
    min-width: 250px;
    border-color: black;
}

/* ================== SCROLLBAR ================== */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #000000;
}
::-webkit-scrollbar-thumb {
    background-color: #ffdc16;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffdc16;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #ffdc16 #000000;
}

/* ================== VIDEO / GRAVARA / THUMBNAIL ================== */
/* Desktop layout: δίστηλο */
.video-box {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 20px 0;
    flex-wrap: wrap;
}

.video-side {
    flex: 0 0 500px;
    max-width: 100%;
}

.video-side video,
.video-side img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.text-side {
    flex: 1 1 300px;
    min-width: 260px;
    color: #000;
}

.game-desc {
    text-align: justify;
    font-weight: 400 !important;
    line-height: 1.5;
    margin: 0 0 10px 0;
    color: #000;
}

.caption1 {
    text-align: left;
    margin: 0;
    font-style: italic;
    font-weight: lighter;
}

.caption2 {
    text-align: left;
    margin: 0;
    font-weight: bold;
}

.play-button1, .play-button2 {
    position: absolute;   /* πάνω στο thumbnail */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    z-index: 10;
    pointer-events: none;color: rgb(0,0,0); text-shadow:0 0 10px white;
}
.play-button1{
  color: rgb(0,0,0); 
  text-shadow:0 0 10px rgb(233, 18, 18);}

/* ================== MOVIE GRID ================== */
.thumbnail-grid {
    display: grid;
    grid-template-areas:
        "left center-top right"
        "left center-bottom right";
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.video-thumbnail {
    width: 300px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
}

.thumbnail-wrapper img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-wrapper:hover img {
    transform: scale(0.85);
}

.play-button {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    pointer-events: none;
    z-index: 2;
}

.play-button.white { color: rgb(0,0,0); text-shadow:0 0 10px white; }
.play-button.orange { color: rgb(0,0,0); text-shadow:0 0 10px rgb(253,176,10);}
.play-button.pink { color: rgb(0,0,0); text-shadow:0 0 10px rgb(224,52,52);}
.play-button.gold { color: rgb(0,0,0); text-shadow:0 0 10px rgb(131,63,19);}

.caption { margin-top: 8px; font-size: 16px; font-weight: bold; }

.video-thumbnail:nth-child(1) { grid-area: left; }
.video-thumbnail:nth-child(2) { grid-area: center-top; }
.video-thumbnail:nth-child(3) { grid-area: center-bottom; }
.video-thumbnail:nth-child(4) { grid-area: right; }

/* ================== CAFE VIDEO ================== */
.crop-container {
    width: 650px;
    height: 600px;
    overflow: hidden;
    position: relative;
    border-radius: 0 0 20px 20px;
    margin: 5px;
}

.cropped-video {
    position: absolute;
    top: -70px;
    left: 0;
    width: 90%;
    height: auto;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {

    /* MENU */
    .menu {
        gap: 1em !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu a {
        font-size: 18px;
        padding: 10px;
    }

    /* MAIN & ASIDE FULL WIDTH */
    main, aside {
        float: none !important;
        width: 100% !important;
    }

    /* IMAGES & VIDEO */
    img, video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* VIDEO BOX MOBILE */
    .video-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5em;
    }

    .video-side, .text-side {
        flex: 1 1 100%;
        width: 90% !important;
        max-width: 400px;
    }

    .text-side {
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .text-side p {
        margin: 0.3em 0 !important;
    }

    .video-thumbnail1, .thumbnail-wrapper {
        width: 100% !important;
        max-width: 400px;
    }

    .play-button1, .play-button2 {
        font-size: 50px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* TITLES */
    h3, article p {
        text-align: center;
    }

    h3 { font-size: 1.2em; }
}

/* ---------------- MOBILE GRID HEADER ---------------- */
@media (max-width: 768px) {
    .header-container {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: center;
        gap: 0.5em;
        padding: 1em 0;
    }

    /* CAM image (left top) */
    .image-group.left img:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        display: block;
        width: 70px !important;
        max-width: 70px !important;
    }

    /* LAPTOP image (right top) */
    .image-group.right img:nth-child(1) {
        grid-column: 3;
        grid-row: 1;
        display: block;
        width: 70px !important;
        max-width: 70px !important;
    }

    /* Portofolio title (center top) */
    .titlos h1 {
        grid-column: 2;
        grid-row: 1;
        text-align: center;
        margin: 0;
        font-size: 1.4em !important;
    }

    /* MUSIC image (left bottom) */
    .image-group.left img:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        display: block;
        width: 50px !important;
        max-width: 50px !important;
    }

    /* IDEA image (right bottom) */
    .image-group.right img:nth-child(2) {
        grid-column: 3;
        grid-row: 2;
        display: block;
        width: 50px !important;
        max-width: 50px !important;
    }

    /* Designer subtitle (center bottom) */
    .titlos h2 {
        grid-column: 2;
        grid-row: 2;
        text-align: center;
        margin: 0;
        font-size: 0.95em !important;
    }

    /* Αφαιρούμε default flex στα groups για grid */
    .image-group {
        display: contents !important;
    }
    .titlos {
        display: contents !important;
    }
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {
  .thumbnail-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 στήλη */
    grid-template-areas:
      "left"
      "center-top"
      "center-bottom"
      "right";
    gap: 20px;
    justify-items: center; /* κεντράρει κάθε thumbnail */
    align-items: center;
    margin-top: 20px;
  }

  .video-thumbnail {
    width: 90%;      /* προσαρμογή στο πλάτος οθόνης */
    max-width: 400px; 
  }
}

@media (max-width: 768px) {
  body, header, section, main, aside, article, footer, .menu, .titlos, h1, h2, h3, p, a {
    font-family: Arial, Helvetica, sans-serif !important;
  }
}


/* ===== ABOUT ME LAYOUT WITH SIDE IMAGES ===== */

.about-layout {
    display: grid;
   grid-template-columns: 1fr 4fr 1fr;
    gap: 2em;
    align-items: center;
    margin-top: 3em;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.about-text {
    color: black;
    font-weight: 600;
    line-height: 1.5em;
}


/* ===== MOBILE VERSION ===== */
@media (max-width: 768px) {

    .about-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img {
        width: 90%;
        margin: 0 auto;
    }

    .about-text {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden; /* απενεργοποιεί horizontal scrollbar */
        margin: 0;
        padding: 0;
        width: 100%;
    }

    #bg {
        position: fixed;      /* σταθερή εικόνα κατά το scroll */
        top: 50%;
        left: 50%;
        width: auto;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        transform: translate(-50%, -50%) translateZ(0); /* κεντράρισμα + smoother scroll */
        will-change: transform;
        z-index: -99;
        opacity: 0.7;
    }
}
