@import url('https://fonts.googleapis.com/css2?family=STIX+Two+Text:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    --void-deep: #04040c;
    --void-base: #08081a;
    --void-surface: #0c0c24;
    --void-elevated: #111130;
    --accent: #6c5ce7;
    --accent-glow: #8b7cf0;
    --accent-ghost: rgba(108, 92, 231, 0.08);
    --accent-wash: rgba(108, 92, 231, 0.04);
    --success: #00d2a0;
    --danger: #ff5e5e;
    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #606078;
    --glass-bg: rgba(12, 12, 36, 0.5);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 20px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 72px;
    --space-4xl: 120px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --ease-out: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--void-deep); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

html[lang="el"] body { font-family: 'STIX Two Text', 'Times New Roman', serif; }
html[lang="el"] .name-display { font-family: 'STIX Two Text', 'Times New Roman', serif; font-weight: 700; letter-spacing: -0.01em; }
html[lang="el"] .about-box-content { font-family: 'STIX Two Text', 'Times New Roman', serif; font-size: 0.92rem; line-height: 2; }
html[lang="el"] .card-title, html[lang="el"] .column-heading, html[lang="el"] .section-heading { font-family: 'STIX Two Text', 'Times New Roman', serif; font-weight: 600; }

.void-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 80% 80% at 50% 30%, rgba(108,92,231,0.06) 0%, transparent 50%), radial-gradient(ellipse 40% 50% at 20% 80%, rgba(0,210,160,0.03) 0%, transparent 40%); }
.void-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4; background-image: radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.4), transparent), radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.3), transparent), radial-gradient(1.5px 1.5px at 40% 20%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.3), transparent), radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,0.4), transparent), radial-gradient(1.5px 1.5px at 85% 40%, rgba(255,255,255,0.35), transparent), radial-gradient(1px 1px at 15% 65%, rgba(255,255,255,0.3), transparent), radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,0.4), transparent), radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.3), transparent), radial-gradient(1.5px 1.5px at 80% 65%, rgba(255,255,255,0.35), transparent), radial-gradient(1px 1px at 90% 15%, rgba(255,255,255,0.3), transparent), radial-gradient(1px 1px at 5% 85%, rgba(255,255,255,0.35), transparent); }
.void-nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.15; background: radial-gradient(ellipse 60% 40% at 30% 40%, rgba(108,92,231,0.15) 0%, transparent 60%), radial-gradient(ellipse 40% 30% at 70% 35%, rgba(93,173,226,0.08) 0%, transparent 50%); }

.code-typewriter { position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%); z-index: 0; pointer-events: none; font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Courier New', monospace; font-size: 11px; line-height: 1.9; opacity: 0.12; white-space: pre-wrap; text-align: left; max-width: 580px; width: 90%; overflow: hidden; user-select: none; -webkit-user-select: none; transition: opacity 0.8s ease; letter-spacing: 0.02em; color: #a0a0b8; }
.code-typewriter .cursor-blink { display: inline-block; width: 7px; height: 14px; background: #6c5ce7; margin-left: 2px; vertical-align: middle; animation: cursor-pulse 1s step-end infinite; }
@keyframes cursor-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.code-typewriter.fading { opacity: 0.05; }

.hero-section { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-4xl) var(--space-lg) var(--space-3xl); }
.hero-name { text-align: center; margin-bottom: var(--space-2xl); z-index: 2; }
.name-display { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-glow) 50%, var(--text-primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: var(--space-sm); }
.title-display { font-size: 1.05rem; color: var(--text-secondary); font-weight: 400; letter-spacing: 0.04em; }

.lang-float { position: fixed; top: var(--space-lg); right: var(--space-lg); z-index: 100; display: flex; align-items: center; gap: 2px; background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border); border-radius: var(--radius-full); padding: 5px 6px; flex-wrap: wrap; }
.lang-dot { padding: 7px 11px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-secondary); transition: var(--ease-out); white-space: nowrap; }
.lang-dot.active { background: var(--accent); color: #fff; }
.lang-dot:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.lang-sep { width: 1px; height: 16px; background: var(--glass-border); }

.portrait-stage { position: relative; z-index: 1; transition: opacity 0.15s linear; will-change: opacity; }
.portrait-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(108,92,231,0.15) 0%, transparent 70%); animation: pulse-glow 4s ease-in-out infinite; pointer-events: none; }
@keyframes pulse-glow { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.portrait-img { position: relative; z-index: 1; max-height: 55vh; width: auto; max-width: 500px; object-fit: contain; filter: drop-shadow(0 0 40px rgba(108,92,231,0.2)); transition: filter var(--ease-out); }
.portrait-img:hover { filter: drop-shadow(0 0 60px rgba(108,92,231,0.35)); }
.portrait-placeholder { width: 200px; height: 200px; border-radius: 50%; background: var(--accent-ghost); border: 2px dashed var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; }

.about-boxes { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 1200px; display: flex; justify-content: space-between; pointer-events: none; z-index: 3; padding: 0 var(--space-lg); }
.about-box { pointer-events: auto; max-width: 380px; width: 30%; background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: var(--space-lg); transition: transform var(--ease-out), opacity var(--ease-out); }
.about-box:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.1); }
.about-box-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-glow); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--glass-border); }
.about-box-content { font-size: 0.9rem; line-height: 1.9; color: var(--text-secondary); }

