/**
 * Avanza 2 Casilleros Custom Styles
 * Brand-specific styles for the home page
 */

/* Official Brand Colors */
:root {
    --avanza-pink: #ec2c66;
    --avanza-yellow: #fdbd23;
    --avanza-teal: #09b5be;
    --avanza-blue: #1685b2;
    --avanza-green: #47ba95;
    --avanza-white: #FFFFFF;
    --avanza-black: #000000;
    --avanza-gray: #666666;
}

/* Boogaloo font for all titles */
h1, h2, h3, h4, h5, h6,
.site-title,
.hero-title,
.section-title,
.card-title,
.member-name,
.widget-title,
.footer-widget-title,
.wp-block-heading,
.entry-title,
.page-title {
    font-family: "Boogaloo", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Styles */
.avanza-header {
    background-color: var(--avanza-white);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.avanza-logo {
    margin: 0;
}

.avanza-logo a {
    text-decoration: none;
    display: block;
    margin: auto;
}

.avanza-logo-img {
    height: 100px;
    width: auto;
    max-width: 462px;
    margin: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Pinned header styles */
.avanza-header.pinned {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: var(--avanza-white);
    z-index: 99999;
}

/* Logo shrinking when pinned */
.avanza-header.pinned .avanza-logo-img {
    height: 50px;
    width: auto;
}

/* Add top padding to body when header is pinned */
body.header-pinned {
    padding-top: 80px; /* Adjust based on your pinned header height */
}

.nav-bar {
    display: flex;
    height: 50px;
    width: 100%;
}

.nav-segment {
    flex: 1;
}

.avanza-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.avanza-nav a {
    color: var(--avanza-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.avanza-nav a:hover {
    color: var(--avanza-pink);
}

/* Desktop Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: var(--avanza-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    transition: color 0.3s ease;
    line-height: 50px;
}

.main-navigation a:hover {
    color: var(--avanza-pink);
}

/* Menu item color customization support */
.main-navigation .nav-menu li a {
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.main-navigation .nav-menu li a:hover::after {
    width: 100%;
}

/* Footer Styles */
.avanza-footer {
    background-color: var(--avanza-yellow);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    max-width: 100%;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--avanza-white);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link img {
    width: 20px;
    height: 20px;
}

/* Typography */
.pink-text { color: var(--avanza-pink); }
.yellow-text { color: var(--avanza-yellow); }
.teal-text { color: var(--avanza-teal); }
.blue-text { color: var(--avanza-blue); }
.green-text { color: var(--avanza-green); }
.white-text { color: var(--avanza-white); }
.black-text { color: var(--avanza-black); }

/* Background Colors */
.pink-bg { background-color: var(--avanza-pink); }
.yellow-bg { background-color: var(--avanza-yellow); }
.teal-bg { background-color: var(--avanza-teal); }
.blue-bg { background-color: var(--avanza-blue); }
.green-bg { background-color: var(--avanza-green); }
.white-bg { background-color: var(--avanza-white); }

/* Front Page Styles */
.front-page {
    margin: 0;
    padding: 0;
}

.front-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.2;
    width: 100%;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--avanza-black);
}

/* Hero Section */
.hero-section {
    background-color: var(--avanza-white);
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--avanza-black);
    margin-bottom: 40px;
    line-height: 1.3;
}

.hero-icons {
    display: flex;
    gap: 20px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--avanza-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.icon-circle img {
    width: 100%;
    height: auto;
}

.hero-illustration {
    justify-self: end;
}

.hero-illustration img {
    height: 600px;
    max-width: 100%;
}

/* Purpose Section */
.purpose-section {
    padding: 150px 0;
}

.purpose-content {
    align-items: center;
    display: flex;
    /* gap: 60px; */
    justify-content: space-between;
    margin: 0 auto;
}

.purpose-content .section-title {
    margin-bottom: 0;
    width: 50%;
}

.purpose-content .section-text {
    width: 50%;
}

/* Collective Games Section */
.collective-games-section {
    background-color: var(--avanza-white);
    padding: 100px 0 150px 0;
}

.collective-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.collective-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.collective-text .section-text {
    max-width: 50em;
}

.title-icon {
    width: 24px;
    height: 24px;
}

.collective-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Carousel Section */
.carousel-section {
    background-color: var(--avanza-white);
    padding: 0;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.image-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-carousel .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.image-carousel .carousel-image.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.image-carousel .carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 20;
}

.image-carousel-arrow-left {
    left: 20px;
}

.image-carousel-arrow-right {
    right: 20px;
}

.image-carousel-arrow:hover {
    transform: translateY(-50%) scale(1.15);
}

.image-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.image-carousel-arrow img {
    width: 60px;
    height: 60px;
    transition: filter 0.3s ease;
}

.image-carousel-arrow:hover img {
    opacity: 0.8;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    justify-content: center;
    align-items: center;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--avanza-gray);
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.carousel-dot:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.8);
    border-color: var(--avanza-pink);
}

.carousel-dot.active {
    background-color: var(--avanza-pink);
    border-color: var(--avanza-pink);
    width: 14px;
    height: 14px;
}

/* Proposal Section */
.proposal-section {
    background-color: var(--avanza-white);
    max-width: 1200px;
    margin: auto;
    padding: 100px 0 150px 0;
}

.proposal-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.proposal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 120px;
}

.proposal-card {
    background-color: var(--avanza-white);
    border-radius: 30px;
    border: 2px solid var(--avanza-blue);
    position: relative;
}

.proposal-carousel {
    min-height: 500px; /* Fixed height to prevent fluctuation */
}

.card-header {
    border-radius: 30px 30px 0 0;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 40px 20px;
}

.card-header .white-dot {
    width: 15px;
    height: 15px;
    background-color: var(--avanza-white);
    border-radius: 50%;
}

.proposal-dot {
    width: 15px;
    height: 15px;
    background-color: var(--avanza-white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.proposal-dot:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

.proposal-dot.active {
    opacity: 1;
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 120px;
}

.proposal-carousel-content {
    position: relative;
    width: 100%;
    min-height: 150px; /* Fixed height for content area */
}

.card-icon {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translate(-50%, 50%);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--avanza-black);
}

.proposal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    will-change: opacity;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.proposal-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    will-change: opacity;
    transition: opacity 0.8s ease, visibility 0s linear 0s;
}

/* When losing active class, ensure smooth fade out */
.proposal-slide:not(.active) {
    transition: opacity 0.8s ease 0s, visibility 0s linear 0.8s;
}

/* Why Games Section */
.why-games-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--avanza-pink);
    transition: background-color 0.8s ease;
    height: 20em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.why-games-section.pink-bg {
    background-color: var(--avanza-pink);
}

