/* CSS Variables for Hero Layout */
:root {
    --header-height: 80px;
    --hero-bottom-strip-height: 80px;
}

/* Homepage Hero Section Styles */
.homepage-hero-section {
    height: calc(98vh - var(--header-height) - var(--hero-bottom-strip-height));
    min-height: 500px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

/* Red gradient line at top to separate from header */
.homepage-hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(180deg, rgba(237, 27, 46, 0) 0%, rgba(237, 27, 46, 0.8) 40%, #ed1b2e 80%);
    z-index: 10;
}

/* Hero Content Container - fills available space, centered and contained */
.homepage-hero-section > .container {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px 15px;
    position: relative;
    z-index: 2;
    min-height: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.homepage-hero-section > .container > .row {
    width: 100%;
    height: 100%;
    align-items: flex-end;
    margin: 0;
}

.homepage-hero-section > .container > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.homepage-hero-section > .container > .row > .col-lg-6:first-child {
    justify-content: center;
    padding-right: 30px;
}

.homepage-hero-section > .container > .row > .col-lg-6:last-child {
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    padding-left: 30px;
}

@media (max-width: 991.98px) {
    .homepage-hero-section {
        min-height: auto;
        height: auto;
        min-height: 500px;
    }
    
    .homepage-hero-section > .container {
        padding: 40px 15px;
    }
    
    .homepage-hero-section > .container > .row > .col-lg-6:first-child {
        padding-right: 15px;
        margin-bottom: 30px;
    }
    
    .homepage-hero-section > .container > .row > .col-lg-6:last-child {
        padding-left: 15px;
    }
}

/* Hero Content */
.hero-content {
    padding: 0;
    max-width: 100%;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000000;
}

.hero-cycle-time {
    display: block;
    margin-bottom: 10px;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: #666666;
    margin-top: 10px;
}

.hero-product-title {
    font-size: 4rem;
    font-weight: 700;
    color: #000000;
    margin: 30px 0 10px;
    line-height: 1;
}

.hero-product-subtitle {
    font-size: 1.25rem;
    color: #666666;
    margin-bottom: 40px;
}

@media (max-width: 991.98px) {
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-product-title {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-product-title {
        font-size: 2.5rem;
    }
    
    .hero-product-subtitle {
        font-size: 1rem;
    }
}

/* CTA Button */
.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: rgb(237, 27, 46);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-hero-cta:hover {
    background-color: rgb(200, 20, 35);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero-cta i {
    transition: transform 0.3s ease;
}

.btn-hero-cta:hover i {
    transform: translateX(5px);
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: absolute;
    bottom: 0px;
    z-index: 10;
    margin: 0px -50px 0px -50px;
}

.hero-robot-image {
    width: auto;
    height: 100%;
    max-height: calc(100vh - var(--header-height) - var(--hero-bottom-strip-height));
    z-index: 3;
    position: relative;
    object-fit: contain;
    object-position: bottom center;
    margin-bottom: 0;
    opacity: 0;
    animation: robotFadeIn 1s ease-out 2s forwards;
    /* Image aligned from start to end of hero section */
}

@keyframes robotFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .hero-image-wrapper {
        min-height: 300px;
        max-height: 400px;
        align-items: center;
        overflow: hidden;
    }
    
    .hero-robot-image {
        max-height: 100%;
    }
}

/* Animated Keywords - Outside container, spanning full section width */
.hero-keywords {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    pointer-events: none;
    width: auto;
    text-align: right;
    
    /* Positioned relative to section, not container */
    /* On smaller screens, use minimum 15px padding */
}

@media (max-width: 1200px) {
    .hero-keywords {
        padding-right: 15px;
    }
}

.keyword-item {
    font-size: 6rem;
    font-weight: 900;
    color: #cccccc;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(20px);
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: right;
}

@media (min-width: 1200px) {
    .keyword-item {
        font-size: 7rem;
    }
}

@media (max-width: 991.98px) {
    .hero-keywords {
        display: none;
    }
}

/* Keyword Animation */
@keyframes keywordFadeIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 0.15;
        transform: translateX(0);
    }
}

.keyword-fade-in {
    animation: keywordFadeIn 0.8s ease-out forwards;
    animation-fill-mode: forwards;
}

/* Supporting Banner Section - Red Strip at Bottom */
.homepage-support-banner {
    background-color: rgb(237, 27, 46);
    padding: 0;
    color: #ffffff;
    height: var(--hero-bottom-strip-height);
    min-height: var(--hero-bottom-strip-height);  
    position: relative;
    z-index: 10;
   
    /* Positioned right after hero section, together they fill viewport */
}

.homepage-support-banner > .container {
   
    max-width: 1200px;
    
}

.support-banner-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.support-banner-image {
    max-width: 100%;
    height: auto;
    max-height: 120px;
}

@media (max-width: 991.98px) {
    .support-banner-text {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .support-banner-image {
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .support-banner-text {
        font-size: 1.1rem;
    }
    
    .homepage-support-banner {
        padding: 30px 0;
    }
}