.scroll-hint { position: absolute; bottom: var(--space-xl); display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); z-index: 2; opacity: 0.6; transition: opacity var(--ease-out); cursor: pointer; }
.scroll-hint:hover { opacity: 1; }
.scroll-arrow { width: 24px; height: 24px; border-right: 2px solid var(--text-secondary); border-bottom: 2px solid var(--text-secondary); transform: rotate(45deg); animation: bounce-down 2s ease-in-out infinite; }
@keyframes bounce-down { 0%, 100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(8px); } }
.scroll-text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

.section-divider { width: 100%; max-width: 200px; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border), transparent); margin: 0 auto var(--space-3xl); }

.works-section { position: relative; z-index: 1; padding: var(--space-3xl) var(--space-lg) var(--space-2xl); max-width: 1200px; margin: 0 auto; }
.dual-column { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
.column-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-xl); display: flex; align-items: center; gap: var(--space-sm); color: var(--text-primary); }
.heading-icon { font-size: 1.3rem; opacity: 0.7; }

.glass-card { background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--ease-out), border-color var(--ease-out), box-shadow var(--ease-out); }
.glass-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.1); box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 30px rgba(108,92,231,0.05); }
.card-stack { display: flex; flex-direction: column; gap: var(--space-lg); }

.work-card-media, .paper-card-media, .service-card-media { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--void-surface); }
.work-card-media img, .paper-card-media img, .service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.glass-card:hover .work-card-media img, .glass-card:hover .paper-card-media img, .glass-card:hover .service-card-media img { transform: scale(1.04); }
.work-card-body, .paper-card-body, .service-card-body { padding: var(--space-lg); }
.work-card-body h3, .paper-card-body h3, .service-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-sm); color: var(--text-primary); }
.work-card-body p, .paper-card-body p, .service-card-body p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.8; }

.mini-gallery { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); margin-bottom: var(--space-md); }
.mini-gallery-item { width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--ease-out); }
.mini-gallery-item:hover { border-color: var(--accent); transform: scale(1.1); }
.mini-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.tag { font-size: 0.72rem; padding: 3px 10px; border-radius: var(--radius-full); background: var(--accent-ghost); color: var(--accent-glow); font-weight: 500; }

.pdf-download { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(255, 94, 94, 0.12); border: 1px solid rgba(255, 94, 94, 0.25); border-radius: var(--radius-full); color: #ff5e5e; font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: var(--ease-out); margin-top: var(--space-md); cursor: pointer; }
.pdf-download:hover { background: rgba(255, 94, 94, 0.2); border-color: rgba(255, 94, 94, 0.4); transform: translateY(-1px); }
.pdf-download-icon { font-size: 1rem; }

.services-section { position: relative; z-index: 1; padding: var(--space-2xl) var(--space-lg) var(--space-4xl); max-width: 1200px; margin: 0 auto; }
.section-heading { text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-2xl); display: flex; align-items: center; justify-content: center; gap: var(--space-sm); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-lg); }
.service-meta-row { display: flex; gap: var(--space-lg); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--glass-border); }
.meta-price { color: var(--success); font-weight: 700; font-size: 1rem; }
.meta-duration { color: var(--text-secondary); font-size: 0.9rem; }

.void-message { text-align: center; padding: var(--space-3xl); color: var(--text-muted); font-size: 0.95rem; }

.site-footer { position: relative; z-index: 1; background: rgba(6, 6, 14, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--glass-border); padding: var(--space-2xl) var(--space-lg); }
.footer-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.footer-contact { display: flex; justify-content: center; gap: var(--space-2xl); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.contact-item { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.95rem; color: var(--text-secondary); }
.contact-icon { font-size: 1.1rem; }
.contact-link { color: var(--text-primary); transition: var(--ease-out); }
.contact-link:hover { color: var(--accent-glow); }
.contact-link[dir="ltr"] { unicode-bidi: isolate; direction: ltr; display: inline-block; }
.footer-bottom { display: flex; justify-content: center; align-items: center; gap: var(--space-md); padding-top: var(--space-lg); border-top: 1px solid var(--glass-border); font-size: 0.85rem; color: var(--text-muted); }
.footer-admin-link { color: var(--text-muted); font-size: 0.6rem; opacity: 0.3; transition: var(--ease-out); }
.footer-admin-link:hover { opacity: 0.7; color: var(--accent-glow); }

.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(4,4,12,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); justify-content: center; align-items: center; cursor: pointer; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-md); cursor: default; }
.lightbox-close { position: absolute; top: var(--space-lg); right: var(--space-lg); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.06); color: #fff; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--ease-out); }
.lightbox-close:hover { background: rgba(255,255,255,0.12); transform: scale(1.1); }

