* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-image: url("images/home/back.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.navbar {
    height: 55px;
    width: 100%;
    margin: 0 40px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    margin-right: 10px;
}

.logo span {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ddd;
}

.search {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 2px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar .search {
    position: static;
    width: auto;
    margin-left: 1rem;
    /* stays inside navbar */
}


.search-box {
    display: flex;
    align-items: center;
    /* makes input + button perfectly aligned */
    justify-content: center;
    height: 40px;
    /* increased height for better balance */
    padding: 5px 15px;
    border-radius: 50px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px 10px;
    font-size: 14px;
}

.search-box button img {
    height: 22px;
    width: 22px;
    margin: 0;
    vertical-align: middle;
    /* centers icon with input text */
}


.search-box button {
    background: none;
    border: none;
    cursor: pointer;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text .t1 {
    font-size: 128px;
    font-weight: 700;
    color: white;
    justify-content: center;
    margin-top: 90px;
}

.hero-text .t2 {
    font-size: 128px;
    font-weight: 700;
    color: white;
    justify-content: center;
    line-height: 0.5;
    letter-spacing: 15px;
}

.hero-text .t4 {
    font-size: 30px;
    font-weight: 400;
    color: white;
    justify-content: center;
    margin-top: 40px;
}

.fact-box {
    width: 400px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    position: relative;
    display: flex;
    margin-top: 30px;
    margin-left: 20px;
}

.fact-image img {
    width: 140px;
    height: 160px;
    border-radius: 15px;
}

.fact-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* pushes controls to bottom */
    height: 100%;
    /* make it stretch */
    margin-left: 10px;
}

.fact-controls {
    margin-top: auto;
    /* forces it down */
}


.fact-controls .dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
}

.fact-controls .dot.active {
    background: limegreen;
    opacity: 1;
}

