@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --color-primary: #3b80da;
    --color-primary-dark: #1b59e0;
    --color-primary-light: #c5d7ff;
    --color-primary-glow: #84a2cd50;
    --color-text: #000000;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-input: #f5f5f5;
    --color-border: #b0b0b0;
    --color-shadow: #e4dfdf;    
}

.tag-js        { background-color: #f0c200; color: #000; }
.tag-html      { background-color: #e34c26; }
.tag-python    { background-color: #3572a5; }
.tag-flask     { background-color: #919dad; }
.tag-api       { background-color: #ac71dd; }
.tag-react     { background-color: #61dafb; color: #000; }
.tag-ts        { background-color: #3178c6; }
.tag-cpp       { background-color: #00599c; }
.tag-libraries { background-color: rgb(66, 217, 52); }

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    min-height: 100vh;
    font-size: 18px;
    margin: 0;
    background-image: linear-gradient(to bottom, rgb(255, 255, 255) 0%, #cad5e7 100%);
    background-repeat: no-repeat;
    font-family: 'PT Sans';
    /* scroll-snap-type: y mandatory; */
}

header {
    display: flex;
    flex-direction: row;
    padding: 0px 60px;
    width: 100%;
    background-color: var(--color-primary-light);
}

#logo-header {
    width: 60px;
    height: 60px;
    /* font-weight: 600;
    text-decoration: none; */
    background-color: #6a8ad5;
    border: 1px solid var(--color-primary-glow);
    border-radius: 999px;
    margin: 4px 0px 0px 0px;
}

#logo-header:hover {
    background-color: var(--color-primary-dark);
}

.header-nav-container {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-left: auto;
    gap: 40px;
}

.header-nav-container a {
    text-decoration: none;
    color: rgb(0, 0, 0);
}

.header-nav-container a:hover {
    color: var(--color-primary-dark);
}

.header-nav-container a:active {
    transform: scale(0.98)
}

.line-element {
    border-top: 2px solid rgba(98, 113, 120, 0.347);    
    margin: 4rem 2rem 1rem 2rem;
}

.profile-pic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgb(151, 151, 151);
    box-shadow: 0px 0px 20px var(--color-border);
    overflow: hidden;
    animation: bubblePop 0.6s ease-in-out forwards;
    margin-bottom: 0.5rem;
}

#profile-pic{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes bubblePop {
    0% { opacity: 0; scale: 0.8; }
    40% { opacity: 1; scale: 1.1; }
    100% { opacity: 1; scale: 1; }
}

.profile-bio-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6.5rem 2rem;
    /* min-height: 100vh; */
}

#profile-heading {
    font-size: 3.5rem; 
    font-weight: 600;
    margin: 0 0 4px 0;
}

#typing-name {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    color: rgb(26, 111, 201);
    font-size: 3.5rem;
    font-weight: 700;
    border-right: 3px solid black;
    width: 0px;
    vertical-align: bottom;
    animation: typing 1s steps(6) 0.5s forwards, blink 1s step-end infinite;
}

#profile-interests {
    font-size: 1.25rem;
    font-style:italic;
    margin: 0 0 4px 0;
}

#profile-texts {
    font-size: 1.5rem;
    margin: 0 0 4px 0;
}

.short-bio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
}

.social-links a{
    width: 60px;
    height: 60px;
    border: 2px solid rgb(175, 172, 172);
    border-radius: 100%;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    line-height: 0;
    font-size: 0;
}

.social-links img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: middle;
    transform: scale(1.05);
}

.social-links a:hover {
    border-color: var(--color-primary);
    box-shadow: 0px 0px 4px 4px var(--color-primary-glow);
    transform: scale(1.01)    
}

/* #electronic-text {
    color: rgb(41, 141, 255); 
} */

@keyframes typing {
    from { width: 0; }
    to { width: 5ch;}
}

@keyframes blink {
    50% { border-color: transparent; }
}

.content-section {
    display: flex;
    flex-direction: column;
}

.skills-section,
.education-section,
.projects-section,
.experience-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 40px;
}

/* Skills Section */

.skills-list-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 75%;
    height: 400px;
    background-color:#2e2d2d;
    border: 4px solid rgb(67, 65, 65);
    border-radius: 10px;
    overflow: hidden;
}

.terminal-topbar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 28px;
    flex-shrink: 0;
    background-color: rgb(67, 65, 65);
    margin: 0;
}

.terminal-main {
    flex: 1;
    width: 100%;
    padding: 12px;
    overflow-y: auto;
}

.topbar-circle {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    margin: 4px;
}

.terminal-main {
    width: 100%;
    height: 100%;
}

.skills-header {
    font-family: 'JetBrains Mono';
    color: #eeeded;
    margin: 4px 0;
}

.skills-text p{
    font-family: 'JetBrains Mono';
    color: #eeeded;
    margin: 8px 0;
}

/* End of Skills Section */

/* Education Section */

.gantt-container {
    width: 100%;
}

