/* Hero Styles for PCA Poland */

.hero-parallax {
    position: absolute;
    top: -15%;  /* Increased for more movement space */
    left: 0;
    width: 100%;
    height: 130%;  /* Increased height to allow more movement */
    background: url('/img/hero.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out;
    filter: brightness(0.8) contrast(1.1); /* Enhanced image contrast */
    backdrop-filter: blur(2px); /* Subtle blur for depth */
    background-attachment: fixed; /* Improved parallax effect */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(5, 10, 20, 0.97) 0%,
                rgba(139, 0, 0, 0.8) 50%,
                rgba(5, 10, 20, 0.97) 100%);
    z-index: 1;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.7);  /* Inner shadow for depth */
}

.hero-section {
    position: relative;
    min-height: 95vh; /* Increase hero section height for better visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, 
                var(--dark-color) 0%, 
                #350000 50%, 
                var(--dark-color) 100%);
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-gradient {
    background: linear-gradient(90deg, #fff 0%, #ff8f8f 50%, #8b0000 100%);
    background-size: 200% auto;
    animation: gradient-shine 4s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@keyframes gradient-shine {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.text-primary {
    color: var(--primary-color) !important;
}

.hero-badge {
    background-color: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(139, 0, 0, 0.5);
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    animation: badge-pulse 3s ease-in-out infinite;
}

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

.z-index-2 {
    position: relative;
    z-index: 2;
}

.min-vh-80 {
    min-height: 80vh;
}

/* Animation for parallax effect - Enhanced for smoother motion */
@keyframes parallax {
    0% {
        transform: translateY(0) scale(1.02);
    }
    50% {
        transform: translateY(-25px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1.02);
    }
}

/* Light pulse animation for accent elements */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(139, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 0, 0, 0);
    }
}

.hero-parallax {
    animation: parallax 20s ease-in-out infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
}

/* Enhanced shape animations for more depth */
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.2);
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 15%;
    opacity: 0.2;
    animation: float 12s ease-in-out infinite;
    animation-delay: 1s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
    animation-delay: 0.5s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 15%;
    opacity: 0.15;
    animation: float 14s ease-in-out infinite;
    animation-delay: 2s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 30%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
    animation-delay: 1.5s;
}

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

/* Hero responsive adjustments */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.1rem;
    max-width: 90%;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(139, 0, 0, 0.3);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-btns {
    margin-bottom: 2rem;
}

/* Responsive styles for hero section */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-text {
        font-size: 1rem;
        margin: 0 auto 2rem;
        max-width: 100%;
    }
    
    .hero-btns {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .hero-btns .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-badge {
        margin-bottom: 0.5rem;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Scroll Down Indicator Styling */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    margin: 0 auto 5px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    animation: scroll-arrow 2s infinite;
}

@keyframes scroll-arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

.scroll-text {
    animation: pulse-text 2s infinite;
}

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

/* Enhanced Button Styles */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
    animation: pulse-glow 2s infinite;
}

.btn-glow:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: btn-shine 3s infinite;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
}

@keyframes btn-shine {
    0% {
        left: -100%;
        transition-property: left;
    }
    100% {
        left: 100%;
        transition-property: left;
    }
}

.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-hover-effect:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-hover-effect:hover:after {
    height: 100%;
}

.btn-hover-effect:hover {
    transform: translateY(-3px);
}

/* Enhanced Hero Content Styling for better symmetry */
.hero-image-container {
    position: relative;
    transform: perspective(1000px);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 25px rgba(139, 0, 0, 0.5)); /* Enhanced glow around logo */
}

.hero-image-wrapper {
    position: relative;
    padding: 15px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateZ(0);
}

.hero-image {
    border-radius: 10px;
    transform: translateZ(30px);
    transition: transform 0.5s ease;
}

.hero-floating-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
    transform: translateZ(50px);
}

.badge-content {
    text-align: center;
    color: white;
    transform: translateZ(0);
}

.badge-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
}

.badge-text {
    display: block;
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-image-container:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(5deg);
}

.hero-image-container:hover .hero-image {
    transform: translateZ(40px);
}
