:root { 
    --bg-main: #0a0a0a; 
    --bg-secondary: #141414; 
    --text-primary: #ffffff; 
    --text-secondary: #b3b3b3; 
    --accent-red: #ff0000; 
}

* { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; outline: none; }
html { background-color: var(--bg-main); scroll-behavior: smooth; font-size: 15px; }

body { 
    opacity: 0; 
    transition: opacity 0.5s ease; 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-primary); 
    line-height: 1.6; 
    overflow-x: hidden; 
}
body.loaded { opacity: 1; }
body.lang-cn { font-family: 'Noto Sans SC', sans-serif; }
body.lang-jp { font-family: 'Noto Sans JP', sans-serif; }

.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.highlight-red { color: var(--accent-red); }

.reveal { opacity: 0; transform: translateY(25px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- HEADER & NAVIGATION --- */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    background: rgba(10, 10, 10, 0.95); 
    backdrop-filter: blur(15px); 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.logo img { height: 35px; width: auto; transition: 0.3s; }

nav { display: flex; align-items: center; }
nav ul { display: flex; align-items: center; list-style: none; }
nav ul li { margin-left: 25px; }
nav ul li a { 
    font-weight: 600; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    position: relative; 
    color: var(--text-primary); 
    transition: 0.3s ease; 
    display: block;
    padding: 5px 0;
}

nav ul li a::before { 
    content: ''; 
    position: absolute; 
    width: 6px; 
    height: 6px; 
    background-color: var(--accent-red); 
    border-radius: 50%; 
    bottom: -5px; 
    left: 50%; 
    transform: translateX(-50%) scale(0); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
nav ul li a:hover, nav ul li a.active-link { color: var(--accent-red); }
nav ul li a:hover::before, nav ul li a.active-link::before { transform: translateX(-50%) scale(1); }

/* --- LANGUAGE DROPDOWN --- */
.lang-switch { 
 /*  margin-left: 25px; */
   /* border-left: 1px solid rgba(255,255,255,0.2);*/ 
    padding-left: 20px; 
    position: relative;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropbtn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 43.5%;
    transition: color 0.3s ease;
}

.lang-dropbtn:hover { color: var(--accent-red); }

.lang-dropbtn .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-dropdown.active .arrow {
    transform: rotate(180deg);
    color: var(--accent-red);
}

.lang-dropdown-content {
    position: absolute;
    top: 140%;
    right: 0;
    background-color: var(--bg-secondary);
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 5px 20px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-option:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--accent-red);
    padding-left: 30px;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* --- HERO --- */
#hero { 
    min-height: 70vh; 
    display: flex; 
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px; 
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.7)), url('../resources/img/hero-bg.jpg'); 
    background-size: cover; 
    background-position: center; 
}
#hero .container { text-align: left; }
#hero h1 { 
    font-size: clamp(1.8rem, 5vw, 3.5rem); 
    font-weight: 800; 
    line-height: 1.2; 
    margin-bottom: 20px; 
}
#hero p { 
    font-size: clamp(0.95rem, 2vw, 1.1rem); 
    color: var(--text-secondary); 
    max-width: 650px; 
    margin-bottom: 30px; 
}
.btn { 
    display: inline-block; 
    padding: 14px 32px; 
    background-color: var(--accent-red); 
    color: #fff; 
    font-weight: 700; 
    text-transform: uppercase; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-size: 0.85rem;
    border-radius: 4px;
}
.btn:hover { 
    background-color: #cc0000; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* --- TRUSTED (JS ANIMATION) --- */
#trusted { 
    padding: 0px 0; 
    background: var(--bg-main); 
    overflow: hidden; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.logo-slider {
    overflow: hidden;
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
}
.logo-slide-track {
    display: flex;
    will-change: transform;
    /* Usunięto animation: scroll, ponieważ używasz JS */
}
.logo-slide { 
    flex: 0 0 200px; 
    width: 200px;
    text-align: center; 
    position: relative;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}
.logo-slide img { 
    aspect-ratio: 1;
    max-width: 100%; 
    max-height: 80px;
    width: auto;
    height: auto;
    filter: grayscale(100%); 
    opacity: 0.4; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}
.client-name { 
    position: absolute;
    bottom: 10px;
    font-size: 0.65rem; 
    font-weight: 800; 
    color: var(--accent-red); 
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0; 
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}
.logo-slide:hover img { 
    filter: grayscale(0%); 
    opacity: 1; 
    transform: scale(1.08); 
}
.logo-slide:hover .client-name { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- SECTIONS --- */
section { padding: 80px 0; }
#services { background-color: var(--bg-secondary); }
.section-title { 
    font-size: clamp(1.8rem, 4vw, 2.2rem); 
    font-weight: 800; 
    text-align: center; 
    margin-bottom: 50px; 
    text-transform: uppercase; 
}
.section-title::after { 
    content: ''; 
    display: block; 
    width: 50px; 
    height: 3px; 
    background: var(--accent-red); 
    margin: 15px auto 0; 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px; 
}
.service-card { 
    background: rgba(255,255,255,0.03); 
    padding: 35px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.08); 
    transition: all 0.3s ease; 
}
.service-card:hover { 
    border-color: var(--accent-red); 
    transform: translateY(-8px); 
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.15);
}
.service-icon img { width: 42px; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.service-card p { color: var(--text-secondary); line-height: 1.6; }

/* --- ABOUT & GALLERY --- */
.about-content { 
    display: grid; 
    margin: 0;
    gap: 50px; 
    align-items: center; 
    margin-bottom: 80px; 
    padding: 0 8.5%;
}
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; color: var(--text-secondary); line-height: 1.7; }

