/* Home Hero Section Styles */
.hero.image-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-color: #ffe8cc;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video, .hero-image.fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image.fallback {
    display: none;
}

.hero-body {
    position: relative;
    z-index: 3;
    padding: 0;
    display: flex;
    align-items: center;
    background-color: #ffe8cc;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.hero-body .columns {
    margin: 0;
    width: 100%;
    height: 100%;
}

.hero-body .column {
    padding: 0;
    height: 100%;
}

.text-column {
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.image-column {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: visible; /* Allow cards to overflow */
}

.content-wave-separator {
    position: absolute;
    top: 0;
    right: -2px;
    width: 50px;
    height: 100%;
    z-index: 5;
}

.content-wave-separator svg {
    height: 100%;
    width: 100%;
    transform: scaleX(-1);
}

.hero-content {
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: #ff8c00;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Card Layout */
.cards-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Card-like image styles */
.card-image-container {
    width: 75%;
    max-width: 380px;
    height: auto;
    margin: 0.8rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: white;
    position: relative;
    transform-origin: center;
    z-index: 1;
}

.card-image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card-image-container:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 140, 0, 0.85);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.card-image-container:hover .card-overlay {
    background: rgba(255, 140, 0, 0.95);
    padding: 1.1rem 1rem;
}

/* Card Positioning */
.card-top {
    animation: floatUp 8s ease-in-out infinite;
    align-self: flex-end;
    margin-right: 2rem;
    z-index: 3;
}

.card-middle {
    animation: floatMiddle 7s ease-in-out infinite;
    margin-top: -3rem;
    margin-bottom: -3rem;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    width: 85%;
    max-width: 420px;
}

.card-bottom {
    animation: floatDown 9s ease-in-out infinite;
    animation-delay: 0.5s;
    align-self: flex-start;
    margin-left: 2rem;
    z-index: 1;
}

.animate-title, .animate-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.animate-subtitle {
    animation-delay: 0.5s;
}

.highlight-stats {
    margin: 2rem 0;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button.is-primary-cj {
    background-color: #ff8c00;
    color: white;
    box-shadow: none;
    transition: all 0.3s ease;
    border: 2px solid #ff8c00;
}

.button.is-primary-cj:hover {
    background-color: #e67e00;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #e67e00;
}

.button.is-light.hover-effect {
    transition: all 0.3s ease;
    color: #ff8c00;
    border: 2px solid #ff8c00;
}

.button.is-light.hover-effect:hover {
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: #ff8c00;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 4;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 120px;
}

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

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

/* Card animations */
@keyframes floatUp {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes floatMiddle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(15px) rotate(2deg); }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .hero.image-hero {
        min-height: 100vh;
        box-sizing: border-box;
        max-height: none; /* Remove the max-height restriction */
    }
    
    .text-column {
        order: 1;
        padding: 2rem 1rem;
    }
    
    .image-column {
        order: 2;
        height: auto;
        padding: 2rem 1rem;
    }
    
    .card-image-container {
        width: 85%;
        margin: 0.5rem 0;
    }
    
    .card-top, .card-middle, .card-bottom {
        align-self: center;
        margin: 0.5rem 0;
    }
    
    .card-middle {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .title.is-1 {
        font-size: 2rem !important;
    }
    
    .subtitle.is-3 {
        font-size: 1.25rem !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .button.is-large {
        font-size: 1rem;
        height: auto;
        padding: 0.75rem 1.5rem;
        margin: 0.5rem 0;
    }
} 