:root {
    --primary-color: #FFA000;
    --secondary-color: #FFB300;
    --accent-color: #FF6F00;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #FFFFFF;
    --section-bg: #FFF8E1;
    --light-bg: #F7F7F7;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.main-nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 160, 0, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    top: 0;
    left: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    line-height: 1;
}

.logo-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.main-nav.scrolled {
    background: rgba(255, 160, 0, 0.95);
}

.main-nav.scrolled .nav-links a {
    color: white;
}

.main-nav.scrolled .nav-links a:hover,
.main-nav.scrolled .nav-links a.active {
    color: rgba(255, 255, 255, 0.9);
}

.main-nav.scrolled .nav-links a::after {
    background-color: white;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/pcele8.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 206, 84, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.about-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: 1px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-text ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.about-text ul li::before {
    content: '🐝';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .about-section {
        padding: 6rem 0;
    }

    .about-section h2 {
        font-size: 2.5rem;
    }

    .about-section h3 {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        max-height: 400px;
    }

    .about-text p {
        font-size: 1rem;
    }
}

/* Products Section */
.products-section {
    padding: 6rem 0;
}

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

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    padding: 1rem;
    color: var(--primary-color);
}

.product-card p {
    padding: 0 1rem 1rem;
    color: var(--light-text);
}

/* Articles Section */
.articles-section {
    padding: 6rem 0;
    background-color: white;
}

.articles-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.article-content h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.article-excerpt {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Article Modal */
.article-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
}

.modal-article {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    right: -40px;
    top: -40px;
    font-size: 2.5rem;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
}

.close-modal:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .close-modal {
        right: 10px;
        top: -50px;
    }
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background-color: var(--light-bg);
    position: relative;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(255, 206, 84, 0.1);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 206, 84, 0.1);
    border-radius: 50%;
}

.contact-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 450px;
}

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

@media (max-width: 768px) {
    .contact-section {
        padding: 6rem 0;
    }

    .contact-section h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .map-container {
        height: 350px;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-item i {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
}

/* Priznanja Section */
.priznanja-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.priznanja-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

.priznanja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.priznanje-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.priznanje-card:hover {
    transform: translateY(-5px);
}

.priznanje-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.priznanje-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.priznanje-card:hover .priznanje-image img {
    transform: scale(1.05);
}

.priznanje-content {
    padding: 1.5rem;
    text-align: center;
}

.priznanje-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.priznanje-content p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.view-certificate-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.view-certificate-btn:hover {
    background-color: var(--hover-color);
}

/* Certificate Modal */
#certificateModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#certificateModal .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

#certificateModal .close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

#certificateModal .close-modal:hover {
    color: var(--primary-color);
}

#certificateModal .modal-body {
    margin-top: 1rem;
}

#certificateModal .modal-body img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

@media (max-width: 768px) {
    #certificateModal .modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1rem;
    }

    #certificateModal .close-modal {
        right: 0.5rem;
        top: 0.5rem;
    }

    #certificateModal .modal-body {
        margin-top: 0.5rem;
    }

    #certificateModal .modal-certificate img {
        border-radius: 5px;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 160, 0, 0.95);
        padding: 1rem 0;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: white;
        padding: 0.5rem 1rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 768px) {
    .priznanja-section {
        padding: 4rem 1rem;
    }

    .priznanja-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .priznanja-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .priznanje-card {
        margin: 0;
    }

    .priznanje-content {
        padding: 1.2rem;
    }

    .priznanje-content h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .priznanje-content p {
        text-align: center;
        margin-bottom: 1rem;
    }

    .view-certificate-btn {
        width: 100%;
        padding: 0.8rem;
    }

    .priznanje-image {
        height: 250px;
    }

    #certificateModal .modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1rem;
    }

    #certificateModal .close-modal {
        right: 0.5rem;
        top: 0.5rem;
    }

    #certificateModal .modal-body {
        margin-top: 0.5rem;
    }

    #certificateModal .modal-certificate img {
        border-radius: 5px;
    }
}

@media (max-width: 480px) {
    .priznanja-section h2 {
        font-size: 1.8rem;
    }

    .priznanje-content h3 {
        font-size: 1.1rem;
    }

    .priznanje-image {
        height: 200px;
    }

    #certificateModal .modal-content {
        width: 98%;
        margin: 0.5rem;
        padding: 0.8rem;
    }
}

/* Footer */
footer {
    background-color: #995500;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 160, 0, 0.95);
        padding: 1rem 0;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .o-nama-content {
        text-align: justify;
        padding: 1rem;
    }

    .o-nama-text {
        text-align: justify;
    }

    .article-content p {
        text-align: justify;
    }

    .contact-info p {
        text-align: justify;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        text-align: justify;
    }

    .section-title {
        font-size: 2rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-card {
        margin: 0 1rem;
    }

    .contact-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .map-container {
        height: 300px;
    }
}
