/* Animacje przy ładowaniu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animacje dla głównych kontenerów */
.article-container, .articles {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

.article-header, .hero {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

/* Animacje dla elementów content */
.article-content > *, .hero-content > *, .article-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.article-content > *.visible, 
.hero-content > *.visible, 
.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animowane komponenty */
.chart-container, .key-points, .scenario, .article-card, .trading-stats {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.chart-container.visible, 
.key-points.visible, 
.scenario.visible, 
.article-card.visible,
.trading-stats.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efekty hover */
.chart-container, .key-points, .scenario, .article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover, 
.key-points:hover, 
.scenario:hover, 
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Animacje dla nawigacji */
.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Animacje dla sekcji O mnie */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.content h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.content p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.content p.visible {
    opacity: 1;
    transform: translateY(0);
}

.content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0;
    list-style: none;
}

.content li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.content li.visible {
    opacity: 1;
    transform: translateY(0);
}

.content li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Kontenery korzyści */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}

.benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #4a9eff;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-card li {
    margin: 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    opacity: 1;
    transform: none;
    line-height: 1.4;
}

.benefit-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4a9eff;
    top: 50%;
    transform: translateY(-50%);
}

.benefit-card li:last-child {
    margin-bottom: 0;
}

/* Statystyki */
.experience-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-out;
    animation: fadeInUp 0.6s ease backwards;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a9eff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* Animacje dla elementów nawigacji */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Animacje dla statystyk */
.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

/* Animacje dla przycisków CTA */
.cta-buttons a {
    animation: fadeIn 0.8s ease backwards;
}

.open-app {
    animation-delay: 1s;
}

.discover-more {
    animation-delay: 1.2s;
}

/* Animacje dla dropdown menu */
.dropdown-content {
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    opacity: 0;
}

.dropdown:hover .dropdown-content {
    transform: scaleY(1);
    opacity: 1;
}

/* Animacje dla sekcji hero */
.hero h1 {
    animation: slideInDown 1s ease backwards;
}

.subtitle {
    animation: slideInUp 1s ease 0.3s backwards;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animacja dla logo */
.logo img {
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Animacja dla przycisków i linków */
.login-btn, .read-more {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-btn:hover, .read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Animacja dla kart artykułów */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Animacja dla social media linków */
.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Animacja dla elementów przy scrollowaniu */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Animacje dla ikon nawigacyjnych */
.nav-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links a:hover .nav-icon {
    transform: scale(1.2) rotate(10deg);
}

.dropdown-content a:hover .nav-icon {
    transform: translateX(5px) scale(1.1);
} 