/* Globalno resetovanje margina i fonta */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: #fff;
    background-color: #0a0a0a;
}

/* Navigacija */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 1000;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Desktop - vidljiv i horizontalan meni */
.nav-links {
    display: flex;
    /* prikaz na desktopu */
    gap: 25px;
    flex-direction: row;
    /* horizontalno */
    text-align: center;
    position: static;
    /* ne fiksiramo apsolutno */
    max-height: none;
    /* nema ograničenja */
    opacity: 1;
    /* potpuno vidljivo */
    padding: 0;
    /* bez paddinga */
    transition: none;
    /* desktop nema animaciju */
}

.nav-links.show {
    max-height: 500px;
    /* dovoljno za sve linkove */
    opacity: 1;
    padding: 20px 0;
}

.nav-links a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d1a94f;
}

.bold-nav {
    font-weight: bold;
    color: #d1a94f;
}

/* Meni ikonica (mobilni prikaz) */
.menu-icon {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
}

/* Hero sekcija */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("../images/klavijatura.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}



.hero h1::after {
  content: "_";
  position: absolute;
  animation: blink 1s step-start infinite;
  color: white;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ddd;
}

.btn-primary {
    background: #d1a94f;
    color: #000;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #f5d173;
}

/* Fiksirani poziv */
.call-button {
    position: fixed;
    bottom: 30px;
    left: 0;
    border-radius: 0 8px 8px 0;
    background-color: #ffd700;
    color: black;
    font-weight: bold;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transition: transform 0.3s, background 0.3s;
    z-index: 200;
}

.call-button:hover {
    background: white;
    transform: scale(1.05);
}

.call-text {
    display: inline;
}

/* Kalendar ikonica */
.calendar-button {
    position: fixed;
    bottom: 70px;
    left: 0;
    transform: translateY(-50%);
    background: #1e3a8a;
    color: #fff;
    font-size: 24px;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.3s;
}

.calendar-button:hover {
    background: #d1a94f;
    transform: translateY(-50%) scale(1.1);
}

/* Bočni panel kalendara */
.calendar-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
    transition: left 0.4s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.calendar-panel.show {
    left: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e3a8a;
    color: #fff;
    padding: 15px 20px;
}

.calendar-header h3 {
    font-size: 18px;
    margin: 0;
}

/* === MODERNI TAMNI KALENDAR === */
.calendar-container {
    flex: 1;
    padding: 20px;
    background: #0f0f12;
    color: #fff;
    overflow-y: auto;
}

.calendar {
    background: #111;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
    padding: 15px;
    text-align: center;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #d1a94f;
}

.calendar-nav h4 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-btn {
    background: none;
    border: none;
    color: #d1a94f;
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-btn:hover {
    color: #f5d173;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
    font-size: 0.9rem;
}

.calendar-grid div {
    padding: 10px 0;
    border-radius: 6px;
    transition: background 0.25s, transform 0.2s;
}

.calendar-grid .day-name {
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.calendar-grid .today {
    background: #1e3a8a;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.6);
}

.calendar-grid div:not(.day-name):hover {
    background: rgba(209, 169, 79, 0.1);
    transform: scale(1.05);
    cursor: pointer;
}

.close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* Responsive dizajn */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 65px;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
        padding: 0;
        /* start padding 0 */
        max-height: 0;
        /* start visina 0 */
        overflow: hidden;
        opacity: 0;
        /* start transparent */
        transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    }

    .nav-links.show {
        max-height: 500px;
        /* dovoljno za sve linkove */
        opacity: 1;
        padding: 20px 0;
        /* dodaj padding kad se otvori */
        gap: 10px;
        display: flex;
        flex-direction: row;
        justify-content: space-around
    }

    .menu-icon {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Na mobilnom prikazuj samo ikonicu ZA POZIV */
@media (max-width: 600px) {
    .call-text {
        display: none;
    }

    .call-button, .calendar-button {
        padding: 0.5rem;
        font-size: 1.1rem;
    }
}