@font-face {
    font-family: Paxel;
    src: url(TimesNewPixel.ttf);
}

@font-face {
    font-family: Naslov;
    src: url(Adventurer.ttf);
}

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

body {
    background-color: #1a1a1a;
    background-image: url('proba1.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: Paxel;
    color: white;
    line-height: 1.6;
}

.text-content-background {
    background: rgba(99, 0, 179, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 8px 32px 0.75 rgba(99, 0, 179, 0.2);
    border: 1px solid rgba(174, 17, 218, 0.2);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-gif {
    height: 100%;
    width: 100%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.content {
    display: none;
}

.menu-bar {
    border-radius: 25px;
    height: fit-content;
    display: flex;
    background: linear-gradient(135deg, 
        rgba(99, 0, 179, 0.8), 
        rgba(174, 17, 218, 0.8));
    backdrop-filter: blur(10px);
    align-items: center;
    padding: 0 10px;
    margin: 20px auto;
    width: fit-content;
    list-style: none;
    border: 1px solid rgba(203, 159, 208, 0.3);
    box-shadow: 0 8px 32px rgba(99, 0, 179, 0.3);
}

.menu-bar li {
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    padding: 12px 16px;
    margin: 0 8px;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}

.menu-bar li::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    transition: 0.2s;
    border-radius: 25px;
}

.menu-bar li:hover::before {
    background: linear-gradient(to bottom, #e8edec, #d2d1d3);
    box-shadow: 0px 3px 20px 0px black;
    transform: scale(1.2);
}

.menu-bar li:hover {
    color: black;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

h1 {
    font-size: 150pt;
    margin-bottom: 20px;
    font-family: Naslov;
    background-color: whitesmoke;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    display: inline-block;
}

p {
    font-size: 24pt;
    line-height: 1.6;
    margin-bottom: 20px;
}

.veliki-p {
    font-size: 20pt;
}

h2 {
    background-color: whitesmoke;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 40pt;
    margin-bottom: 20px;
    display: inline-block;
}

h3 {
    font-size: 30pt;
    margin-bottom: 30px;
    background-color: whitesmoke;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

h3:hover {
    transform: scale(1.05);
}

h4{
    background-color: whitesmoke;
}

.web {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.projekti ul {
    list-style: none;
    padding: 0;
}

.projekti li {
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.projekti img {
    height: 60px;
    width: auto;
}

a {
    text-decoration: none;
    color: #e54478;
    font-size: 25pt;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #ff6b9c;
    text-decoration: underline;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.kontakt-item h4 {
    font-size: 24pt;
    margin-bottom: 10px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.kontakt-item p {
    font-size: 18pt;
}

.o-meni-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.profile-image {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #6300b3, #ae11da, #b596d1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60pt;
    font-weight: bold;
    border-radius: 50%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 25px rgba(99, 0, 179, 0.4);
}

.about-text {
    flex: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, 
        #cb9fd0 100% 
        #bd9cd1 75%,
        #b596d1 50%,
        #ae11da 25%,      
        #6300b3 0%, 
        );
    margin: 5% auto;
    padding: 30px;
    border: 2px dotted rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: white;
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.close:hover,
.close:focus {
    color: #bd9cd1;
    transform: rotate(90deg);
}

.modal h2 {
    margin: 20px 0;
    font-size: 2rem;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-body {
    margin-top: 20px;
    line-height: 1.8;
}

.project-list {
    list-style: none;
    margin-top: 20px;
}

.project-list li {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #b596d1;
    backdrop-filter: blur(10px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, 
        rgba(99, 0, 179, 0.4), 
        rgba(174, 17, 218, 0.4));
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(203, 159, 208, 0.3);
    opacity: 0.3;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 0, 179, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    opacity: 0.8;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .player-container {
        padding: 1.5rem;
    }

    .player-title {
        font-size: 1.2rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .player-container {
        padding: 1.5rem;
    }

    .player-title {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 768px) {
    .menu-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu-bar li {
        padding: 10px 12px;
        margin: 4px;
        font-size: 14px;
    }

    h1 {
        font-size: 50pt;
    }

    p {
        font-size: 18pt;
    }

    h2 {
        font-size: 30pt;
    }

    h3 {
        font-size: 24pt;
    }

    a {
        font-size: 18pt;
    }

    .loading-gif {
        width: 100%;
        height: 100%;
        
    }

    .projekti img {
        height: 50px;
    }

    .o-meni-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        font-size: 40pt;
    }

    .kontakt-info {
        gap: 15px;
    }

    .kontakt-item {
        padding: 15px;
    }

    .player-section {
        width: 90%;
        right: 5%;
        bottom: 10px;
    }

    .text-content-background {
        padding: 20px;
        margin: 15px;
    }
}