/* Opšte Stilizacije */
@font-face {
    font-family: 'stubi';
    src: url('../font/Sakana.ttf') format('truetype'), /* Modern browsers */
         url('../font/Sakana.woff') format('woff'),   /* Fallback for older browsers */
         url('../font/Sakana.woff2') format('woff2'); /* Fallback for legacy support */
    font-weight: normal; /* Can be 'bold' if the font file is bold */
    font-style: normal;  /* Can be 'italic' if the font file is italic */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:arial;
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

h1, h2 {
    text-align: center;
    margin: 40px 0;
    color: #0078ff;
}

/* Intro Sekcija */
.intro {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

@keyframes stubili{
    from{
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to{
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.intro .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url("../img/background.jpeg");
    background-size: cover;
    filter: blur(5px);
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    background: rgb(0, 0, 0);
    color: white;
    padding: 30px 40px;
    animation: stubili 1s;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.text-overlay .logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.text-overlay p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.text-overlay .learn-more {
    display: inline-block;
    background-color: #0078ff;
    color: white;
    padding: 12px 25px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.text-overlay .learn-more:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .text-overlay {
        width: 90%;
        padding: 50px 20px;
    }

    .text-overlay p {
        font-size: 1rem;
    }

    .text-overlay .logo {
        max-width: 200px;
    }

    .text-overlay .learn-more {
        font-size: 1rem;
    }
}

@media screen and (max-height: 400px) {
    .text-overlay {
        padding: 20px 30px;
        width: 90%;
        transform: translate(-50%,-50%) scale(0.8);

    }
}


/* Sekcija "O Nama" */
.about {
    padding: 40px 20px;
    background-color: #a0cffe;
    text-align: center;
}


.abt{
    width: 60%;
    margin: auto;
    background-color: black;
    padding: 50px;
    border-radius: 25px;
    opacity: 0;
    transform: translateY(50px);
    transition: 1s;
}

.about-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.about-item {
    background-color: #0078ff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about h2{
    font-family: "stubi", arial;
    color: transparent;
    font-size: 40px;
    -webkit-text-stroke: 1px black;
    background-image: url("../img/line.png");
    background-clip: text;
    animation: stubi 10s linear infinite;
}

.about p, .about h3{
    color: white;
}

@media screen and (max-width: 768px) {
    .abt{
        width: 100%;
        padding: 40px 10px;
    }
}

hr{
     border: 1px solid black; 
     margin: auto; 
     margin-top: 50px;  
     margin-bottom: 50px"
}

@keyframes stubi {
    100% {
        background-position: 1000px 0;
    }
}