.admin-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-login-wrapper { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: var(--space-lg); }
.login-form { padding: var(--space-2xl); text-align: center; }
.login-form h1 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.admin-dashboard { min-height: 100vh; }
.admin-wrapper { position: relative; z-index: 1; max-width: 1152px; margin: 0 auto; padding: var(--space-lg); }

.input-field { width: 100%; padding: 12px 16px; background: var(--void-base); border: 1px solid var(--glass-border); border-radius: var(--radius-md); color: var(--text-primary); font-family: inherit; font-size: 0.95rem; outline: none; transition: var(--ease-out); margin-top: 4px; }
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ghost); }
textarea.input-field { resize: vertical; min-height: 100px; }
.input-file { width: 100%; padding: var(--space-md); background: var(--void-base); border: 1px dashed var(--glass-border); border-radius: var(--radius-md); cursor: pointer; color: var(--text-secondary); font-size: 0.9rem; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 12px 24px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--ease-out); font-family: inherit; width: fit-content; }
.btn-primary:hover { background: #7c6cf7; box-shadow: 0 0 30px rgba(108,92,231,0.25); transform: translateY(-1px); }
.full-width { width: 100%; }
.btn-ghost { padding: 8px 16px; border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 500; transition: var(--ease-out); color: var(--text-secondary); border: 1px solid var(--glass-border); background: transparent; cursor: pointer; font-family: inherit; display: inline-block; }
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.btn-ghost.danger:hover { color: var(--danger); border-color: var(--danger); }

[dir="rtl"] .lang-float { right: auto; left: var(--space-lg); }
[dir="rtl"] .about-boxes { flex-direction: row-reverse; }
[dir="rtl"] .dual-column { direction: rtl; }
[dir="rtl"] .service-meta-row { flex-direction: row-reverse; }
[dir="rtl"] .lightbox-close { right: auto; left: var(--space-lg); }
[dir="rtl"] .contact-item { flex-direction: row-reverse; }

@media (max-width: 900px) {
    .dual-column { grid-template-columns: 1fr; }
    .about-boxes { position: relative; top: auto; left: auto; transform: none; flex-direction: column; gap: var(--space-lg); padding: 0; margin-top: var(--space-2xl); }
    .about-box { max-width: 100%; width: 100%; }
    .portrait-img { max-height: 40vh; }
    .code-typewriter { font-size: 9px; bottom: 40px; max-width: 95%; }
}
@media (max-width: 600px) {
    .hero-section { padding: var(--space-2xl) var(--space-md) var(--space-xl); }
    .services-grid { grid-template-columns: 1fr; }
    .footer-contact { flex-direction: column; gap: var(--space-md); align-items: center; }
    .name-display { font-size: 1.8rem; }
    .portrait-img { max-height: 35vh; }
}
@media (max-width: 480px) {
    .code-typewriter { font-size: 7px; bottom: 30px; }
    .lang-float { top: 10px; right: 10px; padding: 4px 5px; gap: 1px; }
    .lang-dot { padding: 6px 9px; font-size: 0.7rem; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void-deep); }
::-webkit-scrollbar-thumb { background: var(--void-elevated); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

@media print {
    .void-bg, .void-stars, .void-nebula, .code-typewriter, .lang-float, .scroll-hint, .footer-admin-link, .lightbox { display: none !important; }
    body { background: #fff; color: #000; }
    .glass-card { background: #fff; border: 1px solid #ccc; box-shadow: none; }
}


/* ===== LOADING SCREEN ===== */
.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #020206;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.loader-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    animation: logo-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(108, 92, 231, 0.3));
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Windows-style dot spinner */
.loader-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
}

.loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c5ce7;
    animation: dot-bounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) { animation-delay: 0.0s; }
.loader-dot:nth-child(2) { animation-delay: 0.16s; }
.loader-dot:nth-child(3) { animation-delay: 0.32s; }
.loader-dot:nth-child(4) { animation-delay: 0.48s; }
.loader-dot:nth-child(5) { animation-delay: 0.64s; }

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.3;
        background: #6c5ce7;
    }
    30% {
        transform: scale(1);
        opacity: 1;
        background: #a29bfe;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        background: #8b7cf0;
    }
}

/* Fallback if logo.png is missing */
.loader-logo[src="logo.png"]:not([naturalWidth]) {
    /* This won't actually work in CSS alone, so JS handles the fallback */
}