/* Animation utility classes */
.fade-in {
    opacity: 0;
}

.fade-in.active {
    opacity: 1;
}

.fade-from-left {
    transform: translateX(-60px);
}

.fade-from-right {
    transform: translateX(60px);
}

.fade-from-top {
    transform: translateY(-60px);
}

.fade-from-bottom {
    transform: translateY(60px);
}

/* Parallax wrapper - kan bruges overalt */
.parallax-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    color: white;
    margin: 0 var(--debtia-section-margin, 3rem);
    border-radius: var(--debtia-radius-section, 32px);
    width: auto;
}

.hero-section .parallax-bg,
#pagetitle .parallax-bg {
    background-image: url(../../../../uploads/winghouse.jpg);
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    text-transform: uppercase;

    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
}

.hero-badge svg {
    fill: var(--primary-200);
    width: 20px;
    height: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none !important;
    /*box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);*/
}
.btn:hover {
    transform: translateY(-3px);
    /*box-shadow: 0 12px 32px rgba(0, 102, 204, 0.45);*/
}
.btn-lg {
    padding: 16px 36px !important;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition:
        width 0.6s ease,
        height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary-cta {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute !important;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3 !important;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    position: relative;
}

.scroll-indicator span::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

.debtia-newsletter-card .parallax-bg {
    background-image: url("../../../../themes/debtia/assets/img/documents.jpg");
    opacity: 0.2;
    filter: grayscale(1);
}

/* Demo content section */
/*.parallax-card {
    height: 400px;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.parallax-card .parallax-bg {
    border-radius: 32px;
    background-image: url("https://images.unsplash.com/photo-1560179707-f14e90ef3623?w=1200&q=80");
    opacity: 0.1;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px;
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}*/

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
    }

    .cta-group {
        flex-direction: column;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}
