/* CSS Reset and Global Vars */
:root {
    --primary-color: #f7f1eb; /* Cream for text */
    --secondary-color: #A68454; /* Gold */
    --bg-color: #0E314B; /* Navy for background */
    --glass-bg: rgba(14, 49, 75, 0.7);
    --glass-border: rgba(247, 241, 235, 0.1);
    --font-ui: 'Space Mono', monospace;
    --font-heading: 'Syncopate', sans-serif;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden !important;
    position: fixed;
    background: var(--bg-color);
    color: var(--primary-color);
    font-family: var(--font-ui);
    touch-action: none;
}

/* Hide scrollbars for all browsers */
::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Cinematic Vignette Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, rgba(14, 49, 75, 0.6) 120%);
    z-index: 5;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

#ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
}

/* TOP NAV UI */
.top-nav {
    position: fixed;
    top: 30px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 100;
}

.nav-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 25px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-pill:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--glow);
    background: rgba(255, 255, 255, 0.05);
}

.primary-pill {
    width: 380px;
    justify-content: space-between;
    padding: 8px 30px;
    border-radius: 40px;
}

@media (max-width: 768px) {
    .top-nav {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        align-items: center !important;
        top: 20px !important;
        width: 100vw !important;
    }
    .primary-pill {
        width: 92vw !important;
        max-width: 400px !important;
        padding: 6px 20px !important;
    }
    .nav-link {
        font-size: 0.85rem !important; /* Slightly larger for mobile tapability */
    }
}

.primary-pill .nav-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.primary-pill .nav-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.wave-icon {
    display: flex;
    align-items: center;
    opacity: 0.7;
}

/* SECTION VIEWS */
.view-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    overflow: hidden; /* Ensure sections don't leak content */
}

.view-section.active {
    opacity: 1 !important;
    pointer-events: all !important;
    visibility: visible !important;
}

