/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 40%;
    position: relative;
    z-index: 20;
    /* Ensure links are above logo */
}

.nav-center {
    width: 20%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    /* Logo sits below links */
}


.nav-item {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.nav-item:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.brand-name {
    font-weight: bold;
    letter-spacing: 3px;
    color: #fff;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

/* --- PAGE CONTAINERS --- */
/* Used for centering content on the screen */
.page-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center horizontally */
    padding: 0 10%;
    animation: fadeIn 1s ease-out;
}

/* For pages with text aligned left */
.page-container.align-left {
    align-items: flex-start;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 4rem;
    font-weight: 100;
    letter-spacing: 10px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 100;
    letter-spacing: 8px;
    border-left: 2px solid #333;
    padding-left: 20px;
    text-transform: uppercase;
}

p.subtitle {
    font-size: 1rem;
    letter-spacing: 5px;
    opacity: 0.5;
    text-align: center;
}

p.text-body {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 800px;
    margin-bottom: 20px;
}

/* --- COMPONENTS --- */

/* Client Grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.client-box {
    height: 120px;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: 0.3s;
    letter-spacing: 2px;
}

.client-box:hover {
    border-color: #fff;
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 600px;
}

input,
textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-bottom-color: #fff;
}

button {
    margin-top: 20px;
    padding: 15px 50px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    align-self: flex-start;
}

button:hover {
    background: #fff;
    color: #000;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
}

/* --- LOGO IMAGE STYLES --- */
.logo-image {
    height: 300px;
    /* Padidiname, nes tavo faile herbas yra labai mažas */
    width: auto;

    /* Šie filtrai padės: */
    filter: brightness(1.2) contrast(1.1);

    /* Jei fonas tikrai baltas, ši eilutė jį paslėps ant juodo fono: */
    mix-blend-mode: screen;

    /* Svarbu: pašaliname šešėlį, kol nuotrauka nėra apkarpyta */
    box-shadow: none;

    transform: translateY(12px);

    transition: 0.3s;
}

.logo-image:hover {
    transform: scale(1.1);
}

/* --- BACKGROUND CANVAS STYLES --- */
#neural-canvas,
#warp-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Puts it behind everything */
    background-color: #000;
    /* Fallback */
}

/* Ensure content sits on top */
.page-container,
nav {
    position: relative;
    z-index: 2;
}

/* --- INTRO / ENTER SCREEN --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    /* Virš visko */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 2s ease-out;
    /* Išnyks per 2 sekundes */
}

/* Mygtuko stilius */
#enter-btn {
    padding: 20px 60px;
    font-size: 1.5rem;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    transition: 0.5s;
    z-index: 10;
    position: relative;
}

#enter-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Kai paspaudžiamas mygtukas, jis išnyksta */
.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* --- STAR WARP EFFECT --- */
.star-container {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 600px;
    /* 3D gylis */
    overflow: hidden;
}

.star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    /* Iš pradžių nematomos */
    transform: translate(-50%, -50%);
}

/* Animacija: Žvaigždės skrieja į ekraną */
@keyframes warpSpeed {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateZ(0);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateZ(600px);
        /* Skrieja link vartotojo */
    }
}

/* --- RESPONSIVE / MOBILE FIXES --- */
@media (max-width: 768px) {

    /* Increase nav bar height on mobile */
    nav {
        height: 120px;
        padding: 0 15px;
    }

    .logo-image {
        height: 100px;
        /* Increase logo size to match new nav height */
        transform: translateY(0);
        transition: none;
    }

    .nav-group {
        gap: 15px;
        width: 40%;
    }

    .nav-item {
        font-size: 0.85rem;
        /* Slightly larger text */
        letter-spacing: 1px;
    }
}