html,
body {
    transition: all ease 0.5s;
    scroll-behavior: smooth;
}

* {
    font-family: poppins;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0px;
    background-color: black;
    width: 100%;
}

.bottom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 7vh;
    background: hsla(240, 1%, 17%, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
    z-index: 5;
    box-sizing: border-box;
    border-top: 1px  solid #2b2b2cbf;
    border-right: 1px  solid #2b2b2cbf;
    border-left: 1px  solid #2b2b2cbf;
}

ul {
    display: flex;
    justify-content: center;
    color: white;
    gap: 30px;
    list-style: none;
    font-size: 15px;
    font-weight: 100;
    padding: 0px;
}

a {
    text-decoration: none;
    color: white;
    transition: all ease-out 0.1s;
}

a:hover {
    color: #ffdb70;
    filter: brightness(110%);
}

a:active {
    color: #ffdb70;
    filter: brightness(90%);
}


.main {
    width: 90vw;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 2.5vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

.main-head {
    width: 100%;
    background-color: #1e1e1f;
    box-sizing: border-box;
    border-radius: 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    padding: 10px;
    gap: 15px;
}

h1 {
    color: white;
    margin: 0px;
    font-size: 24px;     
    font-weight: 400;
}

.name{
    font-size: 22px;
}

.title {
    margin: 3px;
    margin-left: 0px;
    font-size: 12px;
    background-color: #2b2b2cbf;
    padding: 3px 8px;
    border-radius: 7px;
    box-sizing: border-box;
    font-weight: 400;
    color: white;
}

.main-image {
    border-radius: 12px;
    width: 115px;
}

.color {
    display: flex;
    gap: 5px;
}

.color-rod {
    background: linear-gradient(to right, hsl(45, 100%, 72%), hsl(35, 100%, 58%));
    height: 6px;
    border-radius: 1000px;
    margin-bottom: 16px;
    width: 60%;
}

.color-dot {
    background: linear-gradient(to right, hsl(45, 100%, 72%), hsl(35, 100%, 58%));
    height: 6px;
    border-radius: 1000px;
    margin-bottom: 16px;
    width: 10%;
}

.main-head-button:hover {
    filter: brightness(120%);
    transition: all ease 0.2s;
}

.main-head-button-over:active {
    filter: brightness(110%);
    transition: all ease 0.2s;
}

.main-head-button:active {
    filter: brightness(110%);
    transition: all ease 0.2s;
}

.hr {
    height: 1px;
    width: 100%;
    background-color: #383838;
    margin: 16x;
    justify-self: center;
}

.contacts {
    width: 100%;
    display: none;
    flex-direction: column;
    transition: 0.5s ease-in-out;
    scroll-margin-top: 20vh;
}

.contacts {
    width: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.contacts.show {
    opacity: 1;
    max-height: 500px;
    scroll-margin-top: 20vh;
}


.contacts-main {
    display: flex;
    width: 100%;
    gap: 15px;
    align-items: center;
    margin: 10px;
    margin-bottom: 20px;

}

.contacts-main-content {
    display: flex;
    flex-direction: column;
}

.contacts-title {
    margin: 0px;
    color: #d6d6d6b2;
    font-size: 13px;
    font-weight: 300;
}

.contacts-info {
    margin: 0px;
    color: white;
    font-size: 13px;
    font-weight: 300;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    border: 0px solid;
}

.contact-icon {
    width: 30px;
    height: 30px;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.contact-icon i:hover {
    opacity:1;
}

.contact-icon i {
    padding: 0 !important;
    font-size: 13px;
    color: #d6d6d6;
    opacity: 0.8;
}

i{
    padding: 15px;
    color: #d6d6d6;
    opacity: 0.8;
    transition: all ease 0.2s;
}

#i-theme{
    padding: 0px; 
    color: #ffdb70;
    opacity: 0.8;
    transition: all ease 0.2s;
}

i:hover #i-theme{
   filter: brightness(120%);
    opacity: 1;
}

#i-theme:hover {
   filter: brightness(120%);
    opacity: 1;
}

