.hero {
    margin: 12%;
    text-align: center;
    }
    
    .hero h1 {
    font-size: 3rem;
    font-weight: 600;
    }
    
    .hero p {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #555;
    }
    
    main {
    padding: 2rem;
    }
    
    .step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 4rem 0;
    flex-wrap: wrap;
    }
    
    .step.reverse {
    flex-direction: row-reverse;
    }
    
    .step img {
    max-height: 35vh;
    width: 40vw;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .step video {
      max-height: 45vh;
      width: 40vw;
      border-radius: 12px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      margin-left: 7vw;
    }
    .step img:hover {
      transform: scale(1.3);
    }
    
    .step video:hover {
      transform: scale(1.3);
    }

    .step .text {
    max-width: 600px;
    margin-right: 5vw;
    }
    
    .step.reverse .text {
    max-width: 600px;
    margin-left: 9vw;
    }
    
    .step h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    }
    
    footer {
    padding: 2rem;
    text-align: center;
    background-color: #f4f4f4;
    color: #777;
    font-size: 0.9rem;
    }

.carousel {
  width: 40vw;
  max-height: 35vh;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: 40vw;
  animation: slide 20s infinite;
}

.slides img {
  width: 40vw;
  max-height: 35vh;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes slide {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-400px); }
  50%  { transform: translateX(-800px); }
  75%  { transform: translateX(-1200px); }
  100% { transform: translateX(0); }
}

    .source-code-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        padding: 4rem 0;
        flex-wrap: wrap;
        width: 100%;
    }

    .source-code-link .text {
        max-width: 600px;
        margin-right: 5vw;
        text-align: left;
    }

    .source-code-link h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .source-code-link p {
        color: #333;
        margin: 0;
    }

    .source-code-link a {
        display: inline-block;
        margin: 6px 8px 0 8px;
        padding: 10px 16px;
        background: #007acc;
        color: #fff;
        text-decoration: none;
        border-radius: 6px;
    }

    .source-code-link a.secondary { background: #6c757d; }
    .source-code-link a:hover { opacity: 0.95; }

    /* ===== ROTATOR SECTION - Elkülönített stílusok ===== */
    .rotator-section {
        display: flex;
        flex-direction: row-reverse; /* rotator balra, szöveg jobbra */
        align-items: center;
        justify-content: center;
        gap: 3rem;
        padding: 4rem 0;
        flex-wrap: wrap;
    }

    .rotator-section .text {
        max-width: 600px;
        margin-left: 5vw; /* korábbi margin-right helyett */
    }

    .rotator-section .text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .rotator-section .rotator {
        width: 40vw;
        max-height: 46vh;
        overflow-y: hidden;
        position: relative;
        margin: 0 auto;
    }

    .rotator-section .rotator-slides {
        display: flex;
        transition: transform 0.5s ease;
        will-change: transform;
    }

    .rotator-section .rotator-slides img {
        width: 40vw;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    }

    rotator-section .rotator-slides img:hover {
        transform: scale(1.3);
    }

    .rotator-section .rotator-texts {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }

    .rotator-section .rotator-text {
        width: 100px;
        height: 50px;
        cursor: pointer;
        border-radius: 28px;
        background: #ffffff;
        border: 1px solid #ddd;
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        text-align: center;
        user-select: none;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        color: #000;
    }

    .rotator-section .rotator-text.active {
        background: linear-gradient(90deg, #ffffff 0%, #ffffff 49%, #838383 51%, #838383 100%);
        background-size: 200% 100%;
        background-position: -100% 0;
        animation: fillLeftToRight 5s linear forwards;
    }

    @keyframes fillLeftToRight {
        0% {
            background-position: 0% 0;
        }
        100% {
            background-position: -100% 0;
        }
    }

    .rotator-section .rotator-text .label {
        font-weight: 700;
        margin: 0 0 6px 0;
        padding: 0;
        display: block;
        color: #000000;
        line-height: 1.4;
        word-break: break-word;
        font-size: 13px;
    }

    .rotator-section .rotator-text .progress {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        border-radius: 8px;
        overflow: hidden;
        z-index: 0;
    }

    .rotator-section .rotator-text .bar {
        height: 100%;
        width: 0%;
        background: rgba(142, 149, 153, 0.4);
    }

    .rotator-section .rotator-text {
        position: relative;
    }

    .rotator-section .rotator-text .label,
    .rotator-section .rotator-text .progress {
        position: relative;
        z-index: 1;
    }
    .rotator {
        width: 40vw;
        max-height: 35vh;
        overflow: hidden;
        position: relative;
        margin: 0 auto;
    }

    .rotator-slides {
        display: flex;
        transition: transform 0.5s ease;
        will-change: transform;
    }

    .rotator-slides img {
        width: 40vw;
        max-height: 40vh;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    }

    .rotator-texts {
        height: 7vh;
        display: flex;
        justify-content: center;
        margin-top: 16px;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        color: black;
    }

    .rotator-text {
        cursor: pointer;
        padding: 12px 10px;
        border-radius: 8px;
        background: #ffffff;
        border: 1px solid #ddd;
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        text-align: center;
        user-select: none;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        color: black;
    }

    .rotator-text.active {
        background: #f0f8ff;
    }

    .rotator-text .label {
        font-weight: 700;
        margin: 0 0 6px 0;
        padding: 0;
        display: block;
        color: #000000;
        line-height: 1.4;
        word-break: break-word;
        font-size: 13px;
    }

    .rotator-text .progress {
        height: 6px;
        background: black;
        border-radius: 4px;
        overflow: hidden;
        margin-top: 6px;
    }

    .rotator-text .bar {
        height: 100%;
        width: 0%;
        background: #007acc;
    }

    