/* Root Variables */
:root {
    --primary-color: #3C6E47;
    --secondary-color: #70A37F;
    --accent-color: #E3B448;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --background-color: #f8f9fa;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --color-light: #f8f9fa;
    --color-primary: #3C6E47;
    --color-secondary: #70A37F;
    --nav-height: 80px;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --wine-dark: #722F37;
    --wine-light: #9E5A63;
    --earth-brown: #5C4033;
    --cream: #F5F1E9;
    --gold: #C1A87D;
    --text-color: #333333;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    width: 300px;
    height: 100%;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.1;
}

body::before {
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23285c34' d='M50,3c0,0-45,47-45,47s45-27,45-27S95,50,95,50s-45-27-45-27S5,50,5,50s45,27,45,27S95,50,95,50L50,97V3z'/%3E%3C/svg%3E");
    transform: rotate(180deg) scaleX(-1);
    background-position: left center;
    opacity: 0.05;
}

body::after {
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23285c34' d='M50,3c0,0-45,47-45,47s45-27,45-27S95,50,95,50s-45-27-45-27S5,50,5,50s45,27,45,27S95,50,95,50L50,97V3z'/%3E%3C/svg%3E");
    background-position: right center;
    opacity: 0.05;
}

@media (max-width: 1200px) {
    body::before,
    body::after {
        width: 200px;
    }
}

@media (max-width: 768px) {
    body::before,
    body::after {
        width: 150px;
    }
}

@media (max-width: 480px) {
    body::before,
    body::after {
        display: none;
    }
}

main {
    flex: 1 0 auto;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h2, h3 {
    color: var(--wine-light);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h4 {
    color: var(--wine-light);
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

strong {
    color: var(--wine-dark);
}

.list-unstyled strong {
    font-size: 1.1rem;
}

.lead.text-center {
    font-size: 1.3rem;
    margin: 3rem 0;
    padding: 1rem;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-left, .nav-right {
    flex: 1;
}

.nav-center {
    flex: 2;
}

.logo {
    display: block;
    max-width: 180px;
}

.logo img {
    width: 100%;
    height: auto;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.social-link {
    color: var(--text-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .nav-center {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-center.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-container {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .logo {
        max-width: 140px;
    }

    .nav-social {
        display: none;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    margin-top: -76px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
                url('images/poljoprivreda10.jpg');
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    animation: zoomEffect 30s infinite alternate;
    z-index: -1;
    filter: brightness(0.9);
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-color);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.scroll-indicator:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-5px);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto;
}

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

.about-card {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Why Us Section */
.why-us {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.why-us h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--wine-dark);
}

.why-us-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 0 1rem;
}

.why-us-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.why-us-item:hover {
    transform: translateY(-5px);
}

.why-us-item h3 {
    color: var(--wine-light);
    margin-bottom: 1.5rem;
}

.why-us-item p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--accent-color);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feature-card h3 {
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Product Section */
.product-section {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates perfect square */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
    background: #fff;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
}

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

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

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

.contact-header {
    margin-bottom: 1rem;
}

.contact-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-header h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 0;
    padding: 0;
    border: none;
}

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

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

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

.social-media {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-media h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

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

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

    .contact-card {
        padding: 1.25rem;
    }

    .social-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Gallery Styles */
.gallery {
    padding: 6rem 0;
    background-color: var(--color-light);
}

.gallery-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background-color: var(--color-primary);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-item-overlay p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Map Styles */
.map-container {
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .map-container {
        margin: 2rem 0;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.3s ease;
}

.modal-close {
    position: fixed;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

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

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* Contact Panel */
.contact-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.contact-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.contact-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.contact-panel.active {
    transform: translateX(0);
}

.contact-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.contact-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.contact-panel-content {
    padding: 2rem;
    padding-top: 5rem;
}

.contact-panel h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
}

.contact-panel h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.contact-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-section:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(-5px);
}

.contact-section p {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-section strong {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    margin-right: 0.5rem;
}

.contact-section.map-section {
    padding: 0;
    overflow: hidden;
    height: 200px;
}

.contact-section.map-section:hover {
    transform: translateX(-5px);
}

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

@media (max-width: 576px) {
    .contact-panel {
        width: 100%;
    }
    
    .contact-section:hover {
        transform: none;
    }
}

/* Footer */
footer {
    flex-shrink: 0;
    background-color: #f8f8f8;
    padding: 60px 0 30px;
    color: #333;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-section {
    flex: 1;
    min-width: calc(33.333% - 2rem);
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

.footer-section p,
.footer-section a {
    color: #666;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-section a {
    display: block;
}

.footer-section a:hover {
    color: #333;
}

.footer-section i {
    margin-right: 10px;
    width: 16px;
    color: #555;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #333;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }

    .footer-section i {
        margin-right: 5px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
    }

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

    .why-us-content {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .why-us-item {
        padding: 1.5rem;
    }

    .gallery-categories {
        padding: 0 1rem;
    }
    
    .gallery-grid {
        padding: 1rem;
    }
}
