/* Global Styles */

:root {
    --primary_color: #079a9e;
    --primary_color_light: rgba(218, 246, 247, 0.603);
    --secondary_color: rgb(231, 89, 3);
    --secondary_color_light: rgba(255, 245, 239, 0.603);
    --secondary_color_medium: rgba(102, 82, 70, 0.966);
    --secondary_color_shadow: rgb(231, 90, 3);
    --disabled_color: rgb(179, 179, 179);
    --text_color: #05383b;
    --background_color: rgb(255, 205, 164);
}




body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text_color);
    /*background-color: var(--background_color);*/
}

.text-primary_color {
    color: var(--primary_color);
}

.text-secondary_color {
    color: var(--secondary_color);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
}



.underscore {
    text-decoration: underline;
}

.navbar {
    padding: 10px;
}


.navbar-primary {

    background-color: var(--primary_color);
}

/* Logo styling */
.navbar-brand .logo {
    height: 40px;
    /* Adjust based on your logo's dimensions */
    max-width: 100px;
    /* Optional to control width */
    object-fit: contain;
    /* Ensure the logo scales correctly */
    display: inline-block;
    vertical-align: middle;
}

.navbar-nav .nav-item:not(:last-child) {
    border-right: 2px solid rgba(255, 255, 255, 0.13);
}

@media (max-width: 991px) {
    .navbar-nav .nav-item:not(:last-child) {
        border-right: none;
    }
}

main {
    padding-top: 60px;
}

.parallax {
    background-image: url('upcy_logo_background_pattern.svg');
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    z-index: -1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px); /* Full viewport height */
    overflow: hidden;
}

.carousel-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the placeholder covers the container without distortion */
    z-index: 1;
    transition: opacity 0.5s ease; /* Smooth fade-out */
}

.carousel {
    position: relative;
    display: flex;
    height: 100%;
    z-index: 2; /* Carousel appears above the placeholder */
    visibility: hidden; /* Hide carousel until ready */
}

.carousel img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Header and Description */
.carousel-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    color: white;
    text-shadow: 2px 2px 2px var(--secondary_color_shadow), 0px 0px 15px rgb(43, 43, 43), 0px 0px 20px rgb(24, 24, 24), 0px 0px 30px black, 0px 0px 40px black;
}

.carousel-header {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
}

.carousel-description {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

/* Downward Arrow - Fixed initially */
.scroll-arrow {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease, bottom 0.3s ease;
}

.scroll-arrow:hover {
    color: #FFD700; /* Golden color on hover */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.section:nth-child(odd) {
    background: linear-gradient(0deg, var(--secondary_color_light) 85%, var(--primary_color_light) 100%);

    .paragraph-container {
        background-color: var(--primary_color_light);
        /* Bright blue for odd sections */
    }
}

.section:nth-child(even) {
    background: linear-gradient(0deg, var(--primary_color_light) 85%, var(--secondary_color_light) 100%);

    .paragraph-container {
        background-color: var(--secondary_color_light);
        /* Bright blue for odd sections */
    }
}


.section {
    min-height: 100vh;
    max-width: 100%;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

}

.section .container-fluid {
    width: 100%;
    display: flex;
    justify-content: center;
}

.section-content {
    max-width: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

}

.title,
.description {
    color: #fff;
    text-align: center;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.description {
    font-size: 1.2rem;
}

.img-container {
    position: relative;
    text-align: center;
}



.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: rgba(0, 0, 0, 0);
    /* Add contrast */
    padding: 20px;
    border-radius: 3px;
    text-shadow: 2px 2px 2px var(--secondary_color_shadow);
}

.text-container,
.paragraph-container {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.7s ease-in-out;
    /*background-color: rgba(0, 0, 0, 0.041); /* Add contrast */
    padding: 25px;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    &.margin-top {
        margin-top: 20px;
    }
}

.paragraph {
    text-align: justify;
    font-size: 1.1rem;

    &.right {
        direction: ltr;
    }

    .list {
        padding-left: 10px;
        text-align: left;
        display: inline-block;
    }

    &.last {
        margin-bottom: 0px;
    }
}

.action-button {
    background-color: var(--primary_color);
    color: white;
    border-radius: 5px;
    padding: 12px 25px;
    border: none;
    font-size: 1.1rem;

    &.primary {
        background-color: var(--primary_color);
    }

    &.secondary {
        background-color: var(--secondary_color);
    }

    &.disabled {
        background-color: var(--disabled_color);
    }

}

.space-top {
    margin-top: 10px;
}

@media (min-width: 768px) {

    /* On larger screens, align the paragraph opposite the image */
    .text-container {
        order: 2;
    }

    .paragraph-container {
        order: 1;
    }
}

@media (max-width: 767px) {

    .img-container,
    .paragraph-container {
        width: 100%;
        /* Ensure full width on mobile */
        margin-top: 20px;
    }
}

/* Fade-in and Fade-out animation on scroll */
.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.fade-out {
    opacity: 0;
    transform: translateX(100px);
}