.gantt-chart {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gantt-years {
    display: flex;
    justify-content: space-between;
    padding-left: 200px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 600;
    gap: 20px;
}

.gantt-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gantt-label {
    max-width: 184px;
    flex-shrink: 0;
    text-align: right;
}

.gantt-label .gantt-school {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
}

.gantt-label .gantt-degree {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

.gantt-track {
    flex: 1;
    height: 20px;
    background-color: rgba(0,0,0,0.06);
    border: 1px solid var(--color-primary-glow);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.gantt-bar {
    position: absolute;
    left: var(--start);
    width: 0%;
    height: 100%;
    background-color: var(--color);
    border-radius: 999px;
}

@keyframes ganttGrow {
    from { width: 0%; }
    to   { width: var(--width); }
}

/* End of Education Section */

/* Project Section */

.grid-project-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px;
    width: 90%;
}

.indiv-project-container {
    position: relative;
    width: 100%;
    min-height: 120px;
    margin: 0;
    padding: 60px;
    padding-bottom: 48px;
    background-color: #ffffff;
    border-radius: 60px;
    border: 1px solid rgb(67, 67, 68);
    box-shadow: 0px 0px 16px 4px var(--color-shadow);
    transition: all 0.3s ease-out;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    color: white;
}

.project-screenshot-container {
    width: 90%;
    height: 200px;
}

.project-screenshot {
    width: 90%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin: 12px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    overflow-y: scroll;
}

/* .project-screenshot:hover {
    transform: translateY(-5px);
} */

.project-links {
    position: absolute;
    bottom: 20px;
    right: 60px;
    display: flex;
    gap: 16px;
}

.project-link {
    position: static;
    font-weight: 600;
    color: var(--color-primary);
    transition: all 0.3s ease-out;
}

.project-link:hover {
    color: var(--color-primary-dark);
}

.project-link:active {
    transform: translateY(-5px)
}

/* End of Project Section */

/* Experience Section */

.indiv-experience-container {
    width: 60%;
    height: 50%;
    min-height: 120px;
    gap: 16px;
    display: flex;
    flex-direction: row;
    margin: 12px 0px;
    padding: 60px;
    background-color: #ffffff;
    border-radius: 60px;
    border: 1px solid #434344;
    box-shadow: 0px 0px 16px 4px var(--color-shadow);

    transition: all 0.3s ease-out;
}

.experience-picture-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 175px;
    height: auto;
    max-height: 175px;
    border-radius: 50%;
    border: 2px solid rgb(151, 151, 151);
    box-shadow: 0px 0px 20px var(--color-border);
    overflow: hidden;
    margin-left: auto;
}

.experience-picture-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* End of Experience Section */

/* Content Section Extras */

.indiv-project-container:hover,
.indiv-experience-container:hover {
    border-color: var(--color-primary);
    box-shadow: 0px 0px 8px 8px var(--color-primary-glow);
    /* transform: scale(1.01) */
}

.indiv-experience-container h2,
.indiv-project-container h2 {
    margin: 0 0 4px 0;
}

.indiv-experience-container h3,
.indiv-project-container h3 {
    margin: 0 0 4px 0;
    color: var(--color-text-muted);
}

.indiv-project-container span {
    color: #000000;
    margin: 0 0 4px 0;
}

.ex-pro-desc{
    margin: 0;
}

/* End of Content Section Extras */

/* Connect Forms*/

.get-connect-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 240px);
    /* margin-top: 4rem; */
}

.get-connect-form {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

#let-connect-text {
    width: 100%;
    text-align: center;
    font-size: 40px
}

.get-connect-form p {
    font-size: 16px;
}

.get-connect-form .text-input {
    width: 100%;
    font-size: 16px;
    border: 2px solid rgb(71, 82, 87);
    border-radius: 8px;
    background-color: whitesmoke;
    padding: 8px;
}

/* Start of Custom Dropdown Box */

.get-connect-form .custom-select {
    position: relative;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
}

.custom-select-selected {
    border: 2px solid rgb(71, 82, 87);
    border-radius: 8px;
    background-color: whitesmoke;
    padding: 8px 12px;
    transition: all 0.3s ease;

    /* For Dropdown */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select-selected::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-select-selected:hover {
    border-color: #3b80da;
}

.custom-select.open .custom-select-selected {
    border-color: #3b80da;
    box-shadow: 0 0 0 3px var(--color-primary-glow);
    border-radius: 8px 8px 0 0;
}

.custom-select.open .custom-select-selected::after {
    transform: rotate(180deg);
}

.custom-select-options {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
    background-color: whitesmoke;
    border: 2px solid #3b80da;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 999;
}

.custom-select.open .custom-select-options {
    max-height: 200px;
    opacity: 1;
}

.custom-select-options li {
    padding: 8px 12px;
    transition: background-color 0.2s ease;
}

.custom-select-options li:hover {
    background-color: #c5dbff;
}

/* End of Custom Dropdown Box */

.get-connect-form textarea {
    width: 100%;
    font-size: 16px;
    border: 2px solid rgb(71, 82, 87);
    border-radius: 8px;
    background-color: whitesmoke;
    resize: none;
    padding: 8px;
}

.get-connect-form #submit-message {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
    background-color: var(--color-primary);
    color: rgb(255, 255, 255);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.25s ease-out;
    cursor: pointer;
}

