html {
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFF;
}

.masthead_container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    height:100%;
    border:8px solid #2ca0c4;
    position:relative;
    overflow:hidden;
    box-sizing: border-box; /* Ensures border is included in height */
}

.scroll_down_arrow_container
{
    position:absolute;
    bottom:10;
    right:10;
}

.scroll_down_arrow_container img
{
    width:50px;
}

#sentence-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
    padding: 20px;
}
.sentence-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    height: 400px;
}
.static_text {
    color: #444;
    font-size: 48px;
    font-weight: normal;
    white-space: nowrap;
    height: 45px;
    display: flex;
    align-items: center;
    margin-top: 0;
    line-height: 45px;
    transition: transform 2s cubic-bezier(0.23, 1, 0.32, 1);
    position:relative;
}
.collective_img_container
{
    position: absolute;
    bottom:-40px;
    left:90px;
}
.collective_img_container img
{
    width:80px;
}
.words-column {
    display: flex;
    position: absolute;
    /* height:98vh; */
    height:97vh;
    overflow: hidden;
    width: 420px;
    align-items: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.words-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, #FFF, transparent);
    z-index: 1;
    pointer-events: none;
}
.words-column::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #FFF, transparent);
    z-index: 1;
    pointer-events: none;
}
.words-container {
    position: absolute;
    top: 48.8%;
    left: 0;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(-35px); /* To adjust the word gaps, change this value */
}
.words-container .word-item {
    font-size: 60px;
    color: #ccc;
    padding: 0;
    height: 65px; /* To adjust the word gaps, change this value */
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 300;
    line-height: 65px; /* To adjust the word gaps, change this value */
    will-change: color, opacity;
}

.words-container .word-item.active {
    color: #000;
    font-weight: 300;
    opacity: 1;
}

.words-container .word-item.inactive {
    color: #ddd;
    /* font-weight: normal; */
    font-weight: 300;
    /* opacity: 0; */
    opacity:0.8;
}

/* .word-item.moved-up.inactive {
    color: #ddd;
    font-weight: 300;
    opacity: 0.8;
} */

.words-container .word-item:hover {
    opacity: 0.9;
}

/* .words-container .word-item:hover {
    font-weight: 600 !important; 
    color: #2b9fc4 !important; 
} */

/* Prevent active word from being bold when hovered */
.words-container .word-item.active:hover {
    font-weight: 300 !important;
    color: #000 !important;
}

.active-indicator {
    position: absolute;
    left: -20px;
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    opacity: 0;
}
.words-container .word-item.active .active-indicator {
    opacity: 1;
}

.letter_image_container
{
    margin-top:-20px;
    position: relative;
    width:150px;
    /* border:1px solid black; */
}