.why-games-section.yellow-bg {
    background-color: var(--avanza-yellow);
}

.why-games-section.teal-bg {
    background-color: var(--avanza-teal);
}

.why-games-section.blue-bg {
    background-color: var(--avanza-blue);
}

.why-games-section.green-bg {
    background-color: var(--avanza-green);
}

.why-games-carousel {
    position: relative;
    width: 100%;
    min-height: 100px;
    overflow: hidden;
}

.why-games-track {
    position: relative;
    width: 100%;
}

.why-games-section .section-title {
    color: var(--avanza-white);
    margin-bottom: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    will-change: opacity;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.why-games-section .section-title.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    will-change: opacity;
    transition: opacity 0.8s ease 0.9s, visibility 0s linear 0s;
}

/* When losing active class, ensure smooth fade out */
.why-games-section .section-title:not(.active) {
    transition: opacity 0.8s ease 0s, visibility 0s linear 0.8s;
}

/* Partners Section */
.partners-section {
    background-color: var(--avanza-white);
    padding: 80px 0;
}

.partners-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.partners-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
}

.partner-logo img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.games-gallery {
    /* display: grid; */
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.game-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team Section */
.team-section {
    padding: 80px 0;
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-text .section-title {
    color: var(--avanza-white);
    margin-bottom: 30px;
}

.team-text .section-text {
    color: var(--avanza-white);
}

.team-member {
    text-align: center;
}

.member-image {
    position: relative;
    margin-bottom: 20px;
}

.member-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.game-icons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.game-icons img {
    width: 30px;
    height: 30px;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Team Carousel */
.team-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 260px;
    margin: auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 280px;
}

.team-carousel .team-member {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.team-carousel .team-member.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.carousel-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
    position: absolute;
    top: 100px; /* Center of 200px image (half of image height) */
    transform: translateY(-50%); /* Center the arrow itself */
}

.carousel-arrow-left {
    left: -50px;
}

.carousel-arrow-right {
    right: -50px;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow img {
    width: 40px;
    height: 40px;
    transition: filter 0.3s ease;
}

.carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
    transform: scale(1);
}

/* Contact Section */
.contact-section {
    background-color: var(--avanza-white);
    padding: 80px 0;
    text-align: center;
}

.contact-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.contact-title img {
    width: 100px;
    height: auto;
}

.contact-section .section-title {
    margin-bottom: 0;
    width: auto;
}

.contact-illustration img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* Menu Toggle - Hidden on desktop, visible on mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    margin-left: auto;
}

.menu-toggle-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 10px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    width: 20px;
    height: 15px;
    justify-content: space-between;
    position: relative;
}

