/* Scroll-pin csomagolók a hero és a manifesto szekcióhoz */
.hero-pin,
.manifesto-pin {
    position: relative;
    height: 200vh;
}

/* Hero Szekció */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    padding-top: 0px;
    overflow: hidden;
    will-change: filter, opacity;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 450px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -10px;
    white-space: nowrap;
    z-index: 1;
}

.hero-image {
    position: relative;
    height: 700px;
    object-fit: cover;
    z-index: 10;
}

.scroll-indicator {
    position: absolute;
    right: 100px;
    bottom: 40px;
    font-size: 12px;
    letter-spacing: 1px;
    transform: rotate(90deg);
    transform-origin: right bottom;
}

/* Manifesto Szekció */
.manifesto-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.manifesto-content {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    will-change: filter, opacity;
}

.manifesto-text {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.3;
    max-width: 900px;
    text-align: left;
}

.manifesto-brand {
    margin-top: 0 px;
    font-size: 35px;
    font-weight: 400;
    font-style: italic;
}

/* Görgetésre megjelenő animáció */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tartalmi szekciók (Websites & Clothing) */
.content-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 40px;
}

.text-and-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.text-content {
    max-width: 50%;
}

.text-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-content p {
    font-size: 36px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 600;
}

/* Lebegő logók - Websites */
.floating-logos {
    position: relative;
    width: 400px;
    height: 400px;
}

.logo-figma { position: absolute; top: 0; left: 0; width: 150px; animation: float-circle-a 9s linear infinite; }
.logo-vscode { position: absolute; top: 50px; right: 0; width: 150px; animation: float-circle-b 11s linear infinite; animation-delay: -3s; }
.logo-js { position: absolute; bottom: 0; left: 50px; width: 150px; animation: float-circle-c 10s linear infinite; animation-delay: -6s; }

/* Sima, folyamatos körmozgás - sok apró lépésben, lineáris időzítéssel a rángatózás elkerülésére */
@keyframes float-circle-a {
    0%     { transform: translate(8px, 0) rotate(-8deg); }
    8.33%  { transform: translate(6.9px, 4px) rotate(-8deg); }
    16.67% { transform: translate(4px, 6.9px) rotate(-8deg); }
    25%    { transform: translate(0, 8px) rotate(-8deg); }
    33.33% { transform: translate(-4px, 6.9px) rotate(-8deg); }
    41.67% { transform: translate(-6.9px, 4px) rotate(-8deg); }
    50%    { transform: translate(-8px, 0) rotate(-8deg); }
    58.33% { transform: translate(-6.9px, -4px) rotate(-8deg); }
    66.67% { transform: translate(-4px, -6.9px) rotate(-8deg); }
    75%    { transform: translate(0, -8px) rotate(-8deg); }
    83.33% { transform: translate(4px, -6.9px) rotate(-8deg); }
    91.67% { transform: translate(6.9px, -4px) rotate(-8deg); }
    100%   { transform: translate(8px, 0) rotate(-8deg); }
}

@keyframes float-circle-b {
    0%     { transform: translate(7px, 0) rotate(6deg); }
    8.33%  { transform: translate(6.06px, -3.5px) rotate(6deg); }
    16.67% { transform: translate(3.5px, -6.06px) rotate(6deg); }
    25%    { transform: translate(0, -7px) rotate(6deg); }
    33.33% { transform: translate(-3.5px, -6.06px) rotate(6deg); }
    41.67% { transform: translate(-6.06px, -3.5px) rotate(6deg); }
    50%    { transform: translate(-7px, 0) rotate(6deg); }
    58.33% { transform: translate(-6.06px, 3.5px) rotate(6deg); }
    66.67% { transform: translate(-3.5px, 6.06px) rotate(6deg); }
    75%    { transform: translate(0, 7px) rotate(6deg); }
    83.33% { transform: translate(3.5px, 6.06px) rotate(6deg); }
    91.67% { transform: translate(6.06px, 3.5px) rotate(6deg); }
    100%   { transform: translate(7px, 0) rotate(6deg); }
}

