/* Reset and general styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Update color variables at the top of the file */
:root {
    --primary-color: #8B7355;    /* Warm brown from soaps */
    --secondary-color: #D4C4B7;  /* Light beige from soaps */
    --accent-color: #4A4134;     /* Dark brown from soaps */
    --text-light: #F5F1ED;      /* Off-white for text on dark backgrounds */
    --text-dark: #2F2A23;       /* Dark brown for text */
    --hover-color: #A69081;     /* Lighter warm brown for hover states */
}

/* Header styles */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
}

.header-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Navigation styles */
.nav-menu {
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem 2rem;
    display: block;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: var(--hover-color);
}

/* Dropdown styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 200px;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    padding: 1rem;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    padding-top: 60px;
}

.welcome {
    text-align: center;
    margin: 3rem 0;
}

.welcome h1 {
    color: #2c5530;
    margin-bottom: 1rem;
}

/* About section styles */
.about-section {
    margin: 4rem auto;
    max-width: 800px;
    padding: 0 1rem;
}

.about-section h2 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.about-content {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: var(--text-dark);
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

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

/* Contact section styles */
.contact-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section h2 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-details {
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-details h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-details strong {
    color: var(--accent-color);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-details {
        order: 2;
    }

    .map-container {
        order: 1;
    }
}

/* Gallery styles */
.gallery-section {
    padding: 2rem;
    margin-bottom: 3rem;
}

.gallery-section h2 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.subsection-title {
    color: var(--accent-color);
    text-align: center;
    margin: 2rem 0 1.5rem;
    font-size: 1.8rem;
    position: relative;
}

.subsection-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.5rem auto;
    border-radius: 2px;
}

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

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

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

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.gallery-item a:hover {
    opacity: 0.9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background-color: #fff;
    padding: 0.5rem;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(139, 115, 85, 0.9);
    color: var(--text-light);
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

/* Special styling for Ostali proizvodi section */
#ostalo .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

#ostalo .gallery-item {
    aspect-ratio: auto;
    height: auto;
}

#ostalo .gallery-item img {
    height: auto;
    max-height: 300px;
    object-fit: contain;
    padding: 0.5rem;
}

#ostalo .gallery-caption {
    position: relative;
    transform: none;
    background: var(--accent-color);
}

#ostalo .gallery-item:hover .gallery-caption {
    transform: none;
}

/* Video section styles */
.video-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    margin-top: 0;
}

.video-section h1 {
    display: none;
}

.video-intro {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
}

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

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Remove these sections as they're no longer needed */
.video-grid-final,
.video-wrapper,
.video-info,
.video-duration {
    display: none;
}

/* Responsive video adjustments */
@media (max-width: 1200px) {
    .video-grid-final {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .video-section h1 {
        font-size: 2rem;
    }

    .video-info h3 {
        font-size: 1rem;
    }

    .video-duration {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .video-grid,
    .video-grid-final {
        grid-template-columns: 1fr;
    }
}

/* Responsive gallery adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item img {
        height: 250px;
    }

    .gallery-section h2 {
        font-size: 2rem;
    }

    .subsection-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }
}

/* Footer styles */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.social-links img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .dropdown-content {
        position: static;
        width: 100%;
    }

    .header-image {
        height: 200px;
    }

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

/* Hero section */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('Gogos11.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 65, 52, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }

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

    .hero p {
        font-size: 1.2rem;
    }
}