/* ---------------------- Variables -------------------- */
:root {
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size: 16px;
    --bodyCol: #0F1419;
    --stybg: #0A0E17;
    --styfg: #E5E7EB;
    --accHead: #6366F1;
    --accHeadDark: #4F46E5;
    --leftbg: #1F2937;
    --leftfg: #E5E7EB;
    --rightfg: #D1D5DB;
}
*,
*:before,
*:after {
    box-sizing: border-box;
}
html {
    font-size: 100%;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
}
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}
body {
    background-color: var(--bodyCol);
    font-family: var(--font-family);
    font-size: var(--font-size);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    height: 100%;
    color: #374151;
}

.header {
    height: 10vh;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    color: var(--styfg);
    background-color: #0A0E17;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ----------------- Nav ----------------- */
.navmenu {
    margin: 0;
    width: 100%;
}
.navmenu a {
    text-decoration: none;
}
.navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    font-size: 1.05em;
}
.navmenu ul>li {
    padding-right: 0;
    padding-left: 0;
}
.navmenu a,
.navmenu a:focus {
    color: var(--styfg);
    padding-left: 0.6em;
    padding-right: 0.6em;
    padding-top: 0.35em;
    padding-bottom: 0.35em;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.navmenu li:hover>a {
    color: white;
    background-color: var(--accHead);
}
.navmenu .active,
.navmenu .active:focus {
    color: white;
    background-color: var(--accHead);
}
/* ------------------ Content ------------------ */
.content {
    width: 100%;
    position: fixed;
    top: 10vh;
    left: 0;
    display: flex;
    justify-content: space-between;
}
/* ------------------ Right ------------------- */
.right {
    height: 90vh;
    color: var(--rightfg);
    width: 75%;
    margin-left: 25%;
    background-color: #1F2937;
    padding-bottom: 10vh;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
}
.right::-webkit-scrollbar,
.left::-webkit-scrollbar {
    display: none;
}
/* ------------------- Left ------------------ */
.left {
    width: 25%;
    background-color: var(--leftbg);
    position: fixed;
    height: 90vh;
    top: 10vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #2D3748;
    padding: 2rem 1.5rem 2vh;
    -ms-overflow-style: none;
}
.person {
    width: 100%;
}
/* Pic */
.profilePic {
    height: 11em;
    width: 11em;
    margin: auto;
    display: block;
    border: solid 0.1em #2D3748;
    border-radius: 12px;
    margin-top: 12vh;
    margin-bottom: 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profilePic:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}
/* Bio */
.bio {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-bottom: 0;
    color: var(--leftfg);
}
.bio .name {
    font-size: 2.0rem;
    font-weight: bold;
    color: #F3F4F6;
}
.label {
    font-size: 1.23rem;
    color: #D1D5DB;
}
.about-text {
    font-size: 1.13rem;
    color: #D1D5DB;
    line-height: 1.8;
}
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 1.5rem 0;
    color: #F3F4F6;
}
.sub-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.2em;
    color: #E5E7EB;
}
/* Contact */
.contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    font-size: 1em;
    margin-bottom: 0.5em;
    color: var(--leftfg);
}
.contact .item {
    padding: 0.2em;
}
.contact a {
    color: var(--leftfg);
    transition: color 0.3s ease;
}
.contact i {
    color: var(--accHead);
    transition: color 0.3s ease;
}

.contact a:hover,
.contact i:hover {
    color: var(--accHead);
}

.Social {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-bottom: 0.5em;
}
.Social .item {
    font-size: 1.15em;
    padding: 0.75em;
}
.Social i {
    color: var(--accHead);
    transition: color 0.3s ease, transform 0.3s ease;
}
.Social i:hover {
    color: var(--accHeadDark);
    transform: translateY(-2px);
}
.cv-head {
    width: 30%;
    font-size: 1.2em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: auto;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accHead) 0%, var(--accHeadDark) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}