@keyframes float-circle-c {
    0%     { transform: translate(0, 9px) rotate(-5deg); }
    8.33%  { transform: translate(-4.5px, 7.79px) rotate(-5deg); }
    16.67% { transform: translate(-7.79px, 4.5px) rotate(-5deg); }
    25%    { transform: translate(-9px, 0) rotate(-5deg); }
    33.33% { transform: translate(-7.79px, -4.5px) rotate(-5deg); }
    41.67% { transform: translate(-4.5px, -7.79px) rotate(-5deg); }
    50%    { transform: translate(0, -9px) rotate(-5deg); }
    58.33% { transform: translate(4.5px, -7.79px) rotate(-5deg); }
    66.67% { transform: translate(7.79px, -4.5px) rotate(-5deg); }
    75%    { transform: translate(9px, 0) rotate(-5deg); }
    83.33% { transform: translate(7.79px, 4.5px) rotate(-5deg); }
    91.67% { transform: translate(4.5px, 7.79px) rotate(-5deg); }
    100%   { transform: translate(0, 9px) rotate(-5deg); }
}

/* Lebegő ruhák - Clothing */
.floating-clothing {
    position: relative;
    width: 400px;
    height: 300px;
    display: flex;
    justify-content: flex-end;
}

.floating-clothing img {
    position: absolute;
    width: 200px;
}

.clothing-1 { right: 150px; top: 20px; z-index: 1; }
.clothing-2 { right: 80px; top: 60px; z-index: 2; }
.clothing-3 { right: 0; top: 100px; z-index: 3; }

/* Slider beállítások */
.slider-container {
    margin-top: 50px;
}

.slider-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.arrow-icon {
    width: 16px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
    filter: invert(var(--logo-invert));
}

.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.slider-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.25s ease;
}

.slider-btn img {
    width: 30px;
    filter: invert(var(--logo-invert));
}

.slider-btn:hover {
    transform: scale(1.12);
}

.slider-btn:active {
    transform: scale(0.85);
    transition-duration: 0.1s;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Visszafele nyíl trükk K ügynöktől */
.prev-btn img {
    transform: scaleX(-1);
}

.slider-viewport {
    flex: 1;
    overflow: hidden;
    padding: 20px 0;
    margin: -20px 0;
}

.slider-items {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.slider-item {
    flex: 0 0 calc((100% - 40px) / 3);
    aspect-ratio: 468 / 627;
    box-sizing: border-box;
}

.websites-section .slider-item {
    background: var(--bg-elevated);
    border-radius: 5px;
    padding: 10px;
}

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

.websites-section .slider-item img {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

/* Kép körüli fehér kártya - a paradise slider kivételével */
.slider-image {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: var(--bg-elevated);
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

/* A ruha képek ne legyenek levágva - a teljes kép látszódjon */
.slider-image img {
    object-fit: contain;
}

.slider-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, var(--stripe-a), var(--stripe-a) 10px, var(--stripe-b) 10px, var(--stripe-b) 20px);
    color: var(--text-faint);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1000px) {
    .slider-item {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .slider-item {
        flex-basis: 100%;
    }
}

@media (max-width: 900px) {
    .content-section {
        padding: 0 24px;
    }

    .manifesto-section {
        padding: 0 24px;
    }

    .hero-text {
        font-size: 190px;
        letter-spacing: -4px;
    }

    .hero-image {
        height: 296px;
    }

    .manifesto-text {
        font-size: 34px;
        max-width: 100%;
    }

    .manifesto-brand {
        font-size: 24px;
    }

    .text-and-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .text-content {
        max-width: 100%;
    }

    .text-content p {
        font-size: 24px;
    }

    .floating-logos {
        width: 260px;
        height: 260px;
        align-self: center;
        order: -1;
    }

    .logo-figma,
    .logo-vscode,
    .logo-js {
        width: 100px;
    }

    .logo-vscode {
        top: 33px;
    }

    .logo-js {
        left: 33px;
    }

    .floating-clothing {
        width: 260px;
        height: 195px;
        align-self: center;
    }

    .floating-clothing img {
        width: 130px;
    }

    .clothing-1 { right: 98px; top: 13px; }
    .clothing-2 { right: 52px; top: 39px; }
    .clothing-3 { right: 0; top: 65px; }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 130px;
        letter-spacing: -3px;
    }

    .hero-image {
        height: 202px;
    }

    .manifesto-text {
        font-size: 26px;
    }

    .manifesto-brand {
        font-size: 19px;
    }

    .text-content p {
        font-size: 19px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Gomb (Pill alakú) */
.center-button {
    text-align: center;
    margin-top: 20px;
}

.btn-pill {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--bg-muted);
    color: var(--text);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-strong);
    transition: all 0.3s ease;
}

.btn-pill:hover {
    background-color: var(--invert-bg);
    color: var(--invert-text);
}