.social-icons {
    display: flex;
    align-items: center;
}

.light-mode-btn, .dark-mode-btn {
    margin-left: auto;
    font-size: 15px;
}

.about {
    width: 90vw;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 2.5vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    scroll-margin-top: 5vh;
}

.about-title {
    color: white;
    font-weight: 900;
    font-size: 20px;
}

.about-info {
    color: #d6d6d6;
    font-weight: 200;
    font-size: 14px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.about-tokens {
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.about-tokens-title {
    color: white;
    font-weight: 900;
    font-size: 15px;
}

.about-tokens-info {
    color: #d6d6d6;
    font-weight: 200;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 0px;
}

.projects, .exp, .ach {
    width: 90vw;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 2.5vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    scroll-margin-top: 10vh;
}

.projects-tokens, .exp-tokens, .ach-tokens {
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 0 0 250px; 
}

#resume .projects-tokens {
  flex-basis: auto;
  height: auto;    
}

.projects-tokens-area, .exp-tokens-area, .ach-tokens-area {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: nowrap; 
    overflow-x: auto; 
    padding-bottom: 15px; 
}

.projects-tokens-title, .exp-tokens-title, .ach-tokens-title {
    color: white;
    font-weight: 900;
    font-size: 15px;
}

.projects-tokens-info, .exp-tokens-info {
    color: #d6d6d6;
    font-weight: 200;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 0px; 
}

.projects-title, .exp-title, .ach-title {
    color: white;
    font-weight: 900;
    font-size: 20px;
}

.projects-image, .exp-image, .ach-image{
    width: 100%;

    border-radius: 12px;
}

.projects-tokens-button, .ach-tokens-button{
    margin: 0px;
    margin-left: 0px;
    font-size: 13px;
    background-color: #2b2b2cbf;
    padding: 3px 8px;
    border-radius: 7px;
    box-sizing: border-box;
    font-weight: 400;
    color: white;
    display: flex;
    justify-content: space-between;
    bottom: 0px;
}

.resume {
    width: 90vw;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 2.5vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    scroll-margin-top: 5vh;
}

img {
    border: 1px solid #2b2b2cbf;
    background-color: #1e1e1f;
    z-index: 1;
}

.slider-section {
    width: 90vw;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 2.5vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    scroll-margin-top: 5vh;

}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em;
    overflow: hidden;
}

.last-section{
    width: 90vw;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 2.5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    gap: 15px;
    scroll-margin-top: 5vh;
    overflow-x: hidden;
    margin-bottom: 10vh;
}

.last-section-info {
    color: #d6d6d6;
    font-weight: 200;
    font-size: 12px; 
}


.div1 {
    color: #ffdb70;
    font-size: 1em;
    border: 1px solid #ffdb70;
    padding: 0.5em;
    width: 0.5em;
    border-radius: 1em;
    margin: 0.2em;
    animation: scale1 5s alternate infinite;
}

.div2 {
    color: #ffdb70;
    font-size: 1em;
    border: 1px solid #ffdb70;
    padding: 0.5em;
    width: 0.5em;
    border-radius: 1em;
    margin: 0.2em;
    animation: scale2 5s alternate infinite;
}

.div3 {
    color: #ffdb70;
    font-size: 1em;
    border: 1px solid #ffdb70;
    padding: 0.5em;
    width: 0.5em;
    border-radius: 1em;
    margin: 0.2em;
    animation: scale3 5s alternate infinite;
}

.div4 {
    color: #ffdb70;
    font-size: 1em;
    border: 1px solid #ffdb70;
    padding: 0.5em;
    width: 0.5em;
    border-radius: 1em;
    margin: 0.2em;
    animation: scale4 5s alternate infinite;
}

.div5 {
    color: #ffdb70;
    font-size: 1em;
    border: 1px solid #ffdb70;
    padding: 0.5em;
    width: 0.5em;
    border-radius: 1em;
    margin: 0.2em;
    animation: scale5 5s alternate infinite;
}

