* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kumbh Sans', monospace;
}

.navbar {
    background: #131313;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 50px;
    padding-left: 50px;
  }

#navbar__logo {
    background-color: #77fdff;
    background-image: linear-gradient(to top, #0842ff 0%, #99ffec 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

#navbar__logo img {
    height: 50px; /* Adjust the height as needed */
    width: auto;  /* Maintain aspect ratio */
}

.fa-gem {
    margin-right: 0.5rem;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}
.navbar__links {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius:4px;
    background: #f77062;
    color: #fff;
}

.button:hover {
    background: #4837ff;
    transition: all 0.3s ease;
}

.navbar__links:hover {
    color: #f77062;
    transition: all 0.3s ease;
}

@media screen and (max-width: 960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 1;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
        background: #131313;
    }

    .navbar__menu.active {
        background: #131313;
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index:99;
        height: 50vh;
        font-size: 1.6rem;
    }

    #navbar__logo {
        padding-left: 25px;
    }

    .navbar__toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: #fff;
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar__btn {
        padding-bottom: 2rem;
    }

    .button {
        display: flex;
        justify-content: center;
        align-items: cneter;
        width: 80%;
        height: 80px;
        margin: 0;
    }

    .navbar__toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2){
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
}



/* Hero section CSS */

.main {
    background-color: #141414;
}

.main__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    height: 90vh;
    background-color: #141414;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0 50px;
}

@keyframes fadeIn {
    to {
        opacity: 1; /* Final state: fully visible */
    }
}

/* This controls the styling of the main catchphrase on the page "Hi"*/
.main__content h1 {
    font-size: 4rem;
    background-color: #ff8177;
    background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
    background-size: 100%;
    transition: all .25s;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    opacity: 0; /* Initially invisible */
    animation: fadeIn 2s forwards 0s; /* Apply the fade-in animation */
}

/* This controls the styling of the main catchphrase on the page "I'm Lance"*/
.main__content h2{
    font-size: 3rem;
    background-color: #ff8177;
    background-image: linear-gradient(to top, #b721ff 0%, #21d4fd 100%);
    background-size: 100%;
    transition: all 0.45s;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    opacity: 0; /* Initially invisible */
    animation: fadeIn 2.5s forwards 1.5s; /* Apply the fade-in animation */
}

.main__content p{
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: 700;
    background-color: #ffffff;
    transition: all 0.65s;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    opacity: 0; /* Initially invisible */
    animation: fadeIn 3s forwards 3s; /* Apply the fade-in animation */
}

/* this is the GO button you see on the home and projects */
.main__btn { 
    font-size: 1rem;
    background-image: linear-gradient(to top, #f77062 0%, #fe5196 100%);
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    color: #fff;
    margin-top: 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.85s;
    outline: none;
    opacity: 0; /* Initially invisible */
    animation: fadeIn 3s forwards 1.5s; /* Apply the fade-in animation */
}

.main__btn a{
    position: relative;
    z-index: 2;
    color: #fff;
    text-decoration: none;
}

.main__btn:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #4837ff;
    transition: all 0.5s;
    border-radius: 4px;
}

.main__btn:hover {
    color: #fff;
    
}

.main__btn:hover:after {
    width: 100%;
}

.main__img--container {
    position: relative;
    width: 600px;
    height: 500px;
    overflow: hidden;
}

/* This is the main image you see on the home page */
#main__img { 
    max-height: 80%;
    max-width: 80%;
    height: auto;
    width: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#main__img.active { 
    opacity: 1;
    z-index: 1;
}

/* Mobile Responsive */
@media screen and (max-width: 768px){
    .main__container {
        display: grid;
        grid-template-columns: auto;
        align-items: center;
        justify-self: center;
        width: 100%;
        margin: 0 auto;
        height: 90vh;
    }

    .main__content {
        text-align: center;
        margin-bottom: 4rem;
    }
}






/* enable for mouse parallax effect */
/* body{
    margin: 0;
    background-color: #1d1e22;
  }
  #parallax {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url(https://raw.githubusercontent.com/oscicen/oscicen.github.io/master/img/depth-3.png), url(https://raw.githubusercontent.com/oscicen/oscicen.github.io/master/img/depth-2.png), url(https://raw.githubusercontent.com/oscicen/oscicen.github.io/master/img/depth-1.png);
    background-repeat: no-repeat;
    background-position: center;
    background-position: 50% 50%;
  }
  h1 {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: "Arial";
    text-transform: uppercase;
    opacity: .2;
    font-size: 70px;
  } */

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #131313;
    color: #c7acac;
}

h2 {
    text-align: center;
    margin-top: 20px;
    font-size: 2.5rem;
    background-image: linear-gradient(to top, #ff08fb 0%, #ff002b 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

/* Projects Section */
.projects-section {
    padding: 20px;
}

.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.project-card {
    background-color: #3c3c3c;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    max-height: 700px;
    margin: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.project-image {
    width: 100%;
    height: 70%;
    object-fit: cover; /* Ensure the image covers the area without stretching */
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: auto;
}

.project-card h3 {
    margin: 15px 0;
    font-size: 1.5rem;
}

.project-card p {
    padding: 0 15px;
    font-size: 1rem;
    color: #ffffff;
}

.project-link {
    display: inline-block;
    margin: 15px 0;
    padding: 10px 20px;
    background-color: #ff0062;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.project-link:hover {
    background-color: #ff0000;
}


/* Section dedicated for resume embed */

.pdf-preview-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdf-preview {
    width: 100%;
    max-width: 600px; /* Adjust as needed */
    height: 800px; /* Adjust as needed */
    border: none;
}

.pdf-preview-container p {
    margin-top: 10px;
    font-size: 1rem;
}

.pdf-preview-container a {
    color: #f77062;
    text-decoration: none;
    font-weight: bold;
}

.pdf-preview-container a:hover {
    color: #ffb199;
}

/* Timeline section */
.timeline-section h2 {
    font-size: 2.5rem;
    margin: 40px 0 20px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #f77062;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #131313;
    border: 4px solid #f77062;
    top: 20px;
    right: -14px;
    border-radius: 50%;
}

.timeline-item.right::after {
    left: -14px;
}

.timeline-content {
    background: #3c3c3c;
    padding: 20px;
    border-radius: 6px;
    color: #ffffff;
}

.timeline-content .date {
    color: #f77062;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-title {
    color: #ff0062;
}

@media screen and (max-width: 768px) {
    .timeline-item {
        width: 100%;
        left: 0 !important;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item::after {
        left: 18px;
    }
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(150px);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
    }
}

.timeline-content {
    background: #3c3c3c;
    padding: 20px;
    border-radius: 6px;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardSlideUp 1s ease-out both;
}
