.parallax-container {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.parallax-element {
    transition: transform 0.2s ease-out;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-republika-gradient {
    background: linear-gradient(135deg, var(--republika-navy), #001529);
    z-index: 2;
}

.republika-border {
    border: 2px solid var(--republika-gold);
}

.republika-text {
    color: var(--republika-cream);
}

.republika-accent {
    color: var(--republika-gold);
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--republika-gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.capitol-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.glass {
    background: rgba(17, 25, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

@keyframes stripe-slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.sliding-stripe {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: stripe-slide 3s infinite;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.section-transition {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.6s ease-out;
    margin-bottom: 0;
    padding: 4rem 0;
}


section {
    position: relative;
    overflow: hidden;
    min-height: auto;
    padding: 4rem 0;
}

.hero-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.logo-section {
    z-index: 3;
    transition: all 0.3s ease;
}

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

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: glow 3s infinite;
}

@keyframes logoRotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.logo {
    height: 100%;
    width: 100%;
    max-width: 250px;
    max-height: 200px;
}

.glass {
    /* Safari-specific */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    /* Lepsza wersja tła dla Safari */
    background: rgba(255, 255, 255, 0.1);
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.05)
    );

    /* Dodatkowe wsparcie dla Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);

    /* Reszta stylów */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 1rem;
    margin: 1rem 0;
}

@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .glass {
        background: rgba(17, 25, 40, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.glass-button {
    background: rgba(17, 25, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

@supports (-webkit-touch-callout: none) {
    .glass-button {
        background: rgba(17, 25, 40, 0.85);
        background: linear-gradient(
                135deg,
                rgba(17, 25, 40, 0.9) 0%,
                rgba(17, 25, 40, 0.85) 100%
        );
    }
}

@keyframes floatingCard {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(0px) translateX(0px);
    }
    75% {
        transform: translateY(10px) translateX(-5px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}

.floating-card {
    animation: floatingCard 6s ease-in-out infinite;
}

.floating-card:hover {
    animation-play-state: paused;
}

@keyframes numberGlow {
    0% {
        text-shadow: 0 0 10px rgba(191, 161, 129, 0);
    }
    50% {
        text-shadow: 0 0 20px rgba(191, 161, 129, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(191, 161, 129, 0);
    }
}

.glowing-number {
    animation: numberGlow 2s ease-in-out infinite;
}

@keyframes impactNumberGlow {
    0% {
        text-shadow: 0 0 10px rgba(204, 0, 0, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(204, 0, 0, 0.4);
    }
    100% {
        text-shadow: 0 0 10px rgba(204, 0, 0, 0.2);
    }
}

.impact-number {
    background: linear-gradient(135deg, var(--republika-red), #FF1A1A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    position: relative;
    animation: impactNumberGlow 2s ease-in-out infinite;
}

.impact-number::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--republika-red);
    border-radius: 2px;
}

.benefit-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.benefit-item:hover {
    border-color: rgba(204, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.1);
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.benefit-item:hover .w-12 {
    animation: iconPulse 1s ease-in-out infinite;
}

.hero-button {
    background: linear-gradient(135deg, var(--republika-gold), #D4AF37);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--republika-navy);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    margin-top: 2rem;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent
    );
    animation: shine 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(191, 161, 129, 0.3);
    background: linear-gradient(135deg, #D4AF37, var(--republika-gold));
}

.amount-button.active {
    background: linear-gradient(135deg, var(--republika-gold), #D4AF37);
    border: 2px solid var(--republika-cream);
}

.custom-amount-wrapper:focus-within {
    box-shadow: 0 0 0 2px var(--republika-gold);
}

/* Dodaj do sekcji ze stylami */
.amount-button {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.amount-button.active {
    background: linear-gradient(135deg, var(--republika-gold), #D4AF37);
    border: 1x solid var(--republika-cream);
    transform: scale(1.05);
}

.amount-button:hover {
    border-color: var(--republika-gold);
    box-shadow: 0 0 15px rgba(191, 161, 129, 0.3);
}

.amount-button:active {
    transform: scale(0.98);
    border-color: var(--republika-cream);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"]:focus {
    outline: none;
    border-color: #BFA181;
    box-shadow: 0 0 0 2px rgba(191, 161, 129, 0.5);
}

input[type="number"]:focus-visible {
    outline: none;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .glass {
        background: rgba(17, 25, 40, 0.5);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

@supports (-webkit-touch-callout: none) {
    .glass {
        background: rgba(17, 25, 40, 0.9);
        background: linear-gradient(
                180deg,
                rgba(17, 25, 40, 0.95) 0%,
                rgba(17, 25, 40, 0.9) 100%
        );
        border: 1px solid rgba(255, 255, 255, 0.18);
    }
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (min-width: 1600px) {
    footer {
        margin-top: 20vh;
    }
}

@media (max-width: 1600px) {
    .hero-content {
        margin-top: 4rem;
    }
}

@media (max-height: 700px) {
    .logo-section {
        transform: translate(-50%, 0) scale(0.8);
    }

    .hero-content {
        margin-top: 2rem;
    }

    #hero-title {
        font-size: 2.5rem;
    }

    #hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-content > div {
        margin-top: 0;
    }

    #hero-scroll {
        transform: scale(0.9);
    }

    .hero-button {
        padding: 0.75rem 2rem;
        font-size: 1.125rem;
    }
}

#languageToggle {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#languageToggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--republika-gold);
}

#currentLang-pl {
    margin: 0;
}

@media (max-width: 768px) {
    #languageToggle {
        bottom: -12px;
        right: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

#submit-payment {
    background: linear-gradient(135deg, var(--republika-gold), #D4AF37);
}

.zelle-wrapper {
    width: 350px;
    height: 350px;
}

.payment-methods {
    margin-top: -4px;
}

.president {
    background: #BFA181;
    color: #fff;
}

.vice-president {
    background: #CC0000;
}

.bank-wrapper {
    max-height: 350px;
    max-width: 350px;
    width: 350px;
    height: 350px;
    margin-top: 15px;
}

.bank-wrapper > div {
    height: 350px;
}

.payment-terms {
    font-size: 9px;
}

@media (max-width: 430px) {
    .payment-terms.first {
        margin-bottom: 15px;
    }

    .second-nav {
        display: block;
        padding: 0 30px;
        text-align: center;
    }

    .second-nav a {
        margin: 0 !important;
    }
}