/* Nikos Apostolakis portfolio overrides */
.nikos-logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--heading-color, #ffffff);
    text-transform: uppercase;
    font-size: 26px;
}
.nikos-logo span {
    color: var(--primary-color, #c9f31d);
    font-size: 0.58em;
    letter-spacing: 0.18em;
    margin-top: 4px;
}
.nikos-logo.mobile {
    font-size: 22px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    width: 145px;
}
.site-logo img {
    display: block;
    width: 100%;
    height: auto;
}
.site-logo.mobile {
    width: 125px;
}
.navbar-logo {
    width: 113px;
}
.navbar-logo.mobile {
    width: 102px;
}
.navbar-socials {
    display: flex;
    align-items: center;
    gap: 13px;
}
.main-menu .navigation > li > a {
    text-transform: uppercase;
}
.navbar-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #000000;
    background: var(--primary-color, #c9f31d);
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
.navbar-socials a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(201, 243, 29, 0.8);
}
.sidebar-logo {
    display: block;
    width: min(220px, 80%);
    height: auto;
    margin: 0 auto 20px;
}
.preloader {
    background-image: url("../images/brand/devlabs-logo.png");
    background-size: 240px auto;
}
.services-area .service-item {
    border-color: var(--primary-color);
}
.services-area .service-item:hover {
    border-color: var(--primary-color);
}
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.2;
}
.footer-socials a i {
    width: 22px;
    color: var(--primary-color, #c9f31d);
    font-size: 17px;
    text-align: center;
}
.footer-socials a:hover {
    color: var(--primary-color, #c9f31d);
}
.footer-d6-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.footer-d6-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
    transform: translateX(-5px);
}
.footer-top-wrap .row {
    align-items: stretch;
}
.footer-logo-widget,
.footer-logo-widget .footer-logo {
    height: 100%;
}
.footer-logo-widget .footer-logo {
    display: flex;
    align-items: center;
}
.footer-bottom {
    background: var(--black-color, #070707);
}
.footer-slogan {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.main-header.fixed-header .header-upper {
    background: var(--black-color, #070707);
    box-shadow: 0 8px 30px rgba(201, 243, 29, 0.22);
}
.footer-social-widget,
.footer-top-wrap .widget_contact_info {
    height: 100%;
}
.about-area,
.resume-area,
.services-area,
.projects-area,
.contact-area,
.main-footer {
    border-top: 1px solid rgba(201, 243, 29, 0.42);
    box-shadow: 0 -10px 28px rgba(201, 243, 29, 0.09);
}
.for-bgc-black {
    width: 100%;
    max-width: none;
}
.about-area,
.services-area,
.contact-area {
    background: var(--black-color, #070707);
}
.resume-area {
    padding-bottom: 165px;
}
.resume-cv-btn {
    display: inline-flex;
}
.service-item .content p, .project-content p, .contact-content-part p {
    max-width: 720px;
}
.skill-item h5 {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hidden-bar .inner-box p {
    color: #d4d4d4;
}
/* Let the hero copy use the space freed by the removed portrait. */
.main-hero-area {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.main-hero-area .hero-content {
    max-width: 100%;
}
.main-hero-area .hero-content h1 {
    font-size: clamp(42px, 5.3vw, 86px);
    line-height: 1.02;
}
.main-hero-area .hero-content h1 b {
    display: block;
}
.hero-role {
    display: block;
    margin-top: 18px;
    color: #f4f4f4;
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(24px, 3.1vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
    white-space: nowrap;
}
.hero-role-text {
    display: inline-block;
    width: 0;
    overflow: hidden;
    vertical-align: bottom;
    animation: heroType 8s steps(40, end) infinite;
}
.hero-cursor {
    color: var(--primary-color, #c9f31d);
    animation: heroCursor 0.8s steps(1, end) infinite;
}
@keyframes heroType {
    0%, 10% { width: 0; }
    50%, 70% { width: 40ch; }
    90%, 100% { width: 0; }
}
@keyframes heroCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (max-width: 575px) {
    .nikos-logo { font-size: 20px; }
    .hero-content h1 { font-size: 42px; line-height: 1.08; }
    .main-hero-area .hero-content h1 { font-size: 42px; }
    .hero-role {
        white-space: normal;
        font-size: 24px;
    }
    .hero-role-text {
        width: auto;
        animation: none;
    }
}

.author-image-part > img,
.about-image-part > img {
    object-fit: cover;
    object-position: center top;
}
.author-image-part > img {
    border-radius: 28px;
}
.about-image-part > img {
    border-radius: 24px;
}

.project-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
}

.services-area .col-lg-6 {
    display: flex;
}
.services-area .service-item {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
}
.project-image img.project-image-contain {
    object-fit: contain;
    object-position: center top;
    background: #050505;
    padding: 10px;
}

.list-style-two li {
    line-height: 1.55;
}
.list-style-two li:before {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.list-style-two li a {
    white-space: nowrap;
}



/* Visible fixed matrix rain background */
.matrix-rain {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.18;
    mix-blend-mode: screen;
}
.matrix-rain span {
    position: absolute;
    top: -45vh;
    left: var(--x);
    color: rgba(201, 243, 29, 0.36);
    font-family: "Courier New", monospace;
    font-size: clamp(18px, 1.7vw, 31px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.18em;
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    filter: blur(0.45px);
    text-shadow: 0 0 8px rgba(201, 243, 29, 0.18);
    will-change: transform;
    animation: matrixRain var(--speed) linear infinite;
    animation-delay: var(--delay);
}
.matrix-rain span:nth-child(3n) {
    color: rgba(120, 255, 190, 0.26);
}
.matrix-rain span:nth-child(4n) {
    opacity: 0.42;
    font-size: clamp(14px, 1.25vw, 23px);
}
.page-wrapper {
    position: relative;
    z-index: 1;
}
.footer-bottom {
    border-top: 1px solid rgba(201, 243, 29, 0.28);
    box-shadow: 0 -8px 24px rgba(201, 243, 29, 0.06);
}
@keyframes matrixRain {
    from { transform: translate3d(0, -30vh, 0); }
    to { transform: translate3d(0, 150vh, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .matrix-rain span {
        animation: none;
        transform: translateY(15vh);
    }
}

/* Compact standalone 404 layout */
.error-page {
    min-height: 100vh;
    overflow: hidden;
}
.error-page .page-wrapper {
    min-height: 100vh;
}
.error-page .error-area {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 48px 20px !important;
}
.error-page .error-content {
    width: min(100%, 760px);
}
.error-page .error-content .image {
    margin-bottom: 24px !important;
}
.error-page .error-content .image img {
    width: auto;
    max-width: min(100%, 430px);
    max-height: 30vh;
    object-fit: contain;
}
.error-page .error-content .section-title {
    margin-bottom: 24px !important;
}
.error-page .error-content h1 {
    margin-bottom: 8px;
    font-size: clamp(54px, 9vw, 96px);
    line-height: 1;
}
.error-page .error-content h2 {
    margin-bottom: 0;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.15;
}
.error-page .bg-lines {
    display: none;
}
@media (max-height: 700px) {
    .error-page .error-area { padding-block: 24px !important; }
    .error-page .error-content .image { margin-bottom: 14px !important; }
    .error-page .error-content .image img { max-height: 24vh; }
    .error-page .error-content .section-title { margin-bottom: 16px !important; }
}

.error-page .error-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}
.error-page .error-content-centered .theme-btn {
    margin-inline: auto;
}
