body {
    font-family: "Roboto";
    background: #f8f9fa;
    color: #222;
    transition: background 0.1s cubic-bezier(.4,0,.2,1), color 0.1s;
    margin: 0;
    
}

body.dark-mode {
    background: url('assets/darkModeBG.png') center/cover no-repeat fixed, #181a20;
    color: #f1f1f1;
    transition: background 0.8s cubic-bezier(.4,0,.2,1), color 0.4s;
    position: relative;
}

body.dark-mode::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: inherit;
    backdrop-filter: blur(200px);
    -webkit-backdrop-filter: blur(200px);
    pointer-events: none;
}

#darkModeToggle {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 100;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px #0001;
    cursor: pointer;
    transition: background 0.3s;
}
body.dark-mode #darkModeToggle {
    background: #23272f;
    color: #ffe066;
}

img {
    width: 50px;
    height: auto;
    border-radius: 8px;
}

.introduction {
    display: flex;
    border-radius: 15px;
    justify-self: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto 2rem auto;
    width: 80%;
    max-width: 700px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 24px #0002;
}
body.dark-mode .introduction {
    background-color: rgba(35, 39, 47, 0.7);
}

.profilePhoto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.profilePhoto img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    -o-object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px #0002;
}

.aboutMe h2 {
    margin-bottom: 0.5rem;
}

.myProjects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem 2.5rem;
    justify-content: center;
    align-items: start;
    margin: 2rem auto;
    max-width: 1100px;
    width: 100%;
    justify-items: center;
}

@media (max-width: 700px) {
    .myProjects {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2rem;
    }
}

.project {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0001;
    padding: 1.5rem;
    min-width: 0;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: background 0.4s;
    box-sizing: border-box;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.55);
}
body.dark-mode .project {
    background-color: rgba(35, 39, 47, 0.7);
}

.project img[alt="Project Image"] {
    width: 100%;
    height: 140px;
    object-fit: cover;
    -o-object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.project span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project h6 {
    margin: 0 0.5rem 0 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.project button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
}

.project button img,
.project button svg
{
    object-fit: fill;
}

.project-header-icons button:first-child img.projectIcons {
    border-radius: 50%;
    border: 1px solid #000;
}

.projectIcons{
    width: 100%;
}

body.dark-mode .project button:hover {
    background: #23272f;
}

footer {
    position: static;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    margin: 0px;
    padding: 2rem 4rem 2rem 4rem;
    background: #23272f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    z-index: 100;
}
body.dark-mode footer {
    background: #23272f;
}
.footer-left {
    font-size: 1rem;
    color: #eee;
    opacity: 0.8;
    font-weight: 500;
}
body.dark-mode .footer-left {
    color: #eee;
}
.footer-socials {
    display: flex;
    gap: 1.5rem;
}
footer button {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
footer button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
footer button:hover {
    background: #23272f;
}
body.dark-mode footer button:hover {
    background: #23272f;
}

h3 {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cool-transition {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), color 0.3s;
    will-change: transform, color;
    perspective: 400px;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.project-header h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.project-header-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.myWork-header-container {
    width: 100%;
    max-width: 70%;
    margin: 0 auto 2rem auto;
    padding: 1rem 2rem;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.myWork-header-container h3 {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

.timeline-section-container {
    width: 100%;
    max-width: 70%;
    margin: 0 auto 2rem auto;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(6px) saturate(180%);
    -webkit-backdrop-filter: blur(6px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 24px #0002;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    overflow-x: visible;
}

body.dark-mode .timeline-section-container {
    background-color: rgba(35, 39, 47, 0.7);
}

.timeline-section-container::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 240px;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #23272f 0%, #ffe066 100%);
    z-index: 0;
    border-radius: 2px;
    opacity: 0.2;
    pointer-events: none;
}

.timeline-gallery {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12rem;
    margin: 2rem 0 3rem 0;
    max-width: 900px;
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding-bottom: 2.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.timeline-gallery::-webkit-scrollbar {
    display: none;
}
@media (max-width: 900px) {
    .timeline-gallery {
        gap: 6rem;
    }
    .timeline-item {
        width: 120px;
        min-width: 120px;
    }
}
@media (max-width: 600px) {
    .timeline-gallery {
        flex-direction: row;
        gap: 3rem;
        max-width: 100vw;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .timeline-item {
        width: 90px;
        min-width: 90px;
    }
    .timeline-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 550px) {
    .introduction {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        width: 85%;
    }
    .profilePhoto {
        align-items: center;
    }
    .aboutMe {
        text-align: center;
    }
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    width: 180px;
    min-width: 180px;
    position: relative;
}
.timeline-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 12px #0002;
    background: #fff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
body.dark-mode .timeline-img {
    border: 4px solid #23272f;
    background: #23272f;
}
.timeline-item p {
    text-align: center;
    font-size: 1rem;
    margin: 0;
    margin-top: 0.5rem;
}