html {
    scroll-behavior: smooth;
}

* {

    padding: 0;
}

.logo {
    font-size: 40px;
    font-weight: bold;
    color: rgb(122, 111, 111);
    background-color: black;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 20px 0 20px;
    padding: 1px;
    border-radius: 50%;
    box-shadow: 0 0 15px hsl(213, 80%, 46%, 1);
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.logo:hover {
    background-color: #000000;
    color: hsl(213, 80%, 46%);
    box-shadow: 0 0 15px rgb(122, 111, 111, 1);
}


body {
    background-color: #000000;
    color: rgb(122, 111, 111);
    font-family: "Poppins", sans-serif;

}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;


}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 33px;


}

nav ul li a {
    text-decoration: none;
    color: rgb(122, 111, 111);

}

.left {
    font-size: 5rem;

}

.firstSection {
    display: flex;
    justify-content: space around;
    margin: 0 23px;
}

nav ul li a:hover {
    color: hsl(213, 80%, 46%);

}

.firstSection {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin: 20px 20px;

}

.leftSection {
    color: rgb(122, 111, 111);
    font-size: 3rem;
    margin: 70px 0;

}

.rightSection img {
    max-width: 100%;
    height: auto;
}


.leftSection p {
    font-size: large;

}

.blue:hover {
    color: hsl(213, 80%, 46%);

}

.leftSection div p:hover {
    color: hsl(213, 80%, 46%);
}

.rightSection:hover {
    box-shadow: 0 0 10px hsl(213, 80%, 46%, 15)
}

.interest {

    font-size: larger;
}

#element {

    font-size: larger;
}

.secondSection {
    max-width: 80vw;
    margin: auto;
    height: 70vh;
    font-size: larger;
}

.secondSection h1 {
    font-size: 1.9rem;
}

.secondSection ol li:hover {
    color: hsl(213, 80%, 46%);
}

main hr {
    border: 0;
    background: rgb(122, 111, 111);
    height: 1.5px;
    margin: 85px 120px;
}

.secondSection ol {
    margin: 0px 70px;
    list-style-type: disc;
}

.thirdSection {
    max-width: 80vw;
    margin: auto;
    height: 70vh;
    font-size: 1.9rem;
    font-size: larger;
}

.fourthSection {
    max-width: 80vw;
    margin: auto;
    height: 70vh;
    font-size: 1.9rem;
    font-size: larger;

}

.fourthSection ul {
    margin: 0px 70px;
}

.button {
    display: flex;
    /* Arrange buttons in a row */
    gap: 15px;
    /* Space between buttons */
    flex-wrap: wrap;
    /* If small screen, wrap onto next line */
    margin-top: 20px;
    /* Space above buttons */
}




.fourthSection .btn a {

    background-color: hsl(213, 80%, 46%);
    color: hsl(0, 0%, 100%);
    border: 2px hsl(213, 80%, 46%);
    padding: 15px;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;


}

.fourthSection .btn a:hover {
    background-color: rgb(255, 255, 255);
    color: hsl(213, 80%, 46%);
    font-weight: bold;

}

.fourthSection ul p:hover {
    color: hsl(213, 80%, 46%);
}

.fifthSection {
    max-width: 80vw;
    margin: auto;
    height: 70vh;

}

.fifthSection h1 {
    font-size: 3rem;
    display: flex;
    justify-content: center;

}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons i {
    font-size: 45px;
    color: white;
    transition: transform 0.3s, color 0.3s;
}

.social-icons i:hover {
    transform: scale(1.2);
    color: hsl(213, 80%, 46%);

}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: rgb(122, 111, 111);
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle:focus-visible {
    outline: 2px dashed hsl(213, 80%, 46%);
    outline-offset: 4px;
}

/* ---------------- SIDEBAR ---------------- */
.sidebar {
    position: fixed;
    top: 0;
    right: -260px;
    /* hidden off-screen */
    width: 260px;
    height: 100dvh;
    background-color: #111;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.6);
    transition: right 0.3s ease-in-out;
    padding-top: 80px;
    z-index: 1001;
}

.sidebar.open {
    right: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar a {
    display: block;
    text-decoration: none;
    color: rgb(200, 200, 200);
    font-size: 18px;
    padding: 10px 12px;
    border-radius: 8px;
}

.sidebar a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Clickable scrim to close sidebar */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 1000;
}

.scrim.show {
    opacity: 1;
    pointer-events: auto;
}



/* ---------------- RESPONSIVE ---------------- */
/* Tablets and down */
@media (max-width: 1024px) {
    .firstSection {
        flex-direction: column;
        text-align: center;
    }

    .leftSection {
        font-size: 2rem;
    }

    .rightSection img {
        width: min(60%, 360px);
    }

    nav ul {
        display: none;
    }
}

/* Mobiles */
@media (max-width: 768px) {

    /* Show hamburger, hide desktop links */
    .nav-toggle {
        display: block;
    }



    .firstSection {
        margin: 20px 16px;
        gap: 16px;
    }

    .leftSection {
        font-size: 1.5rem;
        margin: 20px;
    }

    .leftSection p {
        font-size: 0.95rem;
    }

    .rightSection img {
        width: 80%;
        max-width: 360px;
        margin: 0 auto;
    }

    .secondSection,
    .thirdSection,
    .fourthSection,
    .fifthSection {
        padding-bottom: 40px;
        height: auto;
    }

    main hr {
        margin: 40px auto;
        width: 85%;
    }

    .logo {
        margin-top: 15px;
        /* a touch lower on mobile */
    }
}

/* Small phones */
@media (max-width: 480px) {
    .logo {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .leftSection {
        font-size: 1.5rem;
    }

    .rightSection img {
        width: 100%;
    }

    .social-icons i {
        font-size: 32px;
    }
}

/* Splash container */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Splash Logo */
.splash-logo {
    font-size: 50px;
    font-weight: bold;
    color: hsl(213, 80%, 46%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    animation: splash-zoom 2s ease forwards;
}

@keyframes splash-zoom {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(20);
        opacity: 0;
    }
}