:root {
    --bg-color: #050508;
    --text-primary: #ffffff;
    --text-muted: #8888aa;
    --accent: #2b45ff;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

@media (min-width: 1025px) {
    html, body { cursor: none; }
    .cursor-dot, .cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        z-index: 99999;
        pointer-events: none;
        will-change: transform;
        transform: translate3d(-50%, -50%, 0);
        display: block;
    }
    .cursor-dot { width: 8px; height: 8px; background-color: var(--text-primary); }
    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255,255,255,0.5);
        transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    }
}

@media (max-width: 1024px) {
    .cursor-dot, .cursor-outline { display: none !important; }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    background-color: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.logo { font-size: 1.5rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.header-controls { display: flex; align-items: center; gap: 2.5rem; }
.price-btn { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.05em; font-weight: 500; transition: color 0.3s ease; }
.price-btn:hover { color: var(--text-primary); }

.lang-switch { display: flex; align-items: center; gap: 0.4rem; user-select: none; }
.lang-separator { color: var(--text-muted); font-size: 0.8rem; opacity: 0.6; }
.lang-btn { background: none; border: none; color: var(--text-muted); font-family: var(--font-main); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.05em; padding: 2px 4px; transition: color 0.3s ease; -webkit-tap-highlight-color: transparent; }
@media (min-width: 1025px) { .lang-btn { cursor: none; } }
.lang-btn:hover { color: rgba(255, 255, 255, 0.7); }
.lang-btn.active { color: var(--text-primary); font-weight: 700; }

.portfolio-container { width: 100%; display: flex; flex-direction: column; align-items: center; background-color: var(--bg-color); padding-top: 80px; }
.image-section { width: 100%; display: flex; justify-content: center; position: relative; overflow: hidden; background-color: var(--bg-color); }

.image-section::before, .image-section::after { content: ''; position: absolute; left: 0; width: 100%; height: 140px; pointer-events: none; z-index: 5; }
.image-section::before { top: -2px; background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(5, 5, 8, 0.95) 15%, rgba(5, 5, 8, 0.6) 50%, transparent 100%); }
.image-section::after { bottom: -2px; background: linear-gradient(to top, var(--bg-color) 0%, rgba(5, 5, 8, 0.95) 15%, rgba(5, 5, 8, 0.6) 50%, transparent 100%); }
.portfolio-container .image-section:first-child::before, .portfolio-container .image-section:last-child::after { display: none; }

.portfolio-img { width: 100%; max-width: 1920px; height: auto; display: block; object-fit: contain; }

.footer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3rem; background: linear-gradient(to top, #0b0b10, var(--bg-color)); padding: 8rem 2rem 6rem 2rem; border-top: 1px solid rgba(255,255,255,0.06); width: 100%; }
.footer-title { font-size: 2.2rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-primary); text-align: center; }
.footer-container { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3.5rem; max-width: 1200px; width: 100%; }
.contact-item { display: flex; align-items: center; gap: 0.8rem; color: var(--text-muted); text-decoration: none; font-size: 1.1rem; transition: color 0.3s ease, transform 0.3s ease; }
.contact-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; flex-shrink: 0; }
.contact-item:hover { color: var(--text-primary); transform: translateY(-2px); }

.scroll-nav { position: fixed; bottom: 2.5rem; right: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; z-index: 9999; }
.scroll-btn { width: 46px; height: 46px; background-color: rgba(5, 5, 8, 0.7); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%; color: var(--text-primary); display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.scroll-btn svg { width: 20px; height: 20px; }
@media (min-width: 1025px) {
    .scroll-btn { cursor: none; }
    .scroll-btn:hover { background-color: var(--text-primary); color: var(--bg-color); border-color: var(--text-primary); transform: translateY(-2px); }
}

.reveal, .reveal-collage { opacity: 0; transform: translate3d(0, 30px, 0); will-change: transform, opacity; transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active, .reveal-collage.active { opacity: 1; transform: translate3d(0, 0, 0); }

@media (max-width: 1200px) { .header { padding: 1.5rem 2.5rem; } .footer-container { gap: 2.5rem; } }
@media (max-width: 768px) {
    .header { padding: 1.25rem 1.5rem; } .logo { font-size: 1.2rem; } .header-controls { gap: 1.5rem; }
    .portfolio-container { padding-top: 75px !important; } .image-section::before, .image-section::after { height: 70px; }
    .footer { padding: 5rem 1.5rem; gap: 2.5rem; } .footer-title { font-size: 1.6rem; letter-spacing: 0.1em; }
    .footer-container { flex-direction: column; align-items: flex-start; max-width: 320px; gap: 1.5rem; margin: 0 auto; }
    .contact-item { font-size: 1.05rem; width: 100%; }
    .scroll-nav { bottom: 1.5rem; right: 1.5rem; gap: 0.6rem; } .scroll-btn { width: 42px; height: 42px; } .scroll-btn svg { width: 18px; height: 18px; }
}
@media (max-width: 480px) { .header { padding: 1rem; } .logo { font-size: 1.1rem; letter-spacing: 0.05em; } .header-controls { gap: 1rem; } .price-btn { font-size: 0.85rem; } .footer-title { font-size: 1.35rem; } }
.lang-separator {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
    pointer-events: none;
}