/* Copyright REKA - Main Stylesheet */
/* --- Basic Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: 'Rajdhani', sans-serif;
    color: #e0e0e0;
    overflow: hidden; /* Sprečava scrollbar */
}

body {
    display: flex; /* Za glavni kontejner */
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a2e, #4a0e4e, #1c2331, #0f0c29);
    background-size: 600% 600%;
    animation: gradientBG 20s ease infinite;
    height: 100%;
    /* --- FORSIRANJE Custom Kursora --- */
    cursor: url('assets/custom-cursor.png'), auto !important;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Intro Overlay (Sakriven inicijalno) --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    display: none; /* INICIJALNO SAKRIVEN */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Visoko */
    opacity: 0; /* Inicijalno nevidljiv */
    transition: opacity 1.0s ease-in; /* Fade in tranzicija */
    padding: 20px;
    box-sizing: border-box;
}

#intro-lines {
    width: 90%;
    max-width: 650px;
    text-align: left;
    line-height: 1.6;
    max-height: 90vh;
    overflow-y: auto;
}

#intro-lines div {
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 2px;
}
/* --- Kraj Intro Overlay Stilova --- */


/* --- Centering Container (Sakriven inicijalno) --- */
.container {
    text-align: center;
    padding: 20px;
    display: none; /* INICIJALNO SAKRIVEN */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 10; /* Ispod overlay-a */
    opacity: 0; /* Inicijalno nevidljiv */
    transition: opacity 1s ease-in; /* Fade in tranzicija */
}

/* --- Name Styling & Animation --- */
.name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(4rem, 18vw, 9rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4),
                 0 0 15px rgba(150, 150, 255, 0.3);
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
}

.letter {
    display: inline-block;
    min-width: 0.5ch;
    animation: shuffle 5s infinite ease-in-out;
    animation-delay: var(--delay);
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

@keyframes shuffle {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    20% { transform: translateY(-10px) rotate(-8deg) scale(1.05); opacity: 0.9; }
    40% { transform: translateY(5px) rotate(5deg) scale(0.95); opacity: 1; }
    60% { transform: translateX(-8px) rotate(3deg) scale(1); opacity: 0.95; }
    80% { transform: translateX(8px) rotate(-5deg) scale(1.02); opacity: 1; }
}

.letter:hover {
   transform: scale(1.1) !important;
   color: #a0a0ff;
}

/* --- Tagline Styling (Typing Effect) --- */
.tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.2rem, 4.5vw, 1.9rem);
    font-weight: 500;
    color: #b0b0ff;
    margin-bottom: 2.5rem;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 10px;
    letter-spacing: 1px;
}

#animated-text {
    border-right: none;
}

.tagline .cursor {
    display: inline-block;
    color: #b0b0ff;
    font-weight: 500;
    margin-left: 3px;
    animation: blink 1s step-end infinite;
    vertical-align: baseline;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Social Icons Styling --- */
.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 18px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #a0a0a0;
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    text-decoration: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease-out;
}

.social-icons a:hover,
.social-icons a:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #a0a0ff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* Brand boje na icon hover */
.social-icons a:hover .fa-discord { color: #7289DA; }
.social-icons a:hover .fa-facebook-f { color: #1877F2; }
.social-icons a:hover .fa-steam { color: #cccccc; }

/* --- Media Queries for Responsiveness --- */
@media (max-width: 600px) {
    #intro-overlay {
        font-size: 0.9rem;
    }
    .name {
        letter-spacing: 0px;
        margin-bottom: 1rem;
        font-size: clamp(3rem, 15vw, 6rem);
    }
    .tagline {
       font-size: clamp(1.1rem, 5vw, 1.6rem);
       min-height: 3em;
       white-space: normal;
       margin-bottom: 2rem;
    }
    .social-icons {
        gap: 15px;
    }
    .social-icons a {
        width: 42px;
        height: 42px;
    }
}