/* HERO.CSS - Zaktualizowany z nową paletą kolorów */

/* Hero Container - pełna wysokość */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    z-index: 1;
}

/* WARSTWA 1: Jasne tło */
.layer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary); /* Jasne tło */
    z-index: 1;
}

/* WARSTWA 2: Przewijający się tekst */
.layer-scrolling-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.scrolling-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    font-size: 8rem;
    font-weight: 900;
    white-space: nowrap;
    color: var(--color-accent); /* Pomarańczowy */
    opacity: 0.1; /* 50% przezroczystości */
    animation: scrollText 20s linear infinite;
    transform: translateY(-50%);
}

@keyframes scrollText {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    100% {
        transform: translateY(-50%) translateX(-50%);
    }
}

/* WARSTWA 3: Zdjęcie */
.layer-photo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 10%;
}

.photo-container {
    width: 400px;
    height: 500px;
    opacity: 0;
    animation: photoAppear 1s ease-out 2.5s forwards;
}

.photo-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/denis.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: filter 0.3s ease;
    transform: scaleX(-1);
}

.photo-container:hover .photo-image {
    filter: contrast(1.0) brightness(1.0) sepia(0%) hue-rotate(0deg);
}

@keyframes photoAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* WARSTWA 4: Główny tekst */
.layer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 4;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.content-left {
    flex: 1;
    max-width: 50%;
}

.main-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 5rem;
    font-weight: 500;
    line-height: 0.9;
    margin-bottom: 40px;
    color: var(--text-primary); /* Ciemny granatowy */
    opacity: 0;
    animation: slideUp 1s ease-out 2.2s forwards;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 60px;
    color: var(--color-accent); /* Pomarańczowy akcent */
    opacity: 0;
    animation: slideUp 1s ease-out 2.5s forwards;
}

.description {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 500px;
    color: var(--text-muted); /* Szary tekst */
    opacity: 0;
    animation: slideUp 1s ease-out 2.8s forwards;
}

/* Efekt świetlny z nową paletą */
.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 99, 30, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 5;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Animacja slideUp */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .layer-content {
        padding: 40px;
        text-align: center;
    }

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

    .main-title {
        font-size: 3rem;
    }

    .layer-photo {
        justify-content: center;
        padding-right: 0;
    }

    .photo-container {
        width: 250px;
        height: 350px;
    }

    .scrolling-text {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .layer-content {
        padding: 20px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .photo-container {
        width: 200px;
        height: 280px;
    }

    .scrolling-text {
        font-size: 3rem;
    }
}