.div6 {
    color: #ffdb70;
    font-size: 1em;
    border: 1px solid #ffdb70;
    padding: 0.5em;
    width: 0.5em;
    border-radius: 1em;
    margin: 0.2em;
    animation: scale6 5s alternate infinite;
}

.div7 {
    color: #ffdb70;
    font-size: 1em;
    border: 1px solid #ffdb70;
    padding: 0.5em;
    width: 0.5em;
    border-radius: 1em;
    margin: 0.2em;
    animation: scale7 5s alternate infinite;
}

.div8 {
    color: #ffdb70;
    font-size: 1em;
    border: 1px solid #ffdb70;
    padding: 0.5em;
    width: 0.5em;
    border-radius: 1em;
    margin: 0.2em;
    animation: scale8 5s alternate infinite;
}

.div9 {
    color: #ffdb70;
    font-size: 1em;
    border: 1px solid #ffdb70;
    padding: 0.5em;
    width: 0.5em;
    border-radius: 1em;
    margin: 0.2em;
    animation: scale9 5s alternate infinite;
}

.bubble {
    height: 1em;
    width: 19em;
    background: transparent;
    border: 1px solid white;
    margin: 0.2em;
    z-index: 1;
    position: absolute;
}

@keyframes scale1 {
    from {
        transform: translateY(25px);
    }

    50% {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-25px);
    }
}

@keyframes scale2 {
    from {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(25px);
    }

    to {
        transform: translateY(-25px);
    }
}

@keyframes scale3 {
    from {
        transform: translateY(-25px);
    }

    50% {
        transform: translateY(0px);
    }

    to {
        transform: translateY(25px);
    }
}

@keyframes scale4 {
    from {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(25px);
    }

    to {
        transform: translateY(-25px);
    }
}

@keyframes scale5 {
    from {
        transform: translateY(25px);
    }

    50% {
        transform: translateY(-25px);
    }

    to {
        transform: translateY(0px);
    }
}

@keyframes scale6 {
    from {
        transform: translateY(-25px);
    }

    50% {
        transform: translateY(0px);
    }

    to {
        transform: translateY(25px);
    }
}

@keyframes scale7 {
    from {
        transform: translateY(25px);
    }

    50% {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-25px);
    }
}

@keyframes scale8 {
    from {
        transform: translateY(25px);
    }

    50% {
        transform: translateY(-25px);
    }

    to {
        transform: translateY(0px);
    }
}

@keyframes scale9 {
    from {
        transform: translateY(25px);
    }

    50% {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-25px);
    }
}



@media only screen and (max-width: 650px)  {

/*     .projects-tokens-area, .ach-tokens-area, .exp-tokens-area {
        flex-direction: column;
    } */

    .projects-tokens, .ach-tokens, .exp-tokens {
        width: 100%;
    }

    h2 {
        font-size: 20px;
    }

    .title{
        font-size: 11px;
    }

    .main-head-button ,.main-head-button-over{
        right: 5vw;
        }


}

/* Slightly larger image for non-tech related links (e.g., car image) */
.related-links.non-tech-page .related-link-image {
    width: 160px;
    height: auto;
    border-radius: 10px;
}


.projects-tokens-area::-webkit-scrollbar,
.exp-tokens-area::-webkit-scrollbar,
.ach-tokens-area::-webkit-scrollbar {
    height: 8px;
}

.projects-tokens-area::-webkit-scrollbar-track,
.exp-tokens-area::-webkit-scrollbar-track,
.ach-tokens-area::-webkit-scrollbar-track {
    background: #2b2b2c;
    border-radius: 10px;
}

.projects-tokens-area::-webkit-scrollbar-thumb,
.exp-tokens-area::-webkit-scrollbar-thumb,
.ach-tokens-area::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.projects-tokens-area::-webkit-scrollbar-thumb:hover,
.exp-tokens-area::-webkit-scrollbar-thumb:hover,
.ach-tokens-area::-webkit-scrollbar-thumb:hover {
    background: #ffdb70;
}