.get-connect-form #submit-message:hover {
    background: rgb(38, 102, 196);
    transform: translateY(-2px);
}

.get-connect-form #submit-message:active {
    transform: scale(0.98);
}

.get-connect-form .text-input:focus,
.get-connect-form textarea:focus {
    outline: none;
    border-color: #3b80da;
    box-shadow: 0 0 0 4px var(--color-primary-glow);
}

/* Footer */

.footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: var(--color-primary-light);
    padding: 20px 60px;
    border: 1px solid rgb(176, 176, 176);
    border-radius: 1px;
    box-sizing: border-box;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    margin: 0;
}

.footer-links a:hover {
    color: #1b59e0;
}

.footer-links a:active {
    transform: scale(0.98)
}

/* Scrollbar */

::-webkit-scrollbar {
    scrollbar-width: thin;
}

::-webkit-scrollbar-track {
    background: rgb(37, 39, 45);
}

::-webkit-scrollbar-thumb {
    background: rgb(109, 149, 210);
    border-radius: 999px;
    border: 3px solid #2e2d2d;
}

::-webkit-scrollbar-thumb:hover {
    background: #5b7db1;
}

/* Responsiveness */

/* Tablet */
@media (max-width: 768px) { 
    header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .header-nav-container {
        margin: 0;
        justify-content: center;
        text-align: center;
        gap: 20px;
    }


    #logo-header {
        display: none;
    }

    .profile-bio-section {
        flex-direction: column;
        gap: 2rem;
        padding: 40px 20px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .skills-list-container {
        width: 100%;
    }

    .terminal-topbar {
        display: flex;
        align-items: center;
        width: 100%;
        height: 28px;
        flex-shrink: 0;
        background-color: rgb(67, 65, 65);
        margin: 0;
    }

    .terminal-main {
        flex: 1;
        width: 100%;
        padding: 12px;
        overflow-y: auto;
    }

    .topbar-circle {
        width: 10px;
        height: 10px;
        border-radius: 99px;
        margin: 4px;
    }

    .terminal-main {
        width: 100%;
        height: 100%;
    }

    .skills-header{
        font-size: 16px;
        word-break: break-word;
    }
    
    .gantt-chart {
        width: 100%;
    }

    .gantt-container {
        width: 95%;
    }

    .gantt-years {
        padding-left: 120px;
        font-size: 11px;
        gap: 0;
        justify-content: space-between;
    }
    
    .gantt-row {
        gap: 8px;
    }

    .gantt-label {
        width: 100px;
        flex-shrink: 0;
    }

    .gantt-label .gantt-school {
        font-size: 12px;
    }

    .gantt-label .gantt-degree {
        font-size: 11px;
    }

    .gantt-track {
        height: 16px;
    }

    .grid-project-section {
        grid-template-columns: 1fr;
    }

    .indiv-project-container {
        width: 90%;       
    }

    .indiv-experience-container {
        display: flex;
        flex-direction: column-reverse;
        width: 90%;
    }

    .experience-picture-container {
        margin-left: 0;
        margin: 0 auto;
    }

    .experience-section {
        margin-top: 2rem;
    }
    
    .get-connect-section {
        align-items: center;
    }

    #let-connect-text {
        width: 90%;
        text-align: center;
        font-size: 40px
    }

    .get-connect-form .custom-select {
        width: 100%;
    }

    .footer-section {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
    }

    .footer-links {
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) { 
    body {
        font-size: 14px;
    }

    .profile-bio-section {
        gap: 1.5rem;
        padding: 20px 16px;
    }

    .profile-pic-container {
        max-width: 200px;
        max-height: 200px;
    }

    .skills-header {
        font-size: 12px;
    }

    .gantt-years {
        padding-left: 90px;
        font-size: 10px;
    }

    .gantt-label {
        width: 80px;
    }

    .gantt-label .gantt-school {
        font-size: 10px;
    }

    .gantt-label .gantt-degree {
        font-size: 8px;
    }

    .indiv-project-container {
        width: 95%;
        flex-direction: column;
        padding: 16px;
    }

    .indiv-experience-container {
        flex-direction: column;
        width: 95%;
        padding: 16px;        
    }

    .experience-picture-container {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .get-connect-section {
        align-items: center;
    }

    #let-connect-text {
        width: 70%;
        text-align: center;
    }

    .get-connect-form {
        width: 90%;
    }

    .get-connect-form .custom-select {
        width: 100%;
    }

    .get-connect-form .text-input,
    .get-connect-form textarea {
        font-size: 14px;
    }

    .footer-section {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
    }

    .footer-links {
        gap: 20px;
    }
}