/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-style: italic;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--secondary-color);
}

nav ul li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}


.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('slike/bakar-naslovna.jpg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    width: 100%;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}


.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--light-color);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.newsletter button {
    border-radius: 0 5px 5px 0;
    background-color: var(--primary-color);
}

.newsletter button:hover {
    background-color: #1a252f;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p, .footer-section ul li {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-section ul li a {
    color: #bdc3c7;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-section i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background-color: #1a252f;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    padding: 100px 0 60px;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--white);
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Attractions Page */
.search-section {
    padding: 30px 0;
    background-color: var(--light-color);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-box button {
    padding: 0 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.attractions {
    padding: 60px 0;
}

.attraction-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attraction-content {
    padding: 30px;
}

.attraction-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.attraction-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.attraction-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.attraction-info span {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
}

.attraction-info i {
    margin-right: 5px;
}

/* History Page */
.timeline {
    padding: 60px 0;
    background-color: var(--light-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--secondary-color);
}

.timeline-item:last-child::before {
    height: 50%;
}

.timeline-date {
    width: 100px;
    text-align: right;
    padding-right: 30px;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
}

.timeline-date::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 2px solid var(--white);
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.historical-figures {
    padding: 60px 0;
    background-color: var(--white);
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.figure-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--light-color);
    transition: var(--transition);
}

.figure-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.figure-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--secondary-color);
}

.figure-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Gallery Page */
.gallery-filter {
    padding: 30px 0;
    background-color: var(--light-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    padding: 8px 20px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-buttons button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.filter-buttons button.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.gallery {
    padding: 60px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    margin-bottom: 5px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 15px;
    font-size: 1.2rem;
}

.lightbox-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav button:hover {
    background-color: var(--secondary-color);
}

.lightbox-nav .prev {
    left: 20px;
}

.lightbox-nav .next {
    right: 20px;
}

/* Quiz Page */
/* Quiz Styles */
.quiz {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quiz-intro {
    text-align: center;
}

.quiz-intro h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.quiz-intro p {
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.quiz-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

#question-count {
    display: block;
    text-align: right;
    color: #7f8c8d;
    font-size: 0.9rem;
}

#question-text {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.3rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.quiz-option {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.quiz-option:hover {
    background-color: #e9ecef;
}

.quiz-option.selected {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    background-color: #1a252f;
}

#next-question {
    float: right;
}

.quiz-results {
    text-align: center;
}

.result-circle {
    margin: 30px 0;
}

.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #2ecc71;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    font-weight: bold;
}

#result-message {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.answer-detail {
    text-align: left;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.answer-detail h4 {
    margin-top: 0;
    color: #2c3e50;
}

.correct {
    color: #27ae60;
    font-weight: bold;
}

.wrong {
    color: #e74c3c;
    font-weight: bold;
}

.fact {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 10px;
}

/* Fun Facts Section */
.fun-facts {
    padding: 50px 0;
    background-color: #2c3e50;
    color: white;
}

.fun-facts h2 {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-10px);
}

.fact-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.fact-card h3 {
    margin-top: 0;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-container {
        padding: 20px;
    }
    
    #question-text {
        font-size: 1.1rem;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #next-question {
        float: none;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Page */
.contact {
    padding: 60px 0;
    background-color: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form h2, .contact-info h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.contact-form h2::after, .contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.social-media {
    margin-top: 40px;
}

.social-media h3 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.map {
    padding: 60px 0;
    background-color: var(--white);
}

.map h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .attraction-card {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: var(--transition);
    }
    
    nav ul.show {
        left: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-date {
        width: 100%;
        text-align: left;
        padding-left: 40px;
        margin-bottom: 15px;
    }
    
    .timeline-date::after {
        left: 14px;
    }
    
    .timeline-content {
        padding-left: 40px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: 5px;
        width: 100%;
    }
    
    .quiz-container {
        padding: 20px;
    }
}