/* Custom styles for welcome page */
.welcome-page-hero {
    margin-top: 0;
    position: relative;
    padding-top: 5rem;
    min-height: 100vh;
    /* Make hero take full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .welcome-page-hero {
        padding-top: 6rem;
    }
}

@media (max-width: 640px) {
    .welcome-page-hero {
        padding-top: 4rem;
    }
}

/* Content positioning to ensure text is below navbar */
.welcome-page-hero .hero-content {
    padding-top: 2rem;
    margin-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .welcome-page-hero .hero-content {
        padding-top: 3rem;
        margin-top: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Hero title responsive improvements */
.hero-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

/* Ensure gradient text doesn't overflow */
.hero-title .gradient-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Extra small screens specific adjustments */
@media (max-width: 475px) {
    .welcome-page-hero .hero-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .hero-title .gradient-text {
        font-size: 1.875rem !important;
        display: block !important;
        margin-top: 0.25rem;
    }
}

/* Very small screens */
@media (max-width: 350px) {
    .welcome-page-hero .hero-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-top: 1rem;
    }

    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.1 !important;
    }

    .hero-title .gradient-text {
        font-size: 1.625rem !important;
    }
}

/* Remove the geometric animation styles since we're not using them */
#geometric-animation {
    display: none;
}

/* Award marquee positioning */
.welcome-page-hero .award-marquee-section {
    margin-top: auto;
    /* Push to bottom of flex container */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transform: translate3d(0, 0, 0);
    /* Force hardware acceleration */
    will-change: auto;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
}

/* Marquee row and track structure */
.marquee-row {
    width: 100%;
    position: relative;
    contain: layout style paint;
    transform: translateZ(0);
    /* Force hardware acceleration */
    will-change: auto;
}

.marquee-track-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    contain: layout style paint;
    transform: translateZ(0);
    /* Force hardware acceleration */
    will-change: auto;
}

.marquee-track {
    display: flex;
    animation: marquee-scroll linear infinite;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    /* Force hardware acceleration with 3D transform */
    backface-visibility: hidden;
    /* Prevent flickering */
    perspective: 1000px;
    /* Enable 3D acceleration */
    -webkit-transform: translate3d(0, 0, 0);
    /* Webkit specific */
    -moz-transform: translate3d(0, 0, 0);
    /* Firefox specific */
    -ms-transform: translate3d(0, 0, 0);
    /* IE specific */
}

/* Award item container */
.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    transform: translate3d(0, 0, 0);
    /* Force hardware acceleration */
    backface-visibility: hidden;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
}

.award-img {
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    transform: translate3d(0, 0, 0);
    /* Force hardware acceleration for images */
    backface-visibility: hidden;
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    margin-bottom: 4px;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
}

.award-title {
    font-size: 10px;
    color: white;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    transform: translate3d(0, 0, 0);
    /* Force hardware acceleration for text */
    backface-visibility: hidden;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
}

/* Perfect looping animation - both rows move left to right */
@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-25%, 0, 0);
        -webkit-transform: translate3d(-25%, 0, 0);
        -moz-transform: translate3d(-25%, 0, 0);
        -ms-transform: translate3d(-25%, 0, 0);
        /* Move 25% for 4 sets - seamless loop */
    }
}

/* Webkit specific keyframes for better performance */
@-webkit-keyframes marquee-scroll {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
    }

    100% {
        -webkit-transform: translate3d(-25%, 0, 0);
    }
}

/* Firefox specific keyframes */
@-moz-keyframes marquee-scroll {
    0% {
        -moz-transform: translate3d(0, 0, 0);
    }

    100% {
        -moz-transform: translate3d(-25%, 0, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .award-item {
        margin: 0 10px;
    }

    .award-img {
        height: 40px;
        margin-bottom: 3px;
    }

    .award-title {
        font-size: 9px;
        max-width: 70px;
    }
}

/* Override the main padding for the welcome page only */
body.welcome-page main {
    padding-top: 0 !important;
}