.letter_t
{
    position:absolute;
    /* left:10px; */
    left:30px;
    width:40px;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.letter_o
{
    position:absolute;
    /* left:-80px; */
    width:50px;
    top:15px;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.letter_g
{
    position:absolute;
    /* left:28px; */
    left:50px;
    top:18px;
    width:60px;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* background-color:#FFF; */
}
.letter_e
{
    position:absolute;
    /* left:-65px; */
    top:18px;
    width:40px;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.letter_t_1
{
    position:absolute;
    /* left:45px; */
    top:2px;
    width:33px;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.letter_h
{
    position:absolute;
    /* left:78px; */
    left:95px;
    top:-3px;
    width:52px;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.letter_e_1
{
    position:absolute;
    /* left:0px; */
    top:18px;
    width:40px;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.letter_r
{
    position:absolute;
    /* left:175px; */
    top:19px;
    width:35px;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hidden_letter
{
    display:none;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    /* z-index:-1; */
    display: block !important;
}

.mobile-active-word {
    visibility: hidden;
    font-size: 48px;
    color: #000;
    font-weight: 300;
    text-align: center;
    /* margin-top: 20px;
    margin-left: 80px; */
    margin-top:30px;
    margin-left:0px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0s;
}

.content_container {
    inline-size: min(100% - 125px * 2, 1516px);
    margin-right: auto;
    margin-left: auto;
    /* padding:50px 0px; */
}

.desc_container
{
    display:flex;
    align-items: center;
    justify-content: center;
    padding:50px 0;
    /* height: 100%; */
}

/* Set the about_description font size to 30px */
.body_description {
    /* height:100%;
    overflow:auto; */
    text-align:center;
    margin-top:5px;
    font-size: 22px !important;
    line-height: 1.2; /* Adjust line height for better readability */
    font-weight: 400; /* Adjust weight if needed */
    max-width: 600px; /* Optional: limit width for better reading */
    margin: 0 auto; /* Center the text block */
}

/* Ensure split words inherit the correct size */
.body_description .word-item {
    display: inline-block !important;
    font-size: 22px !important; /* Match parent size */
    /* line-height: inherit !important; */
    font-family: inherit !important;
    color: inherit !important;
    white-space: normal !important;
}

.get_in_touch_link {
	overflow: visible;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition: color .4s;
	transition: color .4s;
    text-decoration:none;
    color:#2ca0c4;
    display: inline-block; /* ADD THIS - crucial for transform to work */
}

.get_in_touch_link:hover {
	-webkit-animation-name: eff24-move;
	animation-name: eff24-move;
	-webkit-animation-duration: .4s;
	animation-duration: .4s;
	-webkit-animation-timing-function: linear;
	animation-timing-function: linear;
	-webkit-animation-iteration-count: 1;
	animation-iteration-count: 1;
    -webkit-animation-fill-mode: both; /* ADD THIS */
    animation-fill-mode: both; /* ADD THIS */
}

/* ADD VENDOR PREFIXES FOR @KEYFRAMES */
@-webkit-keyframes eff24-move {
    30% {
        -webkit-transform: translate3d(0, -5px, 0) rotate(5deg);
        transform: translate3d(0, -5px, 0) rotate(5deg);
    }
    50% {
        -webkit-transform: translate3d(0, -3px, 0) rotate(-4deg);
        transform: translate3d(0, -3px, 0) rotate(-4deg);
    }
    80% {
        -webkit-transform: translate3d(0, 0, 0) rotate(-3deg);
        transform: translate3d(0, 0, 0) rotate(-3deg);
    }
    100% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@keyframes eff24-move {
    30% {
        -webkit-transform: translate3d(0, -5px, 0) rotate(5deg);
        transform: translate3d(0, -5px, 0) rotate(5deg);
    }
    50% {
        -webkit-transform: translate3d(0, -3px, 0) rotate(-4deg);
        transform: translate3d(0, -3px, 0) rotate(-4deg);
    }
    80% {
        -webkit-transform: translate3d(0, 0, 0) rotate(-3deg);
        transform: translate3d(0, 0, 0) rotate(-3deg);
    }
    100% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

/* .get_in_touch_link
{
    text-decoration:none;
    color:#2ca0c4;
}

.get_in_touch_link:hover
{
    opacity:0.7;
} */

.copyright_container
{
    font-size:12px;
}

.end_logo img
{
    width:80px;
}

/* Boat */

.scene {
    position: relative;
    /* width: calc(100vw - 80px); 
    max-width: 1200px; */
    width:75%;
    height: 150px;
    overflow: hidden;
    margin:auto;
}

.boat {
    position: absolute;
    bottom: 21px;
    width: 120px; /* Adjust based on your PNG image dimensions */
    height: auto;
    transform-origin: center 80%; /* Rocking pivot point - adjust based on image */
    left: 0; /* Will be set by JavaScript */
    pointer-events: none; /* Prevent image from interfering with clicks */
}

.boat-img {
    width: 100%;
    height: auto;
    display: block;
    /* filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3)); */
}

.wave {
    position: absolute;
    bottom: 35px;
    width: 100%;
    height: 3px;
    background-color:#2ca0c4;
}

@media only screen and (max-width: 1300px) {
    .blob-container {
        right:-30%;
    }
}

@media (max-width: 1200px) {
    .content_container {
        inline-size: min(100% - 90px * 2, 1516px);
    }
}

@media (max-width: 1100px) {
    .content_container {
        inline-size: min(100% - 70px * 2, 1516px);
    }
}

@media (max-width: 991px) {
    .content_container {
        inline-size: min(100% - 20px * 2, 1516px);
    }
}

@media only screen and (max-width: 767px) {
    /* .masthead_container {
        min-height:50vh;
    } */
     .letter_t
    {
        left:32px;
        width:38px;
    }
    .letter_o
    {
        width:45px;
        top:15px;
    }
    .letter_g
    {
        left:53px;
        top:15px;
        width:55px;
    }
    .letter_e
    {
        top:15px;
        width:38;
    }
    .letter_t_1
    {
        top:1px;
        width:30px;
    }
    .letter_h
    {
        left:93px;
        top:-4px;
        width:48px;
    }
    .letter_e_1
    {
        top:15px;
        width:38px;
    }
    .letter_r
    {
        top:16px;
        width:32px;
    }

    #gradient-container
    {
        height:50vh!important;
        width:100%;
        z-index:-1;
        /* Remove mask completely */
        mask-image: none!important;
        -webkit-mask-image: none!important;
    }

    #sentence-wrapper
    {
        /* align-items: unset; */
        align-self: self-start;
        padding-top:35px;
    }
    .sentence-container
    {
        /* border:1px solid red; */
        flex-direction: column;
        height: auto;
    }
    .static_text
    {
        /* width:100%; */
        /* margin-top:10vh; */
    }
    .words-column {
        /* display: none !important; */
        /* height:85vh; */
        position:relative;
        margin-top:30px;
    }
    .words-container{
        position:relative;
        top:unset;
        /* top:98%; */
        /* margin-top:45px; */
        top: unset;
        left: unset;
        height: -webkit-fill-available;
    }
    .words-column::before {
        background: none;
    }
    /* .mobile-active-word {
        visibility: hidden;
    } */
    .words-container .word-item
    {
        font-size:32px;
        justify-content: center; /* ADD THIS - centers horizontally */
        text-align: center; /* ADD THIS - centers text */
        width: 100%; /* ADD THIS - ensures full width */
        height: fit-content;
        line-height: 1.5;
    }
    .scroll_down_arrow_container img {
        width: 30px;
    }

    .body_container
    {
        /* height:100vh; */
        height: 100vh; /* Fixed height on mobile */
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: visible; /* Allow content to overflow naturally */
    }

    .content_container {
        /* padding: 10px 0px; */
        flex: 1;
        display: flex;
        flex-direction: column;
        /* padding: 30px 0px !important; */
        inline-size: 100% !important;
        margin: 0 !important;
        overflow: visible; /* Don't clip content */
        height: auto; /* Let it grow */
        min-height: 100%; /* At least fill container */
    }
    
    .desc_container
    {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible; /* Allow overflow */
        height: auto; /* Dynamic height */
        padding-top:0px;
    }

    /* Set the about_description font size to 30px */
    .body_description {
        text-align:center;
        margin-top:5px;
        font-size: 18px !important;
        line-height: 1.2; /* Adjust line height for better readability */
        font-weight: 400; /* Adjust weight if needed */

        max-width:600px;
        overflow: visible; /* Allow text to flow */
        height: auto; /* Dynamic height */
    }

    /* Remove any overflow restrictions */
    .body_description,
    .desc_container,
    .content_container {
        overflow: visible !important;
        max-height: none !important;
    }

    /* Ensure split words inherit the correct size */
    .body_description .word-item {
        display: inline-block !important;
        font-size: 18px !important; /* Match parent size */
        /* line-height: inherit !important; */
        font-family: inherit !important;
        color: inherit !important;
        white-space: normal !important;
    }

    /* Boat */
    .scene {
        width:90%;
        height:110px;
    }
    
    .boat {
        bottom:69px;
        width: 100px; /* Smaller boat on tablets */
    }

    .wave {
        bottom: 79px;
    }
    
}

@media only screen and (max-width:500px) {

    
}