﻿/* Reset i Baza */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #0c081d; /* Głęboki granat/czerń z Twojego przykładu */
    font-family: 'Inter', sans-serif;
}

/* --- WIELKIE ODDYCHAJĄCE SERCE --- */
.heart-background {
    position: absolute;
    width: 500px;
    height: 500px;
    background-color: #ff007f; /* Kolor bazowy róż/fiolet */
    
    /* Tworzymy kształt serca klasyczną metodą CSS dla pełnej kontroli */
    transform: translate(-50%, -40%) rotate(-45deg);
    top: 50%;
    left: 50%;
    
    /* Gradient fioletowo-różowy wewnątrz serca */
    background: linear-gradient(135deg, #ff007f 0%, #4a0e6e 100%);
    
    /* Efekt blasku i miękkości */
    filter: blur(20px);
    box-shadow: 0 0 100px rgba(255, 0, 127, 0.4);
    
    /* Animacja oddychania serca */
    animation: heartBreath 5s ease-in-out infinite alternate;
    z-index: 1;
    opacity: 0.6;
}

/* Skrzydła serca (lewa i prawa góra) */
.heart-background::before,
.heart-background::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: inherit;
    border-radius: 50%;
}

.heart-background::before {
    top: -250px;
    left: 0;
}

.heart-background::after {
    top: 0;
    left: 250px;
}

/* --- NAPIS NAD SERCEM --- */
.container {
    position: relative;
    z-index: 10; /* Wyraźnie nad sercem */
}

.main-title {
    font-size: 8rem;
    display: flex;
    gap: 15px;
    text-transform: uppercase;
}

.main-title span {
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
    
    /* Synchronizacja: obie animacje trwają 5s w trybie alternate */
    animation: 
        glowEffect 10s ease-in-out infinite,
        textBreathing 5s ease-in-out infinite alternate;
}

/* --- ANIMACJE --- */

/* 1. Oddychanie Serca (Skalowanie i moc blasku) */
@keyframes heartBreath {
    from {
        transform: translate(-50%, -40%) rotate(-45deg) scale(0.9);
        opacity: 0.4;
        filter: blur(30px);
    }
    to {
        transform: translate(-50%, -40%) rotate(-45deg) scale(1.15);
        opacity: 0.7;
        filter: blur(15px);
        box-shadow: 0 0 150px rgba(255, 0, 127, 0.6);
    }
}

/* 2. Oddychanie Napisu (Zsynchronizowane skalowanie) */
@keyframes textBreathing {
    from {
        scale: 0.95;
    }
    to {
        scale: 1.1;
    }
}

/* 3. Błysk fali co 10 sekund */
@keyframes glowEffect {
    0%, 15%, 100% {
        color: rgba(255, 255, 255, 0.5);
        text-shadow: none;
    }
    5% {
        color: #ffffff;
        text-shadow: 0 0 40px #ffffff, 0 0 80px #ff007f;
    }
}

/* Opóźnienia fali */
.main-title span:nth-child(1) { animation-delay: 0.1s; }
.main-title span:nth-child(2) { animation-delay: 0.2s; }
.main-title span:nth-child(3) { animation-delay: 0.3s; }
.main-title span:nth-child(4) { animation-delay: 0.4s; }
.main-title span:nth-child(5) { animation-delay: 0.5s; }
.main-title span:nth-child(6) { animation-delay: 0.6s; }

/* Responsywność dla małych ekranów */
@media (max-width: 768px) {
    .main-title { font-size: 3rem; gap: 5px; }
    .heart-background, .heart-background::before, .heart-background::after {
        width: 250px;
        height: 250px;
    }
    .heart-background::before { top: -125px; }
    .heart-background::after { left: 125px; }
}