.menu-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    top: 50%;
    transform-origin: center;
}

.menu-toggle-icon span:nth-child(1) {
    transform: translateY(-6px);
}

.menu-toggle-icon span:nth-child(2) {
    transform: translateY(0);
}

.menu-toggle-icon span:nth-child(3) {
    transform: translateY(6px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .avanza-header {
        position: relative;
    }
    
    .header-content {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0 20px;
        gap: 15px;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        order: 1;
        flex-shrink: 0;
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(0, 50%);
        z-index: 9999;
    }

    .avanza-header.pinned .menu-toggle {
        transform: translate(0, 30%);
    }
    
    .site-branding {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .main-navigation {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 0;
        display: block;
    }
    
    .main-navigation ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        margin: 0;
        list-style: none;
    }
    
    .main-navigation.active ul {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation li {
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        line-height: normal;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content,
    .collective-content,
    .team-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .proposal-cards {
        grid-template-columns: 1fr;
    }
    
    .partners-logos {
        gap: 20px;
    }
    
    .games-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .hero-icons {
        justify-content: center;
    }
    
    .collective-text .section-title {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .avanza-logo-img {
        height: 50px;
    }
    
    /* Logo smaller when pinned on mobile */
    .avanza-header.pinned .avanza-logo-img {
        height: 40px;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Team Carousel Mobile */
    .team-carousel {
        gap: 10px;
    }
    
    .carousel-container {
        max-width: 250px;
    }
    
    .carousel-arrow img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .site-header .container {
        padding: 10px 0;
    }

    .nav-bar {
        height: 20px;
    }

    h1.hero-title {
        font-size: 3.5rem !important;
        text-align: center;
    }

    p.hero-subtitle {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    h2.section-title {
        font-size: 2.5rem !important;
    }

    p.section-text {
        font-size: 1.25rem !important;
    }
    
    .hero-icons {
        flex-wrap: wrap;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
    }

    .purpose-section {
        padding: 50px 0;
    }

    .purpose-content {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        text-align: center;
    }

    .purpose-content .section-title {
        width: 100%;
    }

    .purpose-content .section-text {
        width: 100%;
    }

    .proposal-card .card-title {
        font-size: 2rem !important;
        font-weight: 500 !important;
    }

    .proposal-card .card-text {
        font-size: 1.25rem !important;
    }

    .team-text {
        text-align: center;
    }

    .member-name {
        font-size: 1.5rem !important;
        font-weight: 500 !important;
    }

    .partners-logos {
        gap: 40px;
    }

    .contact-title img {
        width: 50px;
    }

    /* Back to Top Button Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Entry animations for titles and texts */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--avanza-pink);
    color: var(--avanza-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #d41e5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 44, 102, 0.3);
}

.cta-button.teal {
    background-color: var(--avanza-teal);
}

.cta-button.teal:hover {
    background-color: #078a92;
    box-shadow: 0 4px 15px rgba(9, 181, 190, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--avanza-pink);
    color: var(--avanza-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 44, 102, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #d41e5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(236, 44, 102, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top span {
    display: block;
    line-height: 1;
}
