/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

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

/* Root Variables */
:root {
    --primary-color: #c41e29;
    --secondary-color: #9b2609;
    --accent-color: #e76f51;
    --background-color: #f4f4f9;
    --text-color: #333;
    --font-family: 'Roboto', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Navigation */
nav {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    background-color: var(--accent-color);
    border-radius: 5px;
}

/* Hero Section */
.hero {
    background: url('Images/povrce4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero * {
    position: relative;
    z-index: 2;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.about h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 3rem 0;
    background: linear-gradient(to bottom, var(--background-color) 0%, #f5f5f5 100%);
}

.contact h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-item {
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.contact-item:hover {
    box-shadow: 0 4px 15px rgba(196, 30, 41, 0.1);
    transform: translateY(-2px);
}

.map-container {
    flex: 1;
    width: 100%;
    height: 350px;
    min-height: unset;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

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

/* Responsive design */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        width: 100%;
        height: 300px;
    }
}

/* Gallery Section Wrapper */
.gallery {
    padding: 6rem 0;
    background-color: var(--background-color);
    min-height: calc(100vh - 200px);
}

.gallery h1 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.category-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 300px;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    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.7));
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

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

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 20px;
    transition: background-color 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    top: -40px;
    right: 0;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    padding: 15px 20px;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Footer positioning */
main {
    flex: 1;
}

footer {
    margin-top: auto;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .about, .contact, .gallery {
        padding: 4rem 0;
    }
}