.cv-head a {
    color: white;
}
.cv-head:hover {
    background: linear-gradient(135deg, var(--accHeadDark) 0%, var(--accHead) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
    cursor: pointer;
}
.edu-entry {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #374151;
}

.edu-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.edu-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.3rem 0 0.8rem 0;
}
.edu-date {
    font-size: 0.9rem;
    color: #9CA3AF;
    font-weight: 500;
}
.edu-location {
    font-size: 0.85rem;
    color: #6B7280;
}
.cert-entry {
    margin-bottom: 2.5rem;
}
.cert-entry:last-child {
    margin-bottom: 0;
}
.cert-list {
    padding-left: 1.5rem;
    margin: 0.8rem 0;
}
.cert-link-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}
.cert-link {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background-color: transparent;
    border: 2px solid var(--accHead);
    color: var(--accHead);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.cert-link:hover {
    background-color: var(--accHead);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    cursor: pointer;
}
.project-item {
    margin-bottom: 2.5rem;
}
.project-item:last-child {
    margin-bottom: 0;
}
.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}
.project-link {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background-color: transparent;
    border: 2px solid var(--accHead);
    color: var(--accHead);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.project-link:hover {
    background-color: var(--accHead);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    cursor: pointer;
}
h4,
h5 {
    font-weight: normal;
}
h4 {
    font-size: 0.95em;
    margin: 0.05em 0;
    color: #9CA3AF;
}

a {
    text-decoration: none;
}

.about,
.work,
.edu,
.skill,
.certifications,
.projects {
    margin: 1rem 3% 2rem;
    padding: 2rem 2.5rem;
}

.skill li {
    background: transparent;
    color: var(--accHead);
    border: 2px solid var(--accHead);
    list-style: none;
    padding: 8px 12px;
    text-align: center;
    font-size: 1em;
    letter-spacing: 0.03em;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill li:hover {
    background-color: var(--accHead);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.edu-item {
    font-size: 0.84rem;
    line-height: 1.6;
    margin-bottom: 1.3em;
    color: #D1D5DB;
}
.work-item,
.cert-item,
.proj-item {
    font-size: 0.84rem;
    line-height: 1.6;
    margin-left: 1rem;
    margin-bottom: 0.4em;
    color: #D1D5DB;
}
.proj-list {
    padding-left: 1.5rem;
    margin: 0.8rem 0;
}
.work-entry {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #374151;
}

.work-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.work-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.3rem 0 0.8rem 0;
}
.work-date {
    font-size: 0.9rem;
    color: #9CA3AF;
    font-weight: 500;
}
.work-location {
    font-size: 0.85rem;
    color: #6B7280;
}
.work-list {
    padding-left: 1.5rem;
    margin: 0.8rem 0;
}
.frameworks, .tools, .databases, .languages {
    padding-left: 0;
    display: grid;
    gap: 1.2em;
    margin-bottom: 2rem;
}
.frameworks,
.tools {
    grid-template-columns: repeat(4, 1fr);
}
.databases {
    grid-template-columns: repeat(3, 1fr);
}
.languages {
    grid-template-columns: repeat(6, 1fr);
}

.transition-main {
    transition: all 0.3s ease;
}

/* Media Queries & Responsive */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
        height: auto;
    }
    .header {
        height: auto;
        padding: 0.5rem;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .content {
        width: 100%;
        position: static;
        display: flex;
        flex-direction: column;
        height: auto;
        top: auto;
    }
    .navmenu ul {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    .navmenu ul>li {
        padding-right: 0.15rem;
        padding-left: 0.15rem;
        flex: 0 1 auto;
    }
    .navmenu a {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        white-space: nowrap;
        text-align: center;
        min-height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    .navmenu li:hover>a {
        background-color: var(--accHead);
        color: white;
    }
    .navmenu .active {
        background-color: var(--accHead);
        color: white;
        border-radius: 4px;
    }
    .left {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #2D3748;
        padding: 1.5rem;
        overflow: visible;
        margin-bottom: 0;
    }
    .left::-webkit-scrollbar {
        display: none;
    }
    .right {
        width: 100%;
        height: auto;
        position: static;
        margin-left: 0;
        background-color: #1F2937;
        padding-bottom: 2vh;
        overflow: visible;
    }
    .profilePic {
        height: 8em;
        width: 8em;
        margin-top: 1rem;
    }
    .about, .work, .edu, .skill, .certifications, .projects {
        margin-left: 1rem;
        margin-right: 1rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    .section-heading {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .sub-heading {
        font-size: 1rem;
    }
    .work-item,
    .edu-item,
    .cert-item,
    .proj-item {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .frameworks, .tools {
        grid-template-columns: repeat(2, 1fr);
    }
    .databases {
        grid-template-columns: repeat(2, 1fr);
    }
    .languages {
        grid-template-columns: repeat(3, 1fr);
    }
}