/* element styling */
body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1B1D1C;
    display: flex;
    flex-direction: column;
}

header {
    align-self: flex-start;
    width: 100vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: fixed;
    top: 0;
    background-color: #1d1f1e;
    z-index: 1000;
}

footer {
    align-self: flex-end;
    width: 100%;
    background-color: #2E3332;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-image: linear-gradient(#1B1D1C, #2E3332);
    padding-top: 80px;
    box-sizing: border-box;
}

h1 {
    color: #F0651A;
    font-size: 4.5vw;
    font-family: "Odibee Sans", sans-serif;
    text-align: center;
    margin: 1%;
}

h2 {
    color: #F7E8DF;
    font-size: 3vw;
    font-family: "Odibee Sans", sans-serif;
    text-align: center;
    margin: 0%;
}

p,
a,
ul,
figcaption {
    color: #F7E8DF;
    font-size: 1.3vw;
    font-family: "Plus Jakarta Sans", sans-serif;
    text-align: center;
    transition: color 0.3s ease;
    transition: background-color 0.3s ease;
}

p {
    text-align: left;
}

ul {
    text-align: left;
}

footer p {
    text-align: center;
}


/* id and class styling*/
.button {
    background-color: #0DD8B6;
    font-size: 30px;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #1B1D1C;
    padding: 10px;
    border-radius: 30px;
    border: none;
    transition: color 0.3s ease;
    transition: background-color 0.3s ease;
    text-decoration: none;
    animation: slideDown 1.2s ease-out forwards;
}

.button:link,
.button:visited {
    color: #1B1D1C;
    background-color: #0DD8B6;
}

.button:hover,
.button:focus {
    background-color: #048071;
    color: #101010;
}

.button:active {
    background-color: #2EFFD5;
    color: #2E3332;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#logo {
    width: 70%;
    height: auto;
}

#title {
    flex: 1;
}

.desktop-only {
    display: block;
}

#highlight {
    flex: 5;
    height: 100%;
    background-color: #2E3332;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#highlight img {
    width: 40px;
    height: 40px;
}

#home {
    color: #F7E8DF;
    font-size: 50px;
    font-family: "Odibee Sans", sans-serif;
    text-align: center;
    margin: 0%;
}

#details {
    width: 70%;
}

#details h2 {
    font-weight: 700;
}

#details p {
    margin: 0%;
    padding: 0%;
}

.skills-lists {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.skills-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-heading {
    font-weight: 700;
}

.header-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blue {
    color: #0DD8B6;
    margin: 3% 0% 1% 0%;
    padding: 0%;
}

.orange {
    color: #F0651A;
    margin: 3% 0% 1% 0%;
    padding: 0%;
}

/* link styling */
a:link {
    color: #F7E8DF;
}

a:visited {
    color: #b9aea7;
}

a:hover,
a:focus {
    background-color: rgba(13, 216, 182, 0.5);
    color: #0DD8B6;
    transition: color 0.3s ease;
    transition: background-color 0.3s ease;
}

a:active {
    color: #F0651A;
    background-color: rgba(240, 101, 26, 0.5);
    transition: color 0.3s ease;
    transition: background-color 0.3s ease;
}


/* animation */
@keyframes slideUp {
    from {
        transform: translateY(25px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-25px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-up {
    animation: slideUp 1.2s ease-out forwards;
}

.animate-down {
    animation: slideDown 1.2s ease-out forwards;
}

h1,
h2,
p,
a,
li,
span,
img,
figcaption,
.project h2,
.project p {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.project a,
footer p {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.25s;
}

header,
header * {
    opacity: 1 !important;
    animation: none !important;
}

footer,
footer * {
    opacity: 1 !important;
    animation: none !important;
}


/* projects grid styling */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 80%;
    margin: 1%;
}

/* gallery styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 90%;
    margin: 20px auto;
}

.gallery-grid figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    text-align: center;
    margin: 0;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.gallery-grid figcaption {
    margin-top: 10px;
    font-size: 1vw;
    color: #F7E8DF;
}

.project {
    background: rgba(94, 104, 102, 0.25);
    border-radius: 20px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
    overflow: hidden;
    box-sizing: border-box;
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
}

.project h2 {
    margin-top: 0;
}


/* fonts */
.odibee-sans-regular {
    font-family: "Odibee Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.plus-jakarta-sans {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}

/* screen size styling */
@media screen and (max-width: 650px) {
    header {
        flex-wrap: wrap;
        height: auto;
        justify-content: center;
        padding: 5px 10px;
        background-color: #2E3332;
    }

    #title,
    .desktop-only {
        display: none;
    }

    #logo {
        width: 90%;
    }

    #details {
        width: 90%;
    }

    #highlight {
        flex: 1 1 100%;
        border-radius: 0px;
        margin: 0%;
        padding: 0%;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 0%;
    }

    .button {
        font-size: 2.5vw;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-section {
        flex: 1 1 33%;
        justify-content: center;
    }

    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 8%;
    }

    .project {
        grid-template-columns: 1fr;
        border-radius: 20px;
        height: auto;
        align-items: center;
    }

    .project>div:first-child {
        border-radius: 20px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .project img {
        width: 60%;
        height: auto;
        object-fit: contain;
        border-radius: 16px;
        display: block;
        margin: 0 auto;
    }

    
    h1 {
        font-size: 7.5vw;
    }

    h2 {
        font-size: 7.5vw;
    }

    p,
    a,
    ul {
        font-size: 2.7vw;
    }

    .header-section img {
        max-width: 20px;
        height: auto;
    }

    .desktop-only {
        display: none;
    }

    #details {
        margin-top: 8%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 95%;
    }

    .gallery-grid figcaption {
        font-size: 2.5vw;
    }

    .gallery-grid img {
        border-radius: 20px;
    }

    .skills-lists {
        grid-template-columns: 1fr;
    }

    .skills-column {
        width: 100%;
    }
}