/*General*/
*{
    margin: 0;
    padding: 0;
}
html{
    scroll-behavior: smooth;
}
p{
    color: rgb(85, 85, 85);
}

/*Transition*/
a, .btn{
    transition: all 300ms ease;
}

/*Navigation*/
nav, .nav-links{
    display: flex;
}
nav{
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}
.nav-links{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}
#desktop-nav{
    color: white;
    height:100px;
}
a{
    color: white;
    text-decoration: none;
    text-decoration-color: white;
}
a:hover{
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181,181,181);
}
.logo{
    font-size: 2rem;
}

.logo:hover{
    cursor: default;
}

/*Menu*/
#nav{
    display: none;
    color: white;
    height:100px;
}
.menu{
    position: relative;
    display: inline-block;
}
.icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}
.icon span{
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}
.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #eee;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}
.menu-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.menu-links li{
    list-style: none;
}
.menu-links.open{
    max-height: 300px;
}
.icon.open span:first-child{
    transform: rotate(45deg) translate(5px, 15px);
}
.icon.open span:nth-child(2){
    opacity: 0;
}
.icon.open span:last-child{
    transform: rotate(-45deg) translate(5px, -15px);
}
.icon span:first-child{
    transform: none;
}
.icon span:first-child{
    opacity: 1;
}
.icon span:first-child{
    transform: none;
}

/*Sections*/
section{
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}
.section-container{
    display: flex;
}

/*Profile*/
#profile{
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}
.section__pic-container{
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}
.section__text{
    align-self: center;
    text-align: center;
}
.section__text p{
    font-weight: 600;
}
.section__text__p1{
    text-align: center;
}
.section__text__p2{
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.title{
    font-size: 3rem;
    text-align: center;
}
#socials-container{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/*Icons*/
.icon{
    cursor: pointer;
    height: 2rem;
}

/*Buttons*/
.btn-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}
.btn-1, .btn-2{
    border: rgb(53,53,53) 0.1rem solid;
    background: rgb(232,232,232);
}
.btn-1:hover, .btn-2:hover{
    cursor: pointer;
    background: rgb(0,0,0);
    color: white;
}
.btn-container{
    gap: 1rem;
}

/*About*/
#about{
    position: relative;
}
.about-container{
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}
.about-details-container{
    justify-content: center;
    flex-direction: column;
}
.about-container, .about-details-container{
    display: flex;
}
.about-pic{
    border-radius: 2rem;
}
.arrow{
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}
.detail-container{
    padding: 1.5rem;
    flex: 1;
    background: rgb(250, 250, 250);
    border-radius: 2rem;
    border: rgb(53,53,53) 0.1rem solid;
    text-align: center;
}
.detail-container p{
    text-align: left;
    margin-top: 20px;
}
.section-container{
    gap: 4rem;
    height: 80%;
}
.section__pic-container{
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/*Skills*/
#skills{
    position: relative;
}
.skills-subtitle{
    color: rgb(85,85,85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}
.skills-details-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.detail-container div article {
    justify-content: left;
}
.article-container{
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}
article{
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}
article .icon{
    cursor: default;
}

/*Projects*/
#projects{
    position: relative;
}
.color-container{
    border-color: rgb(163,163,163);
    background: rgb(250,250,250);
}
.project-img{
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}
.project-title{
    margin: 1rem;
    color: black;
}
.project-btn{
    color: black;
    border-color: rgb(163,163,163);
}

/*Contact*/
#contact{
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}
.contact-info-upper-container{
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53,53,53) 0.1rem solid;
    background: rgb(250,250,250);
    margin: 2rem auto;
    padding: 0.5rem;
}
.contact-info-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}
.contact-info-container p{
    font-size: larger;
}
.contact-icon{
    cursor: default;
}
#contact a{
    color: black;
}

/*Footer*/
footer{
    position: relative;
    height: 15vh;
    margin: 0 1rem;
}
.footer li a {
    color: black;
}

/*Extra*/
.text-container p{
    font-size: 1.5rem;
}
#frame{
    height: 100px;
}

/*Project Showcase*/
#web-project .text-container {
    margin: 0 auto;
    padding: 1.5rem;
    line-height: 1.7;
}
#web-project .skills-subtitle {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #222;
}
#web-project p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #333;
}
#web-project ul {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}
#web-project li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
    color: #333;
}
#web-project a {
    color: #000;
    font-weight: 500;
    border-bottom: 1px dotted #888;
    transition: color 0.2s ease, border-bottom 0.2s ease;
}
#web-project .web-project-section {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
    border-left: 4px solid #4ea8de;
}
#web-project .web-project-section h2::after {
    content: '';
    display: block;
    margin-top: 0.5rem;
    height: 2px;
    width: 60px;
    background-color: #888;
}

#web-project-flex-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.code-wrapper {
    background: #111;
    color: #ddd;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    max-width: 100%;
}

pre code {
    white-space: pre-wrap;
}

/* Project Image Gallery */
#web-project-article {
    flex: 2;
    min-width: 0;
}
#web-project-gallery {
    flex: 1;
    max-height: 90vh;
    overflow-y: auto;
    position: sticky;
    top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#web-project-gallery .gallery-item {
    margin-bottom: 2rem;
    text-align: center;
}
#web-project-gallery img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
#web-project-gallery p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}
.deck-gallery {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
    overflow: hidden;
}
.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1rem;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
}
.gallery-item.active {
    opacity: 1;
    z-index: 1;
}
.gallery-item img {
    max-height: 70vh;
    max-width: 90vw;
    object-fit: contain;
    display: block;
    margin-bottom: 0.5rem;
}
.gallery-item p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
}
.gallery-controls {
    margin-top: 0.75rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.gallery-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}
.gallery-controls button:hover {
    color: #4ea8de;
}
#web-project-article,
#web-project-gallery {
    flex: 1 1 50%;
    min-width: 300px;
}
.about-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
aside {
    border-bottom: 1px dotted #888;
    margin-bottom: 2.5rem;
}

/*Powershell Prompt*/
/* Modal container */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Hide by default */
.hidden {
    display: none;
}

/* Modal content box */
.modal-content {
    width: 90%;
    max-width: 960px;
    height: 600px;
    background-color: #012456;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 20px #000;
    display: flex;
    flex-direction: column;
}

/* Header bar */
.modal-header {
    background-color: #003366;
    color: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
}

/* Close button */
.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* Terminal window inside modal */
#powershell-window {
    flex: 1;
    padding: 1rem;
    font-family: 'Cascadia Code', Consolas, monospace;
    color: white;
    background-color: #012456;
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
}
.user-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}
.ps-cyan {
    color: #00ffff; font-weight: bold;
}
.ps-white {
    color: #ffffff;
}
.ps-gray {
    color: #808080; font-style: italic;
}
.ps-red  {
    color: #ff5555; font-weight: bold;
}

