* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "montserrat";
}

html,
body {
    height: 100%;
    width: 100%;
}

.cursor {
    height: 25px;
    width: 25px;
    background-color: orange;
    border-radius: 50%;
    position: fixed;
    z-index: 99;
}

.cursor-blur {
    height: 300px;
    width: 300px;
    background-color: orange;
    border-radius: 50%;
    position: fixed;
    z-index: 99;
}


video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: fixed;
    -webkit-filter: blur(4px);
}


video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: -1;
    position: fixed;
}

.a {
    font-size: 30px;
    font-family: "Poppins", sans-serif;
}

.page1 {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color:#fff;
    /* position: fixed; */
}

/* Animated Moving Outline Effect */
@keyframes outlineAnimation {
    0% {
        -webkit-text-stroke: 2px #b22222;
    }

    /* Firebrick */
    25% {
        -webkit-text-stroke: 2px #d2691e;
    }

    /* Chocolate */
    50% {
        -webkit-text-stroke: 2px #deb887;
    }

    /* Burlywood */
    75% {
        -webkit-text-stroke: 2px #f4a460;
    }

    /* Sandy Brown */
    100% {
        -webkit-text-stroke: 2px #daa520;
    }

    /* Goldenrod */
}


.page1 h1 {
    font-size: 75px;
    font-weight: 900;
    position: relative;
    text-transform: uppercase;
}

.page1 h1::before {
    content: "STAY FOCUSED. STAY FIT.";
    position: absolute;
    color: transparent;
    top: -4px;
    left: -4px;
    -webkit-text-stroke: 2px orange;
    z-index: -1;
    animation: outlineAnimation 5s infinite ease-in-out;
}

#main {
    position: relative;
    background-color: rgba(0, 0, 0, 0.39);
  }

.main main{
    width:100%;
    height:calc(100% - 280px);
    position:relative;
}

/* page 2 */
#bmi-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensures it takes full viewport height */

}

#calculator {
    display: flex;
    background: white;
    opacity: 0.9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
}

#inputs {
    width: 50%;
    padding-right: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

button {
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #2980b9;
}

#result {
    text-align: center;
    margin-top: 15px;
    font-size: 1.2em;
}

#gauge {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gauge-container {
    position: relative;
    width: 200px;
    height: 100px;
    overflow: hidden;
}

#gauge-container img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#needle {
    width: 4px;
    height: 50px;
    background: red;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform-origin: bottom center;
    transform: rotate(15deg);
    transition: transform 1s;
}

@media (max-width: 768px) {
    #calculator {
        flex-direction: column;
        align-items: center;
    }
    
    #inputs, #gauge {
        width: 100%;
        padding: 10px;
    }
}

/* css for page 3 */


body {
    width: 100%;
    height: fit-content;
    margin: 0;
    padding: 0;
}

.stack-area {
    width: 100%;
    height: 300vh;
    position: relative;
    background: rgb(0, 0, 0);
    display: flex;
}

.left {
    height: 100vh;
    flex-basis: 50%;
    position: sticky;
    top: 0;
    left: 0;
}

.right {
    height: 100vh;
    flex-basis: 50%;
    position: sticky;
    top: 0;
}

.left {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    align-items: center;
    flex-direction: column;
}

.title {
    width: 420px;
    font-size: 84px;
    font-family: poppins;
    font-weight: 700;
    line-height: 88px;
    color: white;
}

.sub-title {
    width: 500px;
    font-family: poppins;
    font-size: 20px;
    margin-top: 30px;
    color: white;
}

.sub-title button {
    font-family: poppins;
    font-size: 14px;
    padding: 15px 30px;
    background: black;
    color: white;
    border-radius: 8mm;
    border: none;
    outline: none;
    cursor: pointer;
    margin-top: 20px;
}

.card {
    width: 350px;
    height: 350px;
    border-radius: 25px;
    margin-bottom: 10px;
    position: absolute;
    top: calc(50% - 175px);
    left: calc(50% - 175px);
    transition: 0.5s ease-in-out;
}

.card:nth-child(1) {
    background: rgb(64, 122, 255);
}

.card:nth-child(2) {
    background: rgb(221, 62, 88);
}

.card:nth-child(3) {
    background: rgb(186, 113, 245);
}

.card:nth-child(4) {
    background: rgb(247, 92, 208);
}

.card {
    box-sizing: border-box;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.sub {
    font-family: poppins;
    font-size: 20px;
    font-weight: 700;
}

.content {
    font-family: poppins;
    font-size: 30px;
    font-weight: 600;
    line-height: 54px;
}
  

.away {
    transform-origin: bottom left;
}



@media (max-width: 768px) {
    .page1 h1 {
        font-size: 40px;
        text-align: center;
    }

    .page1 h5 {
        font-size: 16px;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .stack-area {
        flex-direction: column;
        height: auto;
    }

    .left, .right {
        position: static;
        height: auto;
        width: 100%;
        padding: 20px;
    }

    .card {
        position: static;
        margin: 20px auto;
    }

    .title {
        font-size: 40px;
        line-height: 50px;
        width: 100%;
        text-align: center;
    }

    .sub-title {
        width: 100%;
        text-align: center;
    }
}


@media (max-width: 768px) {
    #gauge-container {
        width: 150px;
        height: 75px;
    }

    #needle {
        height: 40px;
    }
}