/* Non-Tech Toggle Styles */
.mode-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 5px;
    z-index: 100;
    width: 90vw;
}

.custom-btn {
    background: linear-gradient(150deg, hsl(45, 100%, 71%) 0%, hsla(45, 100%, 20%) 50%);
    padding: 1px;
    border-radius: 0px 12px 0px 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-btn-inner {
    background-color: #202022;
    border-radius: 0px 12px 0px 12px;
    padding: 7px 15px;
    color: #ffdb70;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.custom-btn:hover .custom-btn-inner  {
    filter: brightness(120%);
}


.custom-btn.active .custom-btn-inner {
    background-color: #ffdb70;
    color: #202022;
    box-shadow: 0 0 10px rgba(255, 219, 112, 0.2);
}

.custom-btn-theme {
    background: linear-gradient(150deg, hsl(45, 100%, 71%) 0%, hsla(45, 100%, 20%) 50%);
    padding: 1px;
    border-radius: 1000px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.custom-btn-inner-theme {
    background-color: #202022;
    border-radius: 1000px;
    padding: 4px 8px;
    color: #ffdb70; 
    font-size: 11px;
    height: 23px;
    width: 15px;  
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap; 
}


.non-tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.non-tech-tag {
    background-color: #383838;
    border: 1px solid #4d4d4d;
    border-radius: 12px;
    padding: 8px 16px;
    color: #d6d6d6;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.non-tech-tag::before {
    content: "•";
    color: #ffdb70;
    margin-right: 8px;
    font-weight: bold;
}

/* Separate "What I'm Doing" section (non-tech) */
.what-im-doing {
    width: 90vw;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 2.5vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

.what-list-container {
    width: 100%;
}

.what-role {
    background-color: #2b2b2cbf;
    color: white;
    padding: 5px 20px;  
    border-radius: 7px;
    font-size: 12px; 
    display: inline-block;
}

.what-role + .what-role {
    margin-left: 5px;
}

/* "My Works" section (non-tech) */
.my-works {
    width: 90vw;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 2.5vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

.my-works-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    width: 100%;
}

.my-work-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.my-work-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2b2b2cbf;
    border: 1px solid #383838;
    border-radius: 10px;
    padding: 5px;
    box-sizing: border-box;
}

.my-work-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
}

.my-work-name {
    color: #d6d6d6;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

/* --- Related Links Section (non-tech) --- */
.related-links {
    width: 90vw;
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    box-sizing: border-box;
    border-radius: 12px;
    margin-top: 2.5vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

.related-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    width: 100%;
}

.related-link-card {
    background-color: #1e1e1f;
    border: 1px solid #2b2b2cbf;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    overflow: hidden;
}

.related-link-image-wrapper {
    width: 40px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2b2b2cbf;
    border: 1px solid #383838;
    border-radius: 50%;
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden;
}

.related-link-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    background-color: transparent;
}

/* Non-tech overrides: enlarge wrapper and allow card to grow so image is not cropped */
.related-links.non-tech-page .related-link-card {
    aspect-ratio: auto;
    min-height: 160px;
}

.related-links.non-tech-page .related-link-image-wrapper {
    width: 120px;
    height: 120px;
    aspect-ratio: 1/1;
    border-radius: 10px;
    padding: 0;
}

.related-links.non-tech-page .related-link-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.related-link-role {
    color: #d6d6d6;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-link-url {
    color: #ffdb70;
    font-size: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #2b2b2cbf;
    transition: all 0.2s ease;
}

.related-link-url:hover {
    background-color: #ffdb70;
    color: #1e1e1f;
}

.related-link-url i {
    font-size: 10px;
    padding: 0;
    color: inherit;
    opacity: 1;
}

@media only screen and (max-width: 650px) {
    .my-works-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .related-links-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 1px solid #2b2b2cbf;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    color: #ffdb70;
}
