:root {
    --clr-1: #052b2f;
    --clr-2: #073438;
    --clr-3: #0e4b50;
    --clr-4: #2d8f85;
    --clr-5: #637c54;
    --clr-6: #07383c;
    --clr-7: #2c6065;
}

html {
    scroll-behavior: smooth;
    font-family: "Roboto Flex"
}

body {
    background-color: rgb(0, 0, 0);
    /* background-color: rgb(0, 3, 15); */
    color: white;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 60%;
    padding: 10px;
    /* nav is fixed so it doesn't expand */
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 110%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    backdrop-filter: blur(6px);
    z-index: 1000;
    transition:
        width 0.35s ease,
        border-radius 0.35s ease,
        background-color 0.35s ease,
        top 0.35s ease,
        transform 0.35s ease;
}

nav.nav-scrolled {
    /* when scrolled, pin to top and expand to full width */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.88);
}

.navbar {
    color: #F5F5F5;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    margin: 6%;
    font-weight: 300;
    /* z-index: 1; */
}

/* On hover, change color and move up */
.navbar:hover {
    color: transparent;
    /* background: linear-gradient(-45deg, #216c5e, var(--clr-4), #4db7a6, #6ff0db, #4db7a6, var(--clr-4), #216c5e); */
    /* background: linear-gradient(-45deg, #1d4ed8, #3b82f6, #6366f1, #8b5cf6, #6366f1, #3b82f6, #1d4ed8); */
    /* background: linear-gradient(-45deg, #4b5563, #9ca3af, #f3f4f6, #ffffff, #f3f4f6, #9ca3af, #4b5563); */
    /* background: linear-gradient(-45deg, #005582, #0369a1, #0ea5e9, #38bdf8, #06b6d4, #38bdf8, #0ea5e9, #0369a1, #005582); */
    background: linear-gradient(-45deg, #4a3b2c, #755f4a, #a38a70, #d5c6af, #a38a70, #755f4a, #4a3b2c);
    background-clip: text;
    /* Clip the gradient to the text */
    -webkit-background-clip: text;
    /* For WebKit browsers (Chrome, Safari) */
    background-size: 400% 400%;
    animation: gradient 2s ease infinite;
    transform: translateY(-2px);
    /* Move up */
}

#about {
    scroll-margin-top: 55px;
    padding-top: 20px;
    margin-top: -20px;
}

#projects {
    scroll-margin-top: 55px;
    padding-top: 20px;
    margin-top: -20px;
}




@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h1 {
    text-align: center;
    font-size: 850%;
    height: calc(100vh - 50px - 11vh - 200px);
    /* padding-top: 200px; */
    padding-top: 25vh;
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.1em solid #F5F5F5;
    letter-spacing: 0.015em;
    /* font-family: monospace; */
    /* font-family: 'JetBrains Mono';
    font-weight: 900; */
    font-family: 'Fira Code';
    font-weight: 600;

    animation:
        typing 1.7s steps(13, end) forwards,
        blink-caret 0.75s step-end infinite;
    width: 0;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 13ch
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #F5F5F5
    }
}

#linkedin {
    filter: invert(1);
    width: 60px;
    transition: transform 0.2s ease;
}

#linkedin:hover {
    box-shadow: none;
    transform: translateY(-6px);
}

#githubLogo {
    width: 60px;
    transition: transform 0.2s ease;
    color: none;
}

#githubLogo:hover {
    transform: translateY(-6px);
    box-shadow: none;
}

.social-icons {
    text-align: center;
    margin-top: 1rem;
}

.social-icons a {
    text-decoration: none;
    /* outline: none; */
}

#myVideo {
    /* change to absolute to just have it as the intro */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    /* padding-top: 20vh; */
}

.video-overlay {
    /* change to absolute to just have it as the intro */
    position: absolute;
    top: 0;
    left: 0;
    /* width: 100vw;
    height: 100vh; */
    width: calc(100vw);
    /* width: calc(100vw - 15px); */
    height: calc(100vh);
    /* background: rgba(0, 0, 0, 0.7); */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 1));
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8), rgba(0, 3, 15, 1)); */
    z-index: -1;
}

.transition {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* height: 100px; */
    height: 15%;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(7, 52, 56, 1)); */
    z-index: 2;
}


h2 {
    /* text-align: center; */
    font-size: 230%;
    color: white;
    width: 90%;
    margin: auto;
    margin-bottom: 2%;
}

hr {
    width: 90%;
}

/* Reveal animation for project table rows (matches timeline-item) */
#projectTable tr {
    opacity: 0;
    transform: translateY(20px) scale(0.99);
    transition: opacity 0.6s cubic-bezier(.2, .9, .2, 1) var(--delay, 0ms),
        transform 0.6s cubic-bezier(.2, .9, .2, 1) var(--delay, 0ms);
    will-change: opacity, transform;
}

#projectTable tr.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

table {
    width: 92.5%;
    margin: auto;
}

