/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    color: #000000;
}

body {
    cursor: none;
}

/* Niestandardowy kursor */
#cursor {
    width: 8px;
    height: 8px;
    background-color: #000000;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

#cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease-out;
    transform: translate(-50%, -50%);
}

/* Nawigacja */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 2px;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 200;
    font-size: 13px;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000000;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: #000000;
    transition: all 0.3s ease;
}

/* Kontener poziomego przewijania */
.horizontal-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 80px;
    overflow: hidden;
}

.scroll-sections {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.scroll-section {
    min-width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.section-content h2 {
    font-size: 48px;
    font-weight: 100;
    letter-spacing: 3px;
    margin-bottom: 60px;
    color: #000000;
}

/* Siatka produktów */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.product-item {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 16px;
    font-weight: 500;
    color: #666666;
}

/* Nawigacja pozioma */
.horizontal-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #000000;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 25%;
}

/* Footer */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.social-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links span {
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 2px;
}

.social-icons {
    display: flex;
    gap: 30px;
}

.social-icons a {
    text-decoration: none;
    color: #000000;
    font-size: 11px;
    font-weight: 200;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.6;
}

/* Efekty hover dla linków */
a:hover, button:hover {
    cursor: none;
}

body.link-hovered #cursor {
    transform: scale(3);
}

body.link-hovered #cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
}

/* Responsywność */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    #cursor,
    #cursor-follower {
        display: none;
    }

    .main-nav {
        padding: 15px 20px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .horizontal-container {
        position: static;
        height: auto;
        overflow: visible;
    }

    .scroll-sections {
        flex-direction: column;
        height: auto;
    }

    .scroll-section {
        min-width: auto;
        height: auto;
        padding: 60px 20px;
    }

    .section-content h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .product-item img {
        height: 300px;
    }

    .product-info {
        padding: 20px;
    }

    .horizontal-nav {
        display: none;
    }

    .main-footer {
        position: static;
        padding: 20px;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .social-icons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-content h2 {
        font-size: 28px;
    }
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeInUp 0.6s ease-out;
}

.product-item:nth-child(2) {
    animation-delay: 0.1s;
}

.product-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* Przeglądarki webkit */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}