@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&family=Roboto:wght@100;300;400&display=swap');

:root {
    --primary-color: rgb(6, 182, 212);
    --primary-dark: black;
}
* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #ffffff;
    color: #000;
}

header {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    opacity: 0;
    animation: leftSideAni 1s ease forwards;
}

.logo a {
    text-decoration: none;
    font-size: 40px;
    font-weight: bold;
}

ul {
    display: flex;
    gap: .6rem;
    list-style-type: none;
    background-color: transparent;
    overflow: hidden;
}

li a {
    display: inline-block;
    padding: .3rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .7px;
    border-radius: 36px;
    line-height: 2;
    transition: .3s;
    opacity: 0;
    animation: navani .3s ease forwards;
    animation-delay: calc(.15s * var(--navAni));
}

li a.active,
li a:hover {
    color: var(--primary-color);
}

#click {
    display: none;
}

.menu {
    display: none;
}

.mode i {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary-color);
    opacity: 0;
    animation: rightSideAni 1.5s ease forwards;
}

/* Main Section Styles */
.main {
    padding-top: 6rem;
}

.intro {
    display: flex;
    align-items: center;
    justify-items: center;
}

.images-intro {
    border-radius: 20px;
    opacity: 0;
    overflow: hidden;
    animation: imageAni 1s ease forwards;
    animation-delay: 1.0s;
    object-fit: cover;
    border-top: 2px solid var(--primary-color);
    margin: auto;
    width: 50%;
    height: auto;
}

.detail h3 {
    color: #000;
    font-size: 2rem;
    opacity: 0;
    animation: topSideAni 1s ease forwards;
}

.detail h1 {
    font-size: 6rem;
    opacity: 0;
    animation: leftSideAni 1s ease forwards;
    animation-delay: 1s;
}

.detail h2 {
    color: #fff;
    font-size: 2.5rem;
    opacity: 0;
    animation: leftSideAni 1s ease forwards;
    animation-delay: 1s;
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.4rem;
}

.social a {
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--primary-color);
    border: 1.6px solid var(--primary-color);
    font-size: 1.5rem;
    border-radius: 50%;
    padding: 0.39rem;
    text-align: center;
    opacity: 0;
    animation: SocialAni 1s ease forwards;
    animation-delay: calc(.2s * var(--socialAni));
}

.social a:hover {
    color: var(--primary-dark);
    background-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    transition: all .3s ease-in-out;
}

/* Dark Mode Styles */
.dark-mode {
    background-color: var(--primary-dark);
    color: #ffffff;
}

.mode input {
    display: none;
}

.dark-mode .logo a,
.dark-mode ul li a,
.dark-mode .main h3,
.dark-mode .main h1 {
    color: #fff;
}

.dark-mode ul li a.active,
.dark-mode ul li a:hover {
    color: var(--primary-color);
}


.dark-mode header {
    box-shadow: 0 4px 17px rgb(6, 182, 212);
    background: var(--primary-dark);
}

.desc {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bolder;
    opacity: 0;
    animation: leftSideAni 1s ease forwards;
    animation-delay: 1s;
    text-align: center;
    text-decoration: underline;
    color: var(--primary-color);
}

.images {
    border-radius: 20px;
    opacity: 0;
    overflow: hidden;
    animation: imageAni 1s ease forwards;
    animation-delay: 1.0s;
    object-fit: cover;
    display: grid;
    border-bottom: 4px solid var(--primary-color);
    width: 50%;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.card-body {
    justify-content: center;
    align-items: center;
}

.card-body .skill {
    margin: auto;
    border-radius: 16px;
    background-color: #1F252E;
    object-fit: cover;
    overflow: hidden;
    width: 60%;
    border: 1px solid #101316;
    padding: 4px;
}

.work {
    width: 100%;
    border-radius: 10px;
}

.contact {
    margin-bottom: 20px;
}

.contact-input {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi);
    padding: 1rem;
    display: inline;
    border-radius: 0.5rem;
    border: 2px solid var(--primary-color);
    outline: none;
    animation: leftSideAni 1s ease forwards;
}

.btn {
    border: none;
    outline: none;
    background-color: var(--primary-color);
    cursor: pointer;
    border-radius: 4px;
    animation: leftSideAni 1s ease forwards;
}

.location {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
    height: 300px;
}

.dark-mode footer {
    z-index: 1;
    box-shadow: 0 4px 17px rgb(6, 182, 212);
}

.social-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.4rem;
}

.social-footer a {
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--primary-color);
    border: 1.6px solid var(--primary-color);
    font-size: 1.5rem;
    border-radius: 50%;
    padding: 0.39rem;
    text-align: center;
    opacity: 0;
    animation: SocialAni 1s ease forwards;
    animation-delay: calc(.2s * var(--socialAni));
}

.social-footer a:hover {
    color: var(--primary-dark);
    background-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    transition: all .3s ease-in-out;
}

@keyframes leftSideAni {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes navani {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rightSideAni {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes topSideAni {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes SocialAni {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes imageAni {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media screen and (max-width: 1024px) {
    .container-fluid {
        padding: 0 4.4rem;
    }

    @media screen and (max-width: 600px) {
        body {
            height: auto;
        }

        .container-fluid {
            padding: 0 2rem;
        }

        .logo {
            padding-bottom: .9rem;
            align-items: flex-start;
        }

        ul {
            background: #fff;
            width: 100%;
            height: 100vh;
            position: absolute;
            display: flex;
            flex-direction: column;
            text-align: center;
            padding-top: 1rem;
            left: -100%;
            z-index: 111111;
        }


        .menu {
            display: block;
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .images-intro {
            width: 90%;
            align-items: center;
            padding: 8px;
            margin: none;
        }

        .detail h1 {
            font-size: 2.5rem;
        }

        .detail h2 {
            font-size: 1.8rem;
        }

        .images {
            width: 100%;
        }

        .card-body .skill {
            width: 100%;
        }

        .card-body .work {
            width: 100%;
        }

        #click:checked~ul {
            left: 0%;
            transition: all 0.3s ease;
        }

        .dark-mode .menu {
            color: var(--primary-color);
        }

        .dark-mode ul {
            background: var(--primary-dark);
        }

        .mode {
            position: absolute;
            right: 4rem;
        }
    }
}