.fact-controls button {
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.connection {
    height: 60px;
    width: 300px;
    background-color: white;
    border-radius: 40px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.navbar2 {
    height: 55px;
    width: 100%;
    margin: 0 40px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.search-connection {
    width: 250px;
    height: 50px;
}

.search-connection a img {
    width: 50px;
    height: 40px;
}

.main-text2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.main-text2 p {
    font-size: 96px;
    font-weight: 500;
    color: white;
}

.main-text2 .p2 {
    font-size: 40px;
    line-height: 0.5;
}

.main-weather {
    width: 600px;
    height: 340px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    flex-direction: column;
    margin: 40px auto 0;
    position: relative;
    box-sizing: border-box;
}

.temp-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.temp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.temp img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.temp p {
    color: white;
    font-size: 60px;
    font-weight: 500;
    margin: 0;
}

.main-weather-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.main-weather-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.status img {
    width: 74px;
    height: 60px;
    object-fit: contain;
}

.status p {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}

.humidity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.humidity img {
    width: 57px;
    height: 52px;
    object-fit: contain;
}

.humidity p {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}

.feels {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feels img {
    width: 63px;
    height: 63px;
    object-fit: contain;
}

.feels p {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}

.wind {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wind img {
    width: 57px;
    height: 63px;
    object-fit: contain;
}

.wind p {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}

.like {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.like pre {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
}

.like p {
    margin: 0;
}

.hero-text-connect {
    width: 600px;
    height: 500px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    /* position: relative; */
    display: flex;
    flex-direction: column;
    margin-top: 90px;
    /* margin-left: 20px; */
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-top: 40px;

}

.hero-text-connect .main {
    font-size: 64px;
    font-weight: 500;
}

.hero-text-connect ul img {
    height: 78px;
    width: 78px;
}

.hero-text-connect ul {
    list-style-type: none;
}

.email {
    display: flex;
    align-items: center;
}

.email p {
    font-size: 36px;
    font-weight: 400;
    margin-left: 60px;
}

.insta {
    display: flex;
    align-items: center;
}

.insta p {
    font-size: 36px;
    font-weight: 400;
    margin-left: 60px;
}

.github {
    display: flex;
    align-items: center;
}

.github p {
    font-size: 36px;
    font-weight: 400;
    margin-left: 60px;
}

.discord {
    display: flex;
    align-items: center;
}

.discord p {
    font-size: 36px;
    font-weight: 400;
    margin-left: 60px;
}

.main2 {
    font-size: 64px;
    font-weight: 500;
}

.mission {
    display: flex;
    align-items: center;
    padding: 20px;
}

.science {
    display: flex;
    align-items: center;
    padding: 20px;
}

.team {
    display: flex;
    align-items: center;
    padding: 20px;
}

.main-text2 p {
    word-wrap: break-word;
}

.big {
    font-size: 28px;
    font-weight: 500;
    margin-left: 100px;

}

.small {
    margin-left: 20px;
}

.mobile-search {
    display: none;
}

@media screen and(orientation: landscape) {
    .connection {
        display: none;
    }
}

@media(max-width:768px) {
    .nav-links {
        display: block;
        position: absolute;
        left: 135px;
        top: 144px;
    }

    #hide {
        display: none;
    }

    .navlinks1 {
        display: block;
        background-color: rgba(0, 0, 0, 0.836);
        height: 100vh;
        width: 100%;
        max-width: 450px;
        position: fixed;
        top: 0;
        right: -450px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 4rem;
        transition: .4s ease;
        position: absolute;
        top: -21px;
    }

    .navlinks1 ul li {
        color: black;
        font-size: 25px;
    }

    .nav-links li a {
        margin-bottom: 10px;
    }

    .navlinks1.active {
        right: 0;
        margin-top: -14px;
    }

    nav {
        padding: 1rem;
        display: flex;
        background-color: rgba(0, 0, 0, 0);
    }

    /* --- HAMBURGER --- */
    .hamburger {
        height: 50px;
        width: 50px;
        margin-left: auto;
        /* remove top:-131px so it doesn't jump */
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        cursor: pointer;
        z-index: 1000;
        position: absolute;
        right: 24px;
        top: 24px;
    }

    body.menu-open .mobile-search,
    body.menu-open .fact-box,
    body.menu-open .connection {
        display: none;
    }

    body.menu-open .hero-text-connect {
        display: none;
    }

    body.menu-open .main-weather {
        display: none;
    }
    body.menu-open .hero-text{
        display: none;
    }
    body.menu-open .main-text2{
        display: none;
    }

    .hero-text-connect {
        width: 90%
    }

    .hero-text-connect .main {
        font-size: 41px;
    }

    .hero-text-connect ul img {
        height: 63px;
        width: 63px;
    }

    .about {
        width: 90%;
        position: absolute;
        top: 180px;
        right: 18px;
    }

    .main2 {
        font-size: 64px;
        font-weight: 500;
        position: absolute;
        top: 20px;
    }

    .mission {
        display: flex;
        align-items: center;
        padding: 6px;
        position: absolute;
        top: 100px;
        left: 29px;
    }

    .science {
        display: flex;
        align-items: center;
        padding: 20px;
        position: absolute;
        top: 179px;
    }

    .team {
        display: flex;
        align-items: center;
        padding: 20px;
        margin-top: 263px;
    }

    .big {
        font-size: 30px;
        font-weight: 500;
        margin-left: -22px;
        text-align: center;
    }

    .hamburger span {
        height: 5px;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.788);
        border-radius: 25px;
        transition: .4s ease;
    }

    /* animate to X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(16px, -16px);
    }


    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
        /* hides horizontal scroll */
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: auto;
    }

    .mobile-search {
        display: block;
        display: flex;
        width: 60%;
        margin: auto;
        position: relative;
        z-index: 0;
    }

    .mobile-search input {
        font-size: 15px;
        margin-top: 20px;
    }

    .mobile-search button img {
        height: 2rem;
        width: 2rem;
        position: absolute;
        right: 10px;
        top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-text .t1 {
        font-size: 60px;
        margin: 70px 0 auto;
    }

    .hero-text .t2 {
        font-size: 40px;
        margin: auto;
        letter-spacing: 25px;
    }

    .hero-text .t4 {
        font-size: 15px;
        margin-top: 20px;
    }

    .fact-box {
        width: 80%;
        height: auto;
        margin: auto;
    }

    body {
        margin: 0;
        padding: 0;
        height: 100vh;
        background-image: url('images/home/back.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .main-text2 p {
        font-size: 30px;
        width: 80%;
        text-align: center;
    }

    .main-text2 .p2 {
        font-size: 16px;
        font-weight: 400;
    }

    #homeCity1 {
        margin-bottom: 15px;
        width: 120px;
    }

    /* Tablet styles */
    @media screen and (max-width: 768px) {
        .main-weather {
            width: 90%;
            max-width: 500px;
            height: auto;
            padding: 20px 15px;
            margin: 30px auto 0;
        }

        .temp img {
            width: 70px;
            height: 70px;
        }

        .temp p {
            font-size: 50px;
        }

        .status img {
            width: 60px;
            height: 50px;
        }

        .status p,
        .humidity p,
        .feels p,
        .wind p {
            font-size: 20px;
        }

        .feels img {
            width: 50px;
            height: 50px;
        }

        .humidity img,
        .wind img {
            width: 45px;
            height: 45px;
        }

        .main-weather-mid,
        .main-weather-bottom {
            padding: 0 10px;
        }
    }

    /* Small tablet / Large mobile */
    @media screen and (max-width: 640px) {
        .main-weather {
            width: 95%;
            padding: 15px;
            border-radius: 15px;
        }

        .temp-wrapper {
            margin-bottom: 15px;
        }

        .temp img {
            width: 60px;
            height: 60px;
        }

        .temp p {
            font-size: 42px;
        }

        .main-weather-mid {
            margin-bottom: 25px;
        }

        .status img {
            width: 50px;
            height: 42px;
        }

        .status p,
        .humidity p,
        .feels p,
        .wind p {
            font-size: 18px;
        }

        .feels img {
            width: 42px;
            height: 42px;
        }

        .humidity img,
        .wind img {
            width: 38px;
            height: 38px;
        }

        .like pre {
            font-size: 12px;
        }
    }

    /* Mobile styles */
    @media screen and (max-width: 480px) {
        .main-weather {
            width: 95%;
            height: auto;
            padding: 15px 10px;
            margin: 20px auto 0;
        }

        .temp {
            gap: 10px;
        }

        .temp img {
            width: 50px;
            height: 50px;
        }

        .temp p {
            font-size: 36px;
        }

        .main-weather-mid,
        .main-weather-bottom {
            flex-direction: column;
            gap: 15px;
            padding: 0 5px;
        }

        .main-weather-mid {
            margin-bottom: 20px;
        }

        .status,
        .humidity,
        .feels,
        .wind {
            justify-content: center;
            gap: 8px;
        }

        .status img {
            width: 45px;
            height: 38px;
        }

        .status p,
        .humidity p,
        .feels p,
        .wind p {
            font-size: 16px;
        }

        .feels img {
            width: 38px;
            height: 38px;
        }

        .humidity img,
        .wind img {
            width: 35px;
            height: 35px;
        }

        .like {
            text-align: center;
        }

        .like pre {
            font-size: 11px;
        }
    }

    /* Extra small mobile */
    @media screen and (max-width: 360px) {
        .main-weather {
            width: 98%;
            padding: 12px 8px;
            border-radius: 12px;
        }

        .temp img {
            width: 45px;
            height: 45px;
        }

        .temp p {
            font-size: 32px;
        }

        .status img {
            width: 40px;
            height: 34px;
        }

        .status p,
        .humidity p,
        .feels p,
        .wind p {
            font-size: 15px;
        }

        .feels img {
            width: 35px;
            height: 35px;
        }

        .humidity img,
        .wind img {
            width: 32px;
            height: 32px;
        }

        .main-weather-mid,
        .main-weather-bottom {
            gap: 12px;
        }

        .like pre {
            font-size: 10px;
        }
    }

    /* Large screens */
    @media screen and (min-width: 1200px) {
        .main-weather {
            width: 650px;
            height: 360px;
            padding: 25px;
        }

        .temp img {
            width: 90px;
            height: 90px;
        }

        .temp p {
            font-size: 65px;
        }

        .status img {
            width: 80px;
            height: 65px;
        }

        .status p,
        .humidity p,
        .feels p,
        .wind p {
            font-size: 26px;
        }

        .feels img {
            width: 68px;
            height: 68px;
        }

        .humidity img,
        .wind img {
            width: 60px;
            height: 60px;
        }
    }

    /* Landscape orientation for mobile */
    @media screen and (max-width: 768px) and (orientation: landscape) {
        .main-weather {
            width: 90%;
            max-width: 600px;
            height: auto;
            padding: 15px;
        }

        .main-weather-mid,
        .main-weather-bottom {
            flex-direction: row;
            justify-content: space-around;
        }

        .temp p {
            font-size: 38px;
        }

        .connection {
            display: none;
        }
    }
}

/* animations */
/* === HIDE BY DEFAULT === */
.from-top,
.from-left,
.from-right,
.from-bottom {
    opacity: 0;
    /* invisible before animation */
    /* visibility: hidden; */
    /* no click */
}

/* === ANIMATION KEYFRAMES === */
@keyframes fromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === CLASSES YOU APPLY TO ELEMENTS === */
/* Just put class="from-top" etc. on any element */

.from-top {
    animation: fromTop 0.8s ease-out forwards;
}

.from-left {
    animation: fromLeft 0.8s ease-out forwards;
}

.from-right {
    animation: fromRight 0.8s ease-out forwards;
}

.from-bottom {
    animation: fromBottom 0.8s ease-out forwards;
}


/* Optional: add delay classes if you want staggered animations */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}
/* start squashed + hidden */
.squeeze-out {
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0.1);
}

/* keyframes for the effect */
@keyframes squeezeOut {
  0% {
    opacity: 0;
    transform: scaleY(0.1);
  }
  60% {
    opacity: 1;
    transform: scaleY(1.05); /* little overshoot */
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
    visibility: visible;
  }
}

/* when you also add .animate to your HTML */
.squeeze-out.animate {
  animation: squeezeOut 1s ease-out forwards;
}
/* THE END */