:root {
    --bg: #dddddd;
    --text-main: #000000;
    --accent-pink: #FF23F4; 
    --font-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --fs-ui: 14px; 
    --fs-grid: 12px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg); color: var(--text-main); font-family: var(--font-primary); overflow: hidden; height: 100vh; -webkit-font-smoothing: antialiased; }

canvas { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#hover-overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.1); z-index: 80; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }

/* PRELOADER ΜΕ ΜΠΑΡΑ ΚΑΙ ΠΟΣΟΣΤΟ (CENTRED) */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.loader-wrap { width: 240px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.loader-bar-bg { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.15); position: relative; overflow: hidden; }
.loader-bar-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: #ffffff; will-change: width; }
.loader-percentage { color: #ffffff; font-family: var(--font-primary); font-size: 11px; letter-spacing: 1px; font-weight: 500; opacity: 0.8; }

header, footer { 
    position: fixed; 
    width: 100%; 
    height: 81px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 40px; 
    z-index: 3000; 
    pointer-events: none;
    mix-blend-mode: difference; 
    color: #ffffff !important;   
}
header { top: 0; } footer { bottom: 0; font-size: var(--fs-ui); }
header *, footer * { pointer-events: auto; color: #ffffff !important; }

.header-left, .header-right { font-size: var(--fs-ui); width: 33.33%; }
.header-right { text-align: right; }
.editable-container { outline: none; cursor: text; caret-color: transparent; display: inline-block; position: relative; }
.editable-container::after { content: "|"; margin-left: 1px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
 
.header-center { display: flex; gap: 20px; width: 33.33%; justify-content: center; }
.header-center a { text-decoration: none; font-size: var(--fs-ui); text-transform: uppercase; cursor: pointer; }

.project-grid { position: fixed; top: 55%; left: 40px; width: 60%; transform: translateY(-50%); z-index: 90; pointer-events: auto; }
.grid-header { display: grid; grid-template-columns: 40px 2.5fr 1.5fr 1fr 1.5fr; font-size: var(--fs-grid); margin-bottom: 15px; opacity: 0.5; }
.project-row { display: grid; grid-template-columns: 40px 2.5fr 1.5fr 1fr 1.5fr; margin-bottom: 6px; cursor: pointer; font-size: var(--fs-grid); transition: opacity 0.3s ease, color 0.3s ease; position: relative; z-index: 90; color: var(--text-main) !important; }
.project-row div { color: var(--text-main) !important; }
.project-grid:hover .project-row { opacity: 0.15; }
.project-grid .project-row.active { opacity: 1; font-weight: bold; color: var(--accent-pink) !important; z-index: 999999; }
.project-grid .project-row.active div { color: var(--accent-pink) !important; }

.right-info { position: fixed; top: 20%; right: 40px; width: 380px; z-index: 50; font-size: var(--fs-ui); line-height: 1.4; transition: opacity 0.5s ease; }
body.is-hovering .right-info { opacity: 0.05; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }

#project-view { position: fixed; inset: 0; background-color: var(--bg); z-index: 2000; display: none; opacity: 0; overflow-y: auto; }
.project-container { display: flex; min-height: 100vh; padding: 140px 80px 140px 80px; gap: 60px; }
.project-sidebar { position: -webkit-sticky; position: sticky; top: 140px; width: 35%; height: max-content; display: flex; flex-direction: column; justify-content: flex-start; color: var(--text-main); }
#p-title { font-size: 20px; text-transform: uppercase; margin-bottom: 20px; font-weight: bold; letter-spacing: -0.3px; }
.project-meta { font-size: var(--fs-ui); margin-bottom: 25px; line-height: 1.6; }
.project-meta p { color: var(--text-main) !important; }
.project-description { font-size: var(--fs-ui); line-height: 1.3; max-width: 400px; opacity: 0.9; white-space: pre-wrap; color: var(--text-main) !important; }

.nav-side-btn { position: fixed; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 24px; cursor: pointer; color: #000000 !important; z-index: 2500; padding: 20px 10px; opacity: 0.4; transition: opacity 0.2s ease; }
.nav-side-btn:hover { opacity: 1; }
#prev-project-btn { left: 20px; } #next-project-btn { right: 20px; }

/* MEDIA LAYER */
.project-media-content { width: 100%; display: flex; flex-direction: column; gap: 0px !important; }
.project-media-content > div { margin: 0 !important; padding: 0 !important; display: block; width: 100%; line-height: 0 !important; }
.project-media-content.has-padding > div { padding-bottom: 10px !important; }

.project-media-content img, .project-media-content video, .project-media-content iframe { width: 100% !important; display: block; border: none; margin: 0 !important; }
.project-media-content img, .project-media-content video { height: auto !important; object-fit: contain !important; }
.project-media-content iframe { height: auto !important; aspect-ratio: 16 / 9; }

/* Custom aspect ratios for responsive consistency */
.project-media-content iframe[src*="1052616300"] { aspect-ratio: 3/4 !important; }
.project-media-content iframe[src*="1052624710"] { aspect-ratio: 4/3 !important; }
.project-media-content iframe[src*="1052626682"] { aspect-ratio: 4/3 !important; }
.project-media-content iframe[src*="1072835024"] { aspect-ratio: 100/57 !important; }
.project-media-content iframe[src*="1072836306"] { aspect-ratio: 99/46 !important; }
.project-media-content iframe[src*="1072836961"] { aspect-ratio: 99/46 !important; }
.project-media-content iframe[src*="1072837294"] { aspect-ratio: 98/43 !important; }
.project-media-content iframe[src*="1078110846"] { aspect-ratio: 100/80 !important; }
.project-media-content iframe[src*="1078441730"] { aspect-ratio: 100/65 !important; }

/* ABOUT VIEW */
#about-view { position: fixed; inset: 0; background-color: var(--bg); z-index: 5000; display: none; opacity: 0; overflow-y: auto; color: var(--text-main); pointer-events: auto; }
.about-container { max-width: 900px; margin: 0 auto; padding: 160px 40px 140px 40px; }
.about-statement { font-size: 32px; line-height: 1.15; letter-spacing: -0.8px; text-transform: uppercase; margin-bottom: 80px; font-weight: bold; }
.about-statement span { display: inline-block; text-indent: 120px; }
.about-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 60px; }
.about-column h2 { font-size: var(--fs-ui); text-transform: uppercase; margin-bottom: 25px; opacity: 0.5; font-weight: normal; }
.about-column p { font-size: 16px; line-height: 1.4; margin-bottom: 20px; }
.about-list-item { display: flex; justify-content: space-between; font-size: var(--fs-ui); padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.about-list-item .item-right { text-align: right; opacity: 0.6; }

/* RESPONSIVE OVERRIDES */
@media (max-width: 768px) {
    body { overflow-y: auto !important; height: auto !important; }
    canvas { z-index: 5; pointer-events: none; }

    header, footer { padding: 0 20px; height: 60px; }
    .header-left, .header-right { display: none; } 
    .header-center { width: 100%; justify-content: center; }
    .right-info { display: none; } 

    .project-grid { position: relative; top: 0; left: 0; width: 100%; transform: none; padding: 120px 0 100px 0; z-index: 10; }
    .grid-header { display: none !important; } 
    
    .project-row { display: block !important; height: 50vh; margin-bottom: 0px; border: none !important; }
    .project-row div { display: none !important; } 

    .project-container { flex-direction: column; padding: 90px 20px 120px 20px; gap: 35px; }
    .project-sidebar { position: relative; top: 0; width: 100%; height: auto; }
    .project-media-wrapper { width: 100% !important; }
    
    /* NAVIGATION BUTTONS MOVED UP FOR THE FOOTER */
    .nav-side-btn { position: fixed; top: auto; bottom: 95px; transform: none; background: var(--bg); border: 1px solid rgba(0,0,0,0.1); padding: 10px 24px; font-size: 18px; opacity: 1; z-index: 3100; color: #000000 !important; }
    #prev-project-btn { left: 20px; } #next-project-btn { right: 20px; }
    
    .about-container { padding: 100px 20px 100px 20px; } .about-statement { font-size: 22px; margin-bottom: 50px; } .about-statement span { text-indent: 40px; } .about-content-grid { grid-template-columns: 1fr; gap: 40px; }
}