/* HOME VIEW (SCROLL INDICATOR & LOGO) */
.home-view {
    flex-direction: column;
    padding: 0 10vw;
    align-items: flex-start;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-indicator .dot {
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    animation: flash 2s infinite;
}

.scroll-indicator.top-indicator {
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15vh;
}

.circle-layer {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.circle-layer.outer {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 150, 255, 0.2), 0 0 20px rgba(0, 150, 255, 0.2);
    /* Subtle rotate animation */
    animation: rotate 10s linear infinite;
}

.circle-layer.inner {
    width: 90px;
    height: 90px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    box-shadow: var(--glow);
}

.logo-svg {
    width: 40px;
    height: 40px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ABOUT VIEW */
.about-view {
    padding: 0 10vw;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    align-items: flex-start;
}

.main-text-block {
    max-width: 650px;
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.main-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
}

.main-text-block.left-aligned {
    align-items: flex-start;
    text-align: left;
}

.main-text-block.right-aligned {
    margin-left: auto; /* Pushes the entire block to the right on Desktop */
    align-items: flex-end;
    text-align: right;
}

@media (max-width: 768px) {
    .main-text-block, .main-text-block.left-aligned, .main-text-block.right-aligned {
        margin: 0 auto !important;
        align-items: center !important;
        text-align: center !important;
    }
}

.massive-title {
    font-family: var(--font-heading);
    font-size: 3.5vw;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.greek-text {
    color: var(--primary-color) !important;
    opacity: 1 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 1.1rem;
    margin-top: 0;
    max-width: 500px;
}

.greek-text p {
    display: block; 
    background: rgba(14, 49, 75, 0.8); 
    padding: 10px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    border-radius: 8px;
}

.about-text p {
    margin-bottom: 0px;
}

/* WORK VIEW */
.work-view {
    padding: 0 10vw;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the 3D content while sidebar floats */
}

.work-sidebar {
    position: absolute;
    top: 15vh; /* Moved to top-left as requested */
    bottom: auto;
    left: 80px;
    width: auto;
    z-index: 50;
    text-align: left;
    padding: 0;
    background: none; /* Removed membrane as requested */
    backdrop-filter: none;
    border-radius: 0;
    pointer-events: none; 
}

.sidebar-title {
    font-size: 0.8rem;
    margin-bottom: 40px;
    letter-spacing: 2.5px;
    color: var(--primary-color);
    opacity: 1;
    display: inline-block;
    background: none; 
    padding: 0;
    border-radius: 0;
    font-weight: 900;
}

/* Global Work Links (Desktop Default) */
.work-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.work-links a {
    color: var(--secondary-color); /* Gold */
    text-decoration: none;
    font-size: 1.25rem; 
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

/* Add Arrows back ONLY for Desktop */
@media (min-width: 769px) {
    .work-links a::before {
        content: "-> ";
    }
}

/* Mobile Overrides (MUST BE LAST to have priority) */
@media (max-width: 768px) {
    .work-sidebar {
        position: fixed; /* Pin it to the viewport, not the scrolling content */
        top: 100px;
        bottom: auto;
        left: 20px;
        text-align: left;
        max-width: 150px;
        z-index: 50; 
    }
    .sidebar-title {
        font-size: 12px; /* Enlarge as requested */
        margin-bottom: 20px;
        white-space: normal;
        line-height: 1.3;
        font-weight: 900; /* Bold and impactful */
        opacity: 1.0;
        text-align: left;
    }
    .work-links {
        font-size: 9px;
        gap: 12px;
        text-align: left;
    }
    .work-links a {
        color: #00ccff;
        text-decoration: none;
        font-size: 9px; /* Correct priority for mobile */
        font-weight: 500;
        letter-spacing: 1px;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: inline-block;
        pointer-events: auto;
        white-space: normal;
        line-height: 1.5;
    }
}

.work-links a:hover {
    color: var(--primary-color);
    transform: translateX(15px) scale(1.1);
    text-shadow: 0 0 15px var(--secondary-color);
}

.ama-btn {
    margin-top: 50px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--secondary-color);
    padding: 15px 20px;
    border-radius: 30px;
    font-family: var(--font-ui);
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.ama-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* WORK CAROUSEL (Simplified CSS 3D for the cards) */
.work-carousel {
    flex: 1;
    position: relative;
    height: 60vh;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card {
    position: absolute;
    width: 50vw;
    max-width: 600px;
    height: 350px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
}

.card-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    /* Replace with image generation placeholders or generic space images */
    backdrop-filter: sepia(0.5) hue-rotate(200deg) blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Setup glass/holographic look for images */
.work-card.center {
    transform: translateZ(0) scale(1);
    z-index: 3;
    background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1964&auto=format&fit=crop');
}

.work-card.back-left {
    transform: translateX(-40%) translateZ(-300px) rotateY(15deg) scale(0.8);
    z-index: 1;
    opacity: 0.4;
    filter: blur(2px);
    background-image: url('https://images.unsplash.com/photo-1614850523459-c2f4c699c52e?q=80&w=2070&auto=format&fit=crop');
}

.work-card.back-right {
    transform: translateX(40%) translateZ(-300px) rotateY(-15deg) scale(0.8);
    z-index: 1;
    opacity: 0.4;
    filter: blur(2px);
    background-image: url('https://images.unsplash.com/photo-1634017839464-5c339ebe3cb4?q=80&w=1935&auto=format&fit=crop');
}

.main-card {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
}

.main-card .subtitle {
    font-size: 0.8rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.main-card .card-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) translateZ(0) scale(1); }
    50% { transform: translateY(-10px) translateZ(0) scale(1.02); }
    100% { transform: translateY(0px) translateZ(0) scale(1); }
}

.work-card.center {
    animation: float 6s ease-in-out infinite;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .massive-title {
        font-size: 6vw;
    }
    .col-right {
        padding-left: 2vw;
    }
    .work-view {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 15vh;
    }
    .work-sidebar {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
    }
    .work-links {
        list-style: none; /* User defined */
        display: flex;    /* User defined */
        flex-direction: column; /* User defined */
        gap: 10px;       /* User defined */
        align-items: center;
        margin: 0;
        padding: 0;
    }
    .work-links li a {
        font-size: 0.65rem; /* Even smaller as requested */
        letter-spacing: 1px;
    }
    .work-carousel {
        height: 40vh;
        width: 100%;
    }
    .work-card {
        width: 80vw;
    }
    .work-card.back-left, .work-card.back-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .massive-title {
        font-size: 10vw;
        margin-top: 20vh;
    }
    .preloader-logo-container {
        width: 240px;
        height: 240px;
    }
    .preloader-logo {
        width: 170px !important;
    }
    .greek-text {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .footer-info {
        margin-top: 10vh;
    }
}

/* FOOTER / CONTACT SECTION - CINEMATIC PORTAL */
.footer-view {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5vw;
    z-index: 10000; /* Extremely high to beat any WebGL overlays */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 9999; /* Ensure it stays on top of 3D */
    max-width: 600px;
    pointer-events: auto;
}


.footer-info {
    color: var(--primary-color) !important;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    line-height: 1.6;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5); 
    margin-top: 20vh; 
}

.footer-info .address {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 1;
}

.footer-info .phone, .footer-info .mobile {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color) !important;
    margin: 10px 0;
    display: block;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #fff !important;
    text-shadow: 0 0 15px var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    pointer-events: auto;
}

.social-icon {
    font-size: 30px !important; 
    color: var(--primary-color) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    opacity: 1 !important;
}

.social-icon:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-8px) scale(1.3);
    filter: drop-shadow(0 0 15px var(--secondary-color));
}

/* Ensure Font Awesome is treated as visible text */
.social-icon i {
    font-style: normal;
    display: inline-block;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 15px;
    }
    .footer-logo {
        width: 180px;
    }
    .footer-info .address {
        font-size: 0.95rem;
    }
    .footer-info .phone, .footer-info .mobile {
        font-size: 1.3rem;
    }
    .social-icons {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .footer-view {
        padding: 0 5vw;
    }
    .footer-logo {
        width: 10rem;
    }
    .footer-info .address {
        font-size: 1rem;
    }
    .footer-info .phone, .footer-info .mobile {
        font-size: 1.2rem;
    }
    .social-icons {
        gap: 20px;
    }
    }
}

/* Preloader */
#preloader {
    /* Styles moved to inline for absolute reliability */
}

.preloader-logo-container {
    background: #f7f1eb;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: delicatePulse 4s ease-in-out infinite;
}

.preloader-logo {
    width: 220px;
    height: auto;
}

.loading-line {
    width: 0;
    height: 2px;
    background: #A68454;
    margin-top: 40px;
    animation: loadLine 2s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}

@keyframes delicatePulse {
    0%, 100% { opacity: 0.8; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes loadLine {
    0% { width: 0; opacity: 0; }
    50% { width: 250px; opacity: 1; }
    100% { width: 0; opacity: 0; }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
