/* --- Global Variables --- */
:root {
    --color-card: rgba(25, 29, 45, 0.4);
    --color-border: rgba(184, 216, 232, 0.2);
    --font-main: 'Inter', sans-serif;
    --header-height: 80px;
}

/* --- Base Styles --- */
/* body, h1, h2, etc. styles are in critical CSS (index.html) */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0.5px; }
h2 { font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem); }
a { color: var(--color-accent); text-decoration: none; }
body { line-height: 1.6; }

#custom-background-iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    z-index: 0;
    display: none;
}

main { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 100px 30px; transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
body.nav-is-open main { opacity: 0; transform: translateY(20px); pointer-events: none; }

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

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.hero-contact-list {
    font-size: 0.8em;
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
    line-height: 1.6;
}

section { margin-bottom: 120px; perspective: 1000px; }

.floating-item {
    opacity: 0.5;
    transform: translateY(60px);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.floating-item.is-visible { opacity: 1; transform: translateY(0); }
.floating-item.is-above { opacity: 0.5; transform: translateY(-60px); }

.animated-container { opacity: 0; transform: translateY(20px); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.item-card { display: flex; flex-direction: column; background: var(--color-card); border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.item-card:hover { transform: translateY(-10px) scale(1.02) !important; border-color: var(--color-accent); box-shadow: 0 10px 30px rgba(184, 216, 232, 0.3); }
.item-card__image { aspect-ratio: 4 / 3; background: linear-gradient(135deg, rgba(184, 216, 232, 0.1), rgba(25, 29, 45, 0.7)); background-size: cover; background-position: center; opacity: 1; transition: opacity 0.8s ease-in-out; position: relative; overflow: hidden; }
.item-card__content { padding: 25px; }
.item-card h3 { margin: 0 0 10px; font-size: 1.3rem; transition: color 0.3s ease-out; color: var(--color-text); }
.item-card:hover h3 { color: var(--color-accent); }
.item-card .card-subtitle { display: block; margin-bottom: 15px; opacity: 0.8; font-size: 0.9rem; color: var(--color-text); }
.item-card p { margin: 0; font-size: 1.05rem; opacity: 0.9; color: var(--color-text); }

.menu-toggle { position: fixed; top: 30px; right: 30px; z-index: 1000; background: transparent; border: none; padding: 0; cursor: pointer; width: 30px; height: 24px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.4s; }
.menu-toggle:hover { transform: scale(1.1); }
.menu-toggle .bar { background: #FFFFFF; height: 2px; width: 100%; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); transform-origin: right; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(-45deg); background: var(--color-accent); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(45deg); background: var(--color-accent); }

.nav-overlay { position: fixed; top: 0; right: -100%; width: 400px; height: 100vh; background: var(--color-card); backdrop-filter: blur(10px); z-index: 999; transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1); overflow: hidden; }
.nav-overlay.is-active { right: 0; }
.nav-menu { padding: 100px 40px; list-style: none; margin: 0; }
.nav-menu li { margin-bottom: 25px; opacity: 0; transform: translateX(30px); transition: all 0.4s ease-out; }
.nav-overlay.is-active .nav-menu li { opacity: 1; transform: translateX(0); }
.nav-menu li:nth-child(1) { transition-delay: 0.1s; } .nav-menu li:nth-child(2) { transition-delay: 0.2s; } .nav-menu li:nth-child(3) { transition-delay: 0.3s; } .nav-menu li:nth-child(4) { transition-delay: 0.4s; } .nav-menu li:nth-child(5) { transition-delay: 0.5s; } .nav-menu li:nth-child(6) { transition-delay: 0.6s; }
.nav-menu a { color: var(--color-text); font-size: 1.8rem; position: relative; padding-bottom: 5px; transition: all 0.3s ease-out; }
.nav-menu a:hover { color: var(--color-accent); transform: translateX(5px); }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--color-accent); transition: width 0.4s; }
.nav-menu a:hover::after { width: 100%; }

.hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin: 0 0 20px; line-height: 1.1; font-weight: 700; text-shadow: 0 0 15px rgba(184, 216, 232, 0.4); opacity: 0; transform: translateY(20px); }
.hero .hero-subtitle-container { opacity: 0; transform: translateY(20px); }
.hero .hero-subtitle-container p { font-size: 1.4rem; max-width: 600px; margin-bottom: 0; }

.detail-page-header { text-align: left; margin-bottom: 60px; }
.detail-page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 20px; line-height: 1.1; font-weight: 700; text-shadow: 0 0 15px rgba(184, 216, 232, 0.4); }
.detail-price { font-size: 1.2rem; color: var(--color-accent); letter-spacing: 1px; opacity: 0.9; }
.detail-main-image { width: 100%; height: auto; max-height: 450px; border-radius: 8px; object-fit: cover; border: 1px solid var(--color-border); margin-bottom: 40px; }
.detail-content { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem); opacity: 0.95; max-width: 800px; margin: 0 auto; }
.detail-content p, .detail-content li { margin-bottom: 1.5em; }
.detail-content b, .detail-content strong { color: var(--color-accent); font-weight: 600; }
.detail-content a { text-decoration: underline; }