.studio-gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin: 40px auto 60px auto; 
    max-width: 1000px; 
}
.gallery-item { 
    height: 200px; 
    overflow: hidden; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
}
.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(50%); 
    transition: all 0.5s ease; 
}
.gallery-item:hover img { transform: scale(1.1); filter: grayscale(0%); }

/* --- TEAM --- */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(160px, 180px)); 
    gap: 30px; 
    margin-top: 50px; 
    justify-content: center; 
}
.team-member { text-align: center; }
.team-photo { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    border: 3px solid var(--accent-red); 
    margin: 0 auto 15px; 
    overflow: hidden; 
    background: #1a1a1a; 
}
.team-photo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(40%); 
    transition: all 0.3s ease; 
}
.team-member:hover .team-photo img { filter: grayscale(0%); transform: scale(1.1); }
.team-member h3 { font-size: 1rem; margin-bottom: 5px; }
.team-member span { 
    font-size: 0.8rem; 
    color: var(--text-secondary); 
    display: block; 
    min-height: 2.4em; 
}

/* --- SPECS --- */
#specs { background-color: var(--bg-secondary); }
.specs-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
}
.specs-category { 
    background: var(--bg-main); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.08); 
}
.specs-category h3 { 
    font-size: 1.15rem; 
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--accent-red); 
    display: inline-block; 
    padding-bottom: 6px; 
    text-transform: uppercase; 
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { 
    padding: 12px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    font-size: 0.9rem; 
}
.specs-table tr:last-child td { border-bottom: none; }
.item-name { font-weight: 600; color: #fff; }

/* --- CONTACT --- */
.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 50px; 
    align-items: start;
}
.contact-info h3 { margin-bottom: 15px; font-size: 1.3rem; }
.contact-info p { color: var(--text-secondary); line-height: 1.8; }
.contact-form { 
    background: var(--bg-secondary); 
    padding: 35px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.08);
}
.form-control { 
    width: 100%; 
    padding: 14px; 
    background: var(--bg-main); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: #fff; 
    margin-bottom: 15px; 
    font-family: inherit; 
    border-radius: 6px; 
    transition: border-color 0.3s ease;
    font-size: 0.95rem;
}
.form-control:focus { border-color: var(--accent-red); }
textarea.form-control { resize: vertical; min-height: 120px; }

footer { 
    padding: 50px 0; 
    text-align: center; 
    background: #050505; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}
.footer-logo { width: 80px; margin-bottom: 15px; opacity: 0.4; }
footer p { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================
    RESPONSIVE MEDIA QUERIES
============================================ */

@media (max-width: 1024px) {
    nav ul li { margin-left: 20px; }
    .lang-switch { margin-left: 15px; padding-left: 15px; }
    section { padding: 60px 0; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle { display: block; }
    
    nav { 
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-300%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    nav ul li a {
        padding: 15px 20px;
        display: block;
        text-align: center;
    }
    
    nav ul li a::before { display: none; }
    
    .lang-switch {
        margin: 20px 0 0 0;
        padding: 20px 0 0 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .lang-dropdown-content {
        position: relative; 
        top: 10px;
        right: auto;
        width: 100%;
        min-width: 200px;
        background: rgba(255,255,255,0.03);
        box-shadow: none;
        text-align: center;
    }
    
    .lang-option {
        text-align: center;
    }
    
    .lang-option:hover {
        padding-left: 20px;
        background-color: rgba(255,255,255,0.05);
    }

    /* Hero */
    #hero {
        min-height: 60vh;
        padding: 100px 5% 40px;
        align-items: flex-start;
    }
    
    #hero h1 { margin-bottom: 15px; }
    #hero p { margin-bottom: 25px; }

    /* Other Sections */
    .about-content, .contact-wrapper, .services-grid, .specs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .team-photo { width: 100px; height: 100px; }
    .gallery-item { height: 220px; }
    
    .logo-slide {
        flex: 0 0 160px;
        width: 160px;
        height: 120px;
    }
    .logo-slide img { max-width: 80px; max-height: 60px; }
    
    section { padding: 50px 0; }
    .section-title { margin-bottom: 35px; }
}

@media (max-width: 480px) {
    header { padding: 12px 4%; }
    .logo img { height: 28px; }
    #hero { padding: 90px 4% 30px; }
    .btn { padding: 12px 24px; font-size: 0.8rem; }
    .service-card, .contact-form, .specs-category { padding: 25px; }
    .form-control { padding: 12px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-slide { flex: 0 0 140px; width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}