/* Modern Base Styles - Black & White Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --secondary-gradient: linear-gradient(135deg, #333333 0%, #666666 100%);
    --gold-gradient: linear-gradient(135deg, #f8f8f8 0%, #e0e0e0 100%);
    --dark-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.3);
    --text-primary: #000000;
    --text-light: #666666;
    --accent-color: #000000;
    --success-color: #333333;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: var(--text-primary);
    scroll-behavior: smooth;
    padding-top: 90px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Modern Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-heavy);
}

.logo {
    z-index: 1100;
    transition: var(--transition);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Modern Burger Button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
    transition: var(--transition);
}

.burger div {
    height: 3px;
    background: linear-gradient(45deg, #000000, #333333);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.burger:hover div {
    background: linear-gradient(45deg, #333333, #000000);
    transform: scaleX(1.1);
}

/* Modern Navigation Menu */
nav {
    display: flex;
    gap: 40px;
    position: static;
    transform: none;
    left: auto;
    top: auto;
    background: none;
    padding: 0;
    height: auto;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
    transition: var(--transition);
    user-select: none;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition);
    z-index: -1;
    border-radius: 25px;
}

nav a:hover::before,
nav a.active::before {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.spacer {
    width: 150px;
}

/* Modern Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    min-width: 220px;
    z-index: 1000;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show dropdown when class is added */
.dropdown.dropdown-open .dropdown-content {
    display: block;
}

/* Desktop hover functionality (backup) */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Second Level Dropdown */
.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    display: none;

    left: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    min-width: 200px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Show sub-dropdown when class is added */
.sub-dropdown.sub-open .sub-dropdown-content {
    display: block;
}

/* Desktop hover functionality for sub-dropdowns (only on desktop) */
@media (min-width: 769px) {
    .sub-dropdown:hover .sub-dropdown-content {
        display: block;
    }
}

/* Modern Link Styles */
.dropdown-content a, 
.sub-dropdown-content a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dropdown-content a::before,
.sub-dropdown-content a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition);
    z-index: -1;
}

.dropdown-content a:hover::before,
.sub-dropdown-content a:hover::before {
    left: 0;
}

.dropdown-content a:hover,
.sub-dropdown-content a:hover {
    color: white;
    transform: translateX(5px);
}

/* Google Translate Modernized */
#google_translate_element {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

#google_translate_element:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget select {
    font-size: 14px !important;
    padding: 6px 10px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.goog-te-gadget select:hover {
    background: white;
    transform: scale(1.02);
}

/* Modern Slider */
.slider {
    position: relative;
    overflow: hidden;
    max-height: 600px;
    width: 100%;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow-heavy);
}

.slides {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slides img {
    flex-shrink: 0;
    width: 100%;
    cursor: pointer;
    user-select: none;
    filter: brightness(0.9);
    transition: var(--transition);
}

.slides img:hover {
    filter: brightness(1);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 18px;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.arrow.left { 
    left: 30px; 
}

.arrow.right { 
    right: 30px; 
}

/* Modern About Section */
.about {
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 248, 248, 0.95) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(0,0,0,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

.about p {
    max-width: 900px;
    margin: auto;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 400;
    position: relative;
}

/* Modern Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

.gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.gallery img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: var(--shadow-heavy);
    z-index: 10;
}

/* Modern Modal Window */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal img, 
.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    animation: modalImageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalImageIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Map Section */
.map {
    padding: 40px;
    text-align: center;
    background: white;
}

.map iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.map iframe:hover {
    box-shadow: var(--shadow-heavy);
    transform: scale(1.02);
}

/* Modern Contacts Section */
.contacts {
    background: var(--dark-gradient);
    color: white;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 280px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition);
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.contact-item h3 {
    margin: 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Phone Link */
.contact-item.phone a {
    color: white !important;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item.phone a:hover {
    color: var(--accent-color) !important;
}

/* Modern Scroll-to-Top Button */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 2000;
    transition: var(--transition);
    user-select: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    border: none;
}

.scroll-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Social Media Icons */
.social-link img {
    margin: 0 15px;
    transition: var(--transition);
    width: 50px;
    height: auto;
    vertical-align: middle;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
}

.social-link img:hover {
    transform: scale(1.2) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-light);
}

.social-icons {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    margin-top: 40px;
}

.social-link {
    list-style: none;
    margin: 0 15px;
    padding: 0;
    display: inline-block;
}

/* Modern Catalog Styles */
.catalog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.catalog-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.catalog-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.catalog-item img {

    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.catalog-item:hover img {
    transform: scale(1.05);
}

.catalog-item p {
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Image placeholder for progressive loading */
.img-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.img-placeholder::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(135,135,135,0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    header {
        padding: 15px 20px;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -300px;
        height: calc(100vh - 80px);
        width: 300px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding-top: 30px;
        gap: 20px;
        box-shadow: var(--shadow-heavy);
        transition: var(--transition);
        z-index: 1050;
        overflow-y: auto;
        align-items: flex-start;
        border-right: 1px solid var(--glass-border);
    }

    nav.open {
        left: 0;
    }

    nav a {
        font-size: 18px;
        padding: 15px 25px;
        color: var(--text-primary);
        width: calc(100% - 40px);
        margin: 0 20px;
        text-align: left;
    }

    .burger {
        display: flex;
    }

    .logo img {
        height: 40px;
    }

    .spacer {
        display: none;
    }

    #google_translate_element {
        position: static;
        margin-left: 10px;
        transform: none;
    }

    .dropdown-content, 
    .sub-dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        background: rgba(240, 240, 240, 0.95);
        margin-left: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }

    .sub-dropdown-content {
        display: none;
        padding-left: 15px;
        background: rgba(230, 230, 230, 0.95);
    }

    .sub-dropdown.open .sub-dropdown-content,
    .sub-dropdown.sub-open .sub-dropdown-content {
        display: block;
    }
    
    /* Mobile dropdown always visible when parent dropdown is open */
    .dropdown.dropdown-open .dropdown-content {
        display: block;
    }

    .sub-dropdown > a::after {
        content: " ▼";
        float: right;
    }

    .about {
        padding: 60px 20px;
    }

    .about h2 {
        font-size: 2.2rem;
    }

    .about p {
        font-size: 18px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 40px 20px;
    }

    .contacts {
        padding: 60px 20px;
    }

    .contact-list {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 350px;
    }

    .catalog-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 40px 20px;
    }

    .arrow {
        padding: 12px 15px;
        font-size: 16px;
    }

    .arrow.left { 
        left: 15px; 
    }

    .arrow.right { 
        right: 15px; 
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

/* Extra animations and modern touches */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo img {
    animation: float 6s ease-in-out infinite;
}

/* Smooth page transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}