#related-posts { margin-bottom: 60px; }
#related-posts h2 { text-align: center; font-size: 1.4rem; font-weight: 500; letter-spacing: 0.5px; opacity: 0.9; margin-bottom: 30px; }
#related-posts .item-grid { margin-top: 20px; }

/* --- Desktop Carousel Styles --- */
.desktop-grid-wrapper { display: block; margin-top: 40px; }
.desktop-language-group { margin-bottom: 50px; }
.desktop-language-group:last-child { margin-bottom: 0; }
.desktop-lang-title { color: var(--color-accent); font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.desktop-carousel-container { position: relative; transition: height 0.5s ease-in-out; }
.desktop-grid-slide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; pointer-events: none; }
.desktop-grid-slide.active { opacity: 1; pointer-events: auto; position: static; }
.desktop-slider-nav { text-align: center; margin-top: 25px; }
.desktop-slider-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: var(--color-border); margin: 0 5px; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
.desktop-slider-dot.active { background-color: var(--color-accent); transform: scale(1.2); }


.site-footer { position: relative; z-index: 2; text-align: center; padding: 20px 30px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); margin-top: -60px; cursor: pointer; user-select: none; -webkit-user-select: none; }

.mobile-sliders-container { display: none; }
.language-slider-block { margin-bottom: 30px; }
.cross-fade-slider { position: relative; -webkit-tap-highlight-color: transparent; transition: height 0.5s ease-in-out; }
.cross-fade-slider .item-card { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; z-index: 1; pointer-events: none; transform: translateY(40px); transition: opacity 0.7s ease-in-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cross-fade-slider .item-card:hover { transform: translateY(0) !important; box-shadow: none; border-color: var(--color-border); }
.cross-fade-slider .item-card.active { opacity: 1; z-index: 2; pointer-events: auto; transform: translateY(0); }
.slider-nav { text-align: center; margin-top: 20px; position: relative; z-index: 3; }
.slider-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: var(--color-border); margin: 0 5px; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
.slider-dot.active { background-color: var(--color-accent); transform: scale(1.2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } .animated-container, .floating-item { opacity: 1; transform: none; transition: none; } }
@media (max-width: 1024px) { 
    .nav-overlay { width: 100%; } 
    /* Hide desktop-specific grid/carousel on mobile */
    section:not(#related-posts) > .desktop-grid-wrapper { display: none; }
    /* Show mobile slider on mobile */
    section:not(#related-posts) > .mobile-sliders-container { display: block; margin-top: 40px; } 
    #related-posts .item-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } 
    .desktop-grid-slide { grid-template-columns: 1fr; }
}
@media (max-width: 768px) { .hero h1 { font-size: 2.5rem; } #related-posts .item-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { main { padding: 60px 15px; } section { margin-bottom: 60px; } .hero h1 { font-size: 2rem; } .nav-menu { padding: 80px 20px; } .nav-menu a { font-size: 1.5rem; } }