/* ----- RESET & OSNOVNO ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #d4af37;
    --gold-light: #f0e0a0;
    --glass-white: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.15);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: #1a2a3a;
    min-height: 100vh;
    background: #f4efe6;
    overflow-x: hidden;
}

/* ----- ANIMIRANO OZADJE (stekleni prelivi) ----- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #d4c5a0 0%, #f4efe6 30%, #c4d5e8 70%, #e8dcc8 100%);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Lebdeče steklene krogle (dekoracija) */
.glass-orb {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.1);
    z-index: -1;
    pointer-events: none;
    animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb1 { width: 300px; height: 300px; top: -50px; left: -100px; }
.orb2 { width: 200px; height: 200px; bottom: 100px; right: -50px; animation-delay: 3s; }
.orb3 { width: 150px; height: 150px; top: 40%; right: 10%; animation-delay: 6s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -40px) scale(1.1); }
}

/* ----- STEKLENI (GLASS) KOMPONENTI ----- */
.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    box-shadow: var(--shadow-glass), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-dark {
    background: rgba(26, 42, 58, 0.15);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    box-shadow: var(--shadow-glass);
    color: #1a2a3a;
}

/* ----- ZAVITEK VSEBNINE ----- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ----- NAVIGACIJA ----- */
nav {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2a3a;
    letter-spacing: -0.02em;
}
.logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}
.logo span {
    color: var(--gold);
    font-weight: 400;
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    font-weight: 500;
}
.nav-links a {
    text-decoration: none;
    color: #1a2a3a;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--gold);
}

/* ----- HERO ----- */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #5a4a2a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a2a3a;
}
.hero-content h1 i {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    max-width: 550px;
    font-weight: 300;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-sans);
}

.btn-primary {
    background: rgba(26, 42, 58, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
    background: #1a2a3a;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #1a2a3a;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* ----- SEKCJIE (ODSEK) ----- */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: #1a2a3a;
}
.section-header h2 span {
    color: var(--gold);
}
.section-header p {
    color: #4a5a6a;
    max-width: 600px;
    margin: 0.5rem auto 0;
    font-size: 1.1rem;
}

/* ----- GLASS KARTICE (tilt efekt) ----- */
.tilt-card {
    transition: transform 0.1s ease;
    will-change: transform;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.tilt-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}
.tilt-card p {
    color: #2c3e50;
    line-height: 1.6;
    font-weight: 300;
}

/* ----- DELAVNICE (časovnica) ----- */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.year-card {
    text-align: left;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.year-card .year {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.year-card h4 {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.2rem;
}
.year-card .short-desc {
    font-size: 0.95rem;
    color: #3a4a5a;
    margin-top: 0.3rem;
}
.year-card .details {
    display: none;
}
.year-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ----- MODALNO OKNO ----- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    margin: 5% auto;
    padding: 2.5rem;
    max-width: 700px;
    width: 90%;
    position: relative;
    color: #1a2a3a;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: #1a2a3a;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-content h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
}
.modal-content ul li {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

/* ----- OBISK (kontakt) ----- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.info-item i {
    font-size: 1.4rem;
    color: var(--gold);
    width: 2rem;
    margin-top: 0.2rem;
}
.info-item strong {
    display: block;
    font-weight: 600;
}

.map-container {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ----- NOVICE (News) ----- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.news-grid .tilt-card {
    text-align: left;
    align-items: flex-start;
}
.news-grid .tilt-card .card-img {
    display: none;
}
.news-date {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.news-grid h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin: 0.3rem 0;
}

/* ----- FOOTER ----- */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    color: #2c3e50;
    margin-top: 2rem;
}
footer .social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
footer .social a {
    color: #1a2a3a;
    font-size: 1.3rem;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}
footer .social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}
footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .nav-links { gap: 1.5rem; flex-wrap: wrap; }
    .visit-grid { grid-template-columns: 1fr; }
    section { padding: 4rem 0; }
    .section-header h2 { font-size: 2.2rem; }
    .logo { font-size: 1.4rem; }
    .logo-img { height: 40px; }
    .btn { padding: 0.8rem 1.8rem; }
    .orb1, .orb2, .orb3 { display: none; }
    .timeline-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 1.8rem; margin: 10% auto; }
    .modal-content h2 { font-size: 1.8rem; }
}

/* Scroll animacije (pojavljanje) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}