#googleAnsatz {
    background-image: url(images/googleAnsatzImages/mainImage.png);
    background-size: cover;
    background-position: 50% 50%;
    background-color: rgba(0, 0, 0, 0.6);

}

#ntfsFile {
    background-image: url(images/NTFSFileImages/mainpage.png);
    background-color: rgba(0, 0, 0, 0.6);

}

#soundscribe {
    background-image: url(images/SoundScribeImages/third.png);
    background-size: cover;
    background-position: 50% 60%;
    background-color: rgba(0, 0, 0, 0.6);

}

#strum {
    background-image: url(images/strumLogo.png);
    background-size: cover;
    background-position: 50% 80%;
    background-color: rgba(0, 0, 0, 0.6);

}

#teamup {
    background-image: url(images/TeamUpImages/mainPic.png);
    background-size: cover;
    background-position: 50% 60%;
    background-color: rgba(0, 0, 0, 0.6);
}

#blankslate {
    background-image: url(images/BlankSlateImages/MainPic.png);
    background-size: cover;
    background-position: top;
    background-color: rgba(0, 0, 0, 0.6);
}

#nandbug {
    background-image: url(images/VMStack.png);
    background-size: cover;
    background-position: 50% 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

#ravage {
    background-image: url(images/ravage.png);
    background-size: 130%;
    background-position: 50% 60%;
    background-color: rgba(0, 0, 0, 0.5);
}

.projDiv {
    height: 15rem;
    background-blend-mode: multiply;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px;
    margin: 10px;
}

.projDiv:hover {
    transform: translateY(-8px);
    /* box-shadow:
        0 0 6px var(--clr-4),
        0 0 12px 4px var(--clr-4); */
    box-shadow:
        0 0 8px #755f4a,
        0 0 16px 2px #bea993;
}



.projLink {
    text-decoration: none;
    color: #F5F5F5;
}

/* .tools {
    display: inline-block;
    background-color: #1f1b18;
    border-radius: 50px;
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 1%;
    padding-bottom: 1%;
    margin: 3px;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: smaller;
} */
.tools {
    display: inline-block;
    background-color: rgba(20, 18, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50px;
    padding-left: 3%;
    padding-right: 3%;
    padding-top: 1%;
    padding-bottom: 1%;
    margin: 3px;
    font-weight: 200;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: smaller;
}

#toolContainer {
    display: block;
    margin-bottom: 4%;
}

h3 {
    margin-top: 3.5em;
    font-size: 1.2rem;
}

.timeline {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10%;
    bottom: 15%;
    width: 3px;
    background: white;
    transform: translateX(-50%);
}

.pill-shape {
    /* width: clamp(650px, 3vw, 30px); */
    /* height: clamp(60px, 20vh, 180px); */
    width: 650px;
    min-height: 180px;
    background-color: white;
    border-radius: 40px;
    display: flex;
    align-items: center;
    /* padding-left: 25px 50px; */
    box-sizing: border-box;
    /* margin-bottom: 5%; */
}

#experience {
    scroll-margin-top: 55px;
}

.experienceContent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px;
}

.experienceContent h4 {
    margin: 5px 0 10px 0;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 400;
}

.experienceDate {
    display: inline-block;
    color: #d1d5db;
    font-size: 0.85rem;
    margin: 0 0 12px 0;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.113);
    border: 1px solid rgba(255, 255, 255, 0.091);
    border-radius: 9999px;
    white-space: nowrap;
    line-height: 1;
    align-self: flex-start;
}

.experienceDescription {
    color: #f5f5f5;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 500px;
    margin: 0 0 15px 0;
}

#cipCont,
#cipLogoCont {
    background: linear-gradient(-45deg, #B13A3A, #8C1515, #5F0D0D);
    background-size: 400% 400%;
    -webkit-background-size: 400% 400%;
    animation: gradient 6s linear infinite;
    -webkit-animation: gradient 6s linear infinite;
    transition: all 0.2s ease;
    border: 6px solid #175E54;
}

#cipCont:hover,
#cipLogoCont:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 6px #175E54,
        0 0 12px 4px #175E54;
}

#wiuCont,
#wiuLogoCont {
    background: linear-gradient(-45deg, #8B63BF, #663399, #4A256F);
    background-size: 400% 400%;
    -webkit-background-size: 400% 400%;
    animation: gradient 4s linear infinite;
    -webkit-animation: gradient 4s linear infinite;
    transition: all 0.2s ease;
    border: 6px solid #FFCC00;
}

#wiuCont:hover,
#wiuLogoCont:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 6px #FFCC00,
        0 0 12px 4px #FFCC00;
}

#absopCont,
#absopLogoCont {
    background: linear-gradient(-45deg, #0e0e0e);
    background-size: 400% 400%;
    -webkit-background-size: 400% 400%;
    animation: gradient 5s linear infinite;
    -webkit-animation: gradient 5s linear infinite;
    transition: all 0.2s ease;
    border: 6px solid #fcfaf9;
}

#absopCont:hover,
#absopLogoCont:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 6px #fcfaf9,
        0 0 12px 4px #fcfaf9;
}

