/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    /*background: rgba(139, 69, 19, 0.95);*/
}

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

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
    position: relative;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    position: relative;
    font-size: 0.95rem;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    position: relative;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 35px 8px 15px;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
    color: var(--white);
}

.language-selector select:hover {
    color: #2c1810;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-selector::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.7rem;
    color: var(--secondary-color);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-color), #2c1810);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
    border: none;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1) rotate(90deg);
}

.image-info {
    padding: 1.5rem;
    background: var(--white);
}

.image-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.image-info p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Improved Mobile Header */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
        backdrop-filter: blur(15px);
        background: rgba(139, 69, 19, 0.98);
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo i {
        font-size: 1.6rem;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 2;
    }
    
    .language-selector {
        order: 3;
        margin-left: auto;
        margin-right: 1rem;
    }
    
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        order: 4;
    }
    
    nav.active {
        max-height: 400px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0.5rem;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 20px;
        border-radius: 0;
        border-left: 3px solid transparent;
        font-size: 1rem;
    }
    
    nav ul li a.active {
        border-left-color: var(--secondary-color);
        background: rgba(255, 255, 255, 0.1);
    }
    
    nav ul li a:hover {
        border-left-color: var(--accent-color);
        background: rgba(255, 255, 255, 0.08);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links ul li a:hover {
        transform: none;
    }
    
    /* Header scroll behavior */
    header {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    header.hidden {
        transform: translateY(-100%);
    }
    
    header.scrolled {
        background: rgba(62, 39, 35, 0.98);
        padding: 0.5rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Add proper spacing for fixed header */
    .hero {
        padding-top: 80px;
    }
    
    section {
        scroll-margin-top: 80px;
    }
}

/* Desktop specific improvements */
@media (min-width: 769px) {
    header.scrolled {
        background: rgba(62, 39, 35, 0.98);
        padding: 0.7rem 0;
        backdrop-filter: blur(20px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }
    
    .logo {
        font-size: 1.7rem;
    }
    
    nav ul li a {
        position: relative;
        overflow: hidden;
    }
    
    nav ul li a::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: var(--transition);
        transform: translateX(-50%);
    }
    
    nav ul li a:hover::before,
    nav ul li a.active::before {
        width: 70%;
    }
}

/* Add smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Ensure proper spacing for all sections */
main {
    padding-top: 0;
}