* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2c2c2c 100%);
    color: white;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

.wave-container {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    max-height: 150vh;
}

.wave-parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.wave-parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.wave-parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.wave-parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.wave-parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

.main-quote {
    font-size: 3.5vw;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem 3rem;
}

.main-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInBox 0.8s ease forwards,
               pulseBox 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 2.5s, 3.3s;
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-part {
    opacity: 0;
    display: inline-block;
    margin: 0 10px;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.quote-part:nth-child(1) { animation-delay: 0.5s; }
.quote-part:nth-child(2) { animation-delay: 1s; }
.quote-part:nth-child(3) { animation-delay: 1.5s; }
.quote-part:nth-child(4) { animation-delay: 2s; }

.letter {
    display: inline-block;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255,255,255,0.2),
                0 0 20px rgba(255,255,255,0.1);
    filter: blur(0.3px);
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: constantWave 3s infinite;
    animation-timing-function: ease-in-out;
}

.letter:nth-child(2n) { animation-delay: 0.1s; }
.letter:nth-child(3n) { animation-delay: 0.2s; }
.letter:nth-child(4n) { animation-delay: 0.3s; }
.letter:nth-child(5n) { animation-delay: 0.4s; }

.letter.wavy {
    animation: wavy 1s infinite;
    animation-timing-function: ease-in-out;
}

.letter:hover {
    animation: none !important;
    transform: translateY(-5px);
    filter: blur(0);
    text-shadow: 0 0 15px rgba(255,255,255,0.8),
                 0 0 30px rgba(255,255,255,0.6),
                 0 0 45px rgba(255,255,255,0.4);
    background: linear-gradient(to right, #ffffff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBox {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseBox {
    0% {
        opacity: 1;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    20% {
        opacity: 0.8;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    40% {
        opacity: 0.6;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    60% {
        opacity: 0.3;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    80% {
        opacity: 0;
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
    }
    90% {
        opacity: 0.5;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

@keyframes constantWave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-2px) translateX(0.5px);
    }
    75% {
        transform: translateY(2px) translateX(-0.5px);
    }
}

@keyframes wavy {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px) translateX(1px);
    }
    75% {
        transform: translateY(3px) translateX(-1px);
    }
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

@media (max-width: 768px) {
    .main-quote {
        font-size: 7vw;
    }
    .waves {
        height: 40px;
        min-height: 40px;
    }
    .rectangle-container {
        width: 90%;
        flex-direction: column;
        padding: 1rem;
    }
    .left-section, .right-section {
        width: 100%;
    }
    .left-section img {
        max-width: 100%;
        height: auto;
    }
    .right-section {
        padding: 1rem 0;
    }
    .right-section h2 {
        font-size: 6vw;
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    .right-section h3 {
        font-size: 4vw;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    .right-section p {
        font-size: 3.5vw;
        margin: 1rem auto;
        padding: 0 0.5rem;
        line-height: 1.4;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .rectangle-container {
        width: 85%;
        padding: 1.5rem;
    }
    .right-section h2 {
        font-size: 4vw;
    }
    .right-section h3 {
        font-size: 2.5vw;
    }
    .right-section p {
        font-size: 2vw;
    }
}

/* Sekcje */
section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.second-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #3c3c3c 100%);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: white;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
    z-index: 10;
}

.scroll-indicator span {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* Druga sekcja */
.second-section .content {
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.second-section .content.visible {
    opacity: 1;
    transform: translateY(0);
}

.second-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.second-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}


.first-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.third-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.third-section .content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rectangle-container {
    width: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    border-radius: 8px;
    box-sizing: border-box;
}

.left-section, .right-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cover-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.right-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
}

.right-section h2, 
.right-section h3, 
.right-section p {
    width: 100%;
    text-align: center;
    padding: 0 1rem;
}

.right-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.right-section h3 {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.6rem;
    font-weight: 400;
    line-height: 1.4;
}

.right-section p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 2.6rem auto;
}