#googleCont,
#googleLogoCont {
    /* background: linear-gradient(-45deg, #4285F4, #1A73E8, #174EA6); */
    background: #f5f5f5;
    /* background: linear-gradient(-45deg, #245edb, #0e3ec1, #1D2E8F); */
    background-size: 400% 400%;
    -webkit-background-size: 400% 400%;
    animation: gradient 5s linear infinite;
    -webkit-animation: gradient 5s linear infinite;
    transition: all 0.2s ease;
    border: 6px solid #3b7dee;
    /* border: 6px solid #f9ab00; */
}

#googleCont:hover,
#googleLogoCont:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 6px #3b7dee,
        0 0 12px 4px #3b7dee;
}

.logoCont {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
}

.logoCont img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* object-position: 80% 50%; */
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 130px;
    margin: 10% 0;
    position: relative;
}

/* Timeline reveal animation */
.timeline-item {
    opacity: 0;
    transform: translateY(30px) scale(0.99);
    transition: opacity 0.6s cubic-bezier(.2, .9, .2, 1) var(--delay, 0ms),
        transform 0.6s cubic-bezier(.2, .9, .2, 1) var(--delay, 0ms);
    will-change: opacity, transform;
}

.timeline-item.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-item.left {
    flex-direction: row;
}

.timeline-item.right {
    flex-direction: row-reverse;
}

#firstTimelineItem {
    margin-top: 1.5%;
}

.experienceContent h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
}

h4 {
    margin: 0px;
}

.aboutMeCont {
    width: 80%;
    height: 390px;
    overflow: hidden;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: 6px solid #76604a;
    /* border: 6px solid #f2476c */
    filter: brightness(0.8);
}

#aboutMe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
    transform: scale(1);
}

.aboutMeCont:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 8px #755f4a,
        0 0 16px 2px #bea993;
    filter: brightness(1);
}

#contact {
    margin-top: 2%;
    text-align: center;
    scroll-margin-top: 55px;
}

.contactLinksCont {
    margin: auto;
    width: 40%;
    text-align: center;
}

.contactLinksCont a {
    color: #3b7dee;
}

footer {
    margin-top: 2%;
    text-align: center;
    color: #909192;
}

#rowOne {
    height: 120px;
    overflow: hidden;
    width: 90%;
    margin: auto;
}

#rowTwo {
    height: 120px;
    overflow: hidden;
    width: 90%;
    margin: auto;
}

#rowOne .marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    height: 100%;
    animation: leftRoll 12s linear infinite;
}

#rowTwo .marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    height: 100%;
    animation: rightRoll 12s linear infinite;
}

.row1 {
    width: 150px;
    /* height: 15px; */
    margin: 30px 0px 0 0;
    flex: 0 0 auto;
}

.row2 {
    width: 150px;
    /* height: 15px; */
    margin: 30px 0px 0 0;
    flex: 0 0 auto;
}

.row1 img {
    width: 50%;
}

.row2 img {
    width: 50%;
}

@keyframes leftRoll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes rightRoll {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

#tools {
    margin-top: 2.5%;
    scroll-margin-top: 55px;
}

.toolImg {
    transition: all 0.2s ease;
    border-radius: 22px;
}

.toolImg:hover {
    box-shadow:
        0 0 8px #755f4a,
        0 0 16px 2px #bea993;
}

/* Modal Popup Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(184, 115, 51, 0.15);
    animation: slideIn 0.3s ease;
    z-index: 1001;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: #b87333;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 1002;
}

.modal-close:hover {
    color: #bfa282;
}

.modal-body {
    padding: 32px 28px;
    color: #e5e7eb;
}

.modal-body h2 {
    margin: 0 0 16px 0;
    color: #bfa282;
    font-size: 1.5rem;
    line-height: 1.3;
}

.modal-body p {
    margin: 0 0 20px 0;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-bullets {
    display: none;
    margin: -4px 0 22px 0;
    padding-left: 1.25rem;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.55;
}

.modal-bullets li {
    margin-bottom: 8px;
}

.modal-bullets li::marker {
    color: #bfa282;
}

#modalTools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-tool-tag {
    display: inline-block;
    /* color: #bfa282; */
    color: white;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    /* background: rgba(184, 115, 51, 0.1);
    border: 1px solid rgba(184, 115, 51, 0.2); */
    background-color: rgba(20, 18, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    white-space: nowrap;
}

.modal-button {
    display: inline-block;
    padding: 10px 20px;
    /* background: rgba(133, 83, 36, 0.264); */
    /* color: #bfa282; */
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    /* border: 1px solid rgba(184, 115, 51, 0.3); */
    background-color: rgba(20, 18, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-button:hover {
    background: rgba(184, 115, 51, 0.5);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.2);
}

#modalImg {
    width: 90%;
    margin: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.slide-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: none;
    color: white;
    border: none;

    font-size: 28px;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

.slide-btn:hover {
    color: rgb(120, 120, 120);
}