/* MOBILE */

/* APPLY TO ALL ELEMENTS SECTION */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 81px;

    font-size: 16px;

    scroll-behavior: smooth; 
    -ms-overflow-style: none;  /*For Old IE / Edge to  hide scroll bar*/
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;  
    height: 100%;
    padding-top: 12%;

    font-family: 'Segoe UI', Arial, sans-serif; 

    background-color: rgb(15, 15, 15);
    user-select: none;
}

/* MAIN SECTION */
main {
    flex: 1;
}

/* HERO SECTION */
#hero { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    min-height: 100dvh;
    min-height: 100vh;

    font-size: clamp(0.875rem, 8vw, 4rem);
    color: rgb(57, 167, 211);
    text-align: center;
}

#hero > * {
  margin-bottom: 2.5rem;
}

#hero h1{
    font-size: clamp(0.875rem, 9vw, 5rem);
}

#hero p{
    max-width: 800px;

    font-size: clamp(0.700rem, 5vw, 1.5rem);
    color: rgb(189, 185, 185);
    text-align: center;
}

#start-button {
    padding: 15px;

    font-size: 0.700rem;
    font-size: clamp(0.700rem, 1.1rem, 1.3rem);
    text-decoration: none;
    color: rgb(57, 167, 211);

    background-color: rgb(15, 15, 15);
    border: 1px solid rgb(57, 167, 211);
    border-radius: 10px;
}

#start-button:hover {
    color: rgb(15, 15, 15);
    background-color: rgb(42, 148, 190);
}

#profile-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15vw;  
}

#profile-links a i {
    color: black;
    font-size: clamp(0.875rem, 7vw, 3rem);
}

.text-link {
    display: none;
}

/* ABOUT SECTION */
#about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4em 1em 4em 1em;

    background-color: rgb(30, 30, 30);
}

#introduction {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em; 

    text-align: center;
}

.text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 200px;
    
    font-size: clamp(0.600rem, 10vw, 3rem);  
    font-weight:lighter;
    color: white;
}

#my_pic {
    width: clamp(3.125em, 45vw, 17em);    
    height: clamp(3.125em, 45vw, 17em);      
    
    border-radius: 50%;
    object-fit: cover;
}

#description {
    display: block;
    margin: 1.8em;
    margin-bottom: 2em;

    color: white;
    font-size: clamp(0.600rem, 2vw, 1rem);
    line-height: 2em;
    text-align: center; 
}

#hero-contact-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

#contact-btn{
    width: 12.5em;
    padding:  0.380em;

    font-size: clamp(0.300rem, 4vw, 1.5rem);
    color: white;
    text-align: center;
    text-decoration: none;
    
    border: 2px solid rgb(57, 167, 211);
    border-radius: 30px;
}

#contact-btn:hover {
    background-color: rgb(15, 15, 15);
}

#resume-btn{
    width: 12.5em;
    padding: 0.380em;

    font-size: clamp(0.300rem, 4vw, 1.5rem);
    color: white;
    text-align: center;
    text-decoration: none;
    
    border: 2px solid rgb(57, 167, 211);
    border-radius: 30px;
}

#resume-btn:hover {
    background-color: rgb(15, 15, 15);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;

    color: rgb(57, 167, 211);
}

/* JOURNEY SECTION */
#journey {    
    padding: 40px 5%;

    background-color: rgb(15, 15, 15);
}

.timeline {
    position: relative;  
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;

    background: rgb(57, 167, 211);
}

.timeline-item {
    width: 100%;
    padding-left: 30px;
}

.timeline-item.left, .timeline-item.right {
    left: 0;
    padding-bottom: 24px;
}

.content {
    padding: 20px; 

    color: white;
    text-align: center;

    background-color: rgb(30, 30, 30);
    border-radius: 8px;
    border-top: 1px solid rgb(57, 167, 211);
    border-left: 10px solid rgb(57, 167, 211);
    border-right: 10px solid rgb(57, 167, 211);
    border-bottom: 1px solid rgb(57, 167, 211);
}

.date {
    margin-bottom: 5px;

    font-size: 0.9rem;
    color: rgb(189, 185, 185);
}

.title {
    margin-bottom: 10px;

    font-size: 1.2rem;
    font-weight: bold;
}

.design-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;

    color: white;
    
    border-bottom: 1px solid rgb(57, 167, 211);
}

.circle-container {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;

    cursor: pointer;
}

.circle-1 {
    background-color: red;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}

.circle-2 {
    background-color: yellow;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}

.circle-3 {
    background-color: lime;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}

.fake-terminal {
    font-size: 10px;
}

.fake-controls {
    display: flex;
    align-items: center;
    gap: 15px;

    font-size: 13px;

    cursor: pointer;
}

/* SKILLS SECTION */
#skills {
    padding: 40px 5%;  

    background-color: rgb(30, 30, 30);
}

.skill-category h3 {
    padding-bottom: 8px;

    font-size: 1.5rem;
    font-weight: 500;
    color: rgb(189, 185, 185);

    border-bottom: 2px solid rgb(78, 76, 76);
}

.skill-category ul { 
    margin-bottom: 1rem;
    padding: 15px 0px;

    list-style: none;
}

.skill-category ul li {
    padding: 15px;
    margin-bottom: 10px;
    
    color: white;
    font-weight: bold;

    background-color: rgb(15, 15, 15);
    border-left: 10px solid rgb(57, 167, 211);
    border-right: 10px solid rgb(57, 167, 211);
    border-top: 1px solid rgb(57, 167, 211);
    border-bottom: 1px solid rgb(57, 167, 211);
    border-radius: 6px;
} 

.description {
    display: none;
}

.skill-category ul li:hover .description{
    display: inline;
}

.skill-category ul li:hover {
    border: 2px solid rgb(57, 167, 211);
    background-color: rgb(34, 32, 32);
    text-align: center;
}

/* PROJECTS SECTION */
#projects {
    background-color: rgb(15, 15, 15);
    padding: 40px 5%;
    text-align: center;
}

#projects h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.project-type {
    border-bottom: 2px solid rgb(78, 76, 76);
    padding-bottom: 8px;
    margin-bottom: 15px;

    font-size: 1.5rem;
    font-weight: 500;
    text-align: left;
    color: rgb(189, 185, 185);
}

.project-card {
    margin-bottom: 0.875rem;

    background-color:rgb(30, 30, 30);
    color: white;
    
    border: 3px solid rgb(57, 167, 211);
    border-radius: 10px;
}

.project-card img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 25vh;
    object-fit: fill;
    border-bottom: 3px solid rgb(57, 167, 211);
}

.project-card h3 {
    margin: 16px;

    font-size: 20px;
}

.project-card p {
    padding: 0 15px;

    font-size: 14px;
}

.tech {
    margin: 24px;

    font-weight: bold;
    font-style: italic;
    color: white;

    border-radius: 10px;
}

.project-links {
    margin-bottom: 10px;
}

.project-links a {
    display: inline-block;
    padding: 8px 14px;
    margin: 5px 5px 15px 5px;
    width: 50%;

    font-size: 14px;
    text-decoration: none;
    color: black;
    font-weight: bold;

    background-color: rgb(57, 167, 211); 
    border-radius: 8px;
}

.project-links a:hover {
    background-color: rgb(42, 148, 190);
}


#reymux {
    padding: 40px 5%;

    background-color: rgb(30, 30, 30);
}

#terminal-container {
    height: 500px;
    width: 1250x;
    padding: 0 5px;
    margin: auto;
    overflow: auto;

    font-size: 0.800rem;
    color: lime;
    font-family: monospace;

    background-color: rgb(15, 15, 15);
    border-radius: 15px;
    border: 3px solid rgb(57, 167, 211);
    cursor: pointer;
    scrollbar-width: none;
}

#terminal-container::-webkit-scrollbar {
    display: none;
}

#terminal-controls {
    background-color: rgb(15, 15, 15);
    position: sticky;
    top: 0;
    z-index: 5;

}

#menu-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgb(57, 167, 211);
}

#terminal-container p {
    margin-bottom: 20px;
}

#output-container {
    font-size: 0.600rem;  
    font-size: clamp(0.600rem, 2vw, 0.900rem); 
}

#output-container > * {
    margin-bottom: 10px;
}

#output-container #ascii {
    white-space: pre-wrap;  
    max-width: 100%;
}

#input-container {
    display: flex;
    align-items: center;
    white-space: pre;
    font-size: 0.600rem;
    font-size: clamp(0.600rem, 2vw, 0.800rem); 
}

#input-container #prompt {
    padding-right: 10px;
}

#terminal-input {
    width: 100%;

    font-size: 0.600rem;
    font-size: clamp(0.600rem, 2vw, 0.900rem); 
    
    color: lime;

    background-color: rgb(15, 15, 15);
    outline: none;
    border: none;
}

/* FOOTER SECTION */
footer {   
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 2em 1em 2em 1em;

    font-size: clamp(0.600rem, 2vw, 0.875rem);
    text-align: center;
    color: white;   

    background-color: rgb(15, 15, 15); 
}

#footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

footer a{   
    color: white;  
    text-decoration: none;
}

@media (max-width: 301px) {
  body::before {
    content: "You can't view my portfolio at 301px or less. Enjoy the void :)";
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    height: 100vh;

    font-size: 24px;
    text-align: center;
    color: white;

    background: black;
  }

  body > * {
    display: none;
  }
}

@media (min-width: 448px) {
    #introduction {
        flex-direction: column;
    }

    .text {
        max-width: 300px;
    }
}

@media (min-width: 500px) {
    body {
        padding-top: 0;
    }

    #hero { 
    padding: 2em;
    margin-top: 4rem;

    font-size: clamp(0.875rem, 5.5vw, 4rem);
    }

    #hero p {
        font-size: clamp(0.600rem, 5vw, 2rem);
    }

    #hero-contact-search {
        flex-direction: row;
        gap: 2em;
    }

    #contact-btn{
        font-size: 1rem;
    }

    #resume-btn{
        font-size: 1rem;
    }
}

/* TABLET */
@media (min-width: 600px) {

    #profile-links {
        gap: 5rem;
    }
}

@media (min-width: 768px) {

    .timeline::before {
        left: 50%;
    }

    .timeline-item {
        position: relative;
        width: 50%;
        padding: 20px 40px;
    }

    .timeline-item.right {
        left: 50%;
    }

    .skill-category ul { 
        display: flex;
        column-gap: 2%;
        row-gap: 10px;
        flex-wrap: wrap;

        text-align: center;
    }

    .skill-category ul li {
        width: 32%;
        margin-bottom: 0;
    }

    .skill-category ul li:hover {
        width: 32%;
    }

    .skills-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .project-card {
        margin-bottom: 0;
    }  
}

/* DESKTOP */ 
@media (min-width: 1024px) {

    html {
        scroll-padding-top: 98px;
    }

    #hero h1 {
        font-size: 4rem;
    }

    /* INFORMATION SECTION */
    #profile-links {
        flex-wrap: wrap;
    }

    #profile-links a {
        text-decoration: none;
    }

    #profile-links a i {
        display: flex;
    }

    #profile-links a i:hover {
        font-size: 3rem;
    }

    #profile-links a i span {
        display: none;
    }

    .text-link {
        position: relative;
        left: 0.800rem;

        display: flex;
    }

    #profile-links i:hover{
        color: rgb(131, 20, 0);
    }

    /* INTRODUCTION SECTION */
    #introduction { 
        flex-direction: row;
        gap: 7em;     
    }

    .text {
        max-width: 200px;
        font-size: clamp(0rem, 4vw, 3rem);
    }

    /* DESCRIPTION SECTION */
    #description {
        font-size: 1.2rem;
    }

    #hero-contact-search {
        gap: 4em;
    }

    .skills-section {
        grid-template-columns: repeat(3, 1fr);
    }

    /* FOOTER SECTION */
    footer {
        padding: 2em;

        font-size: 0.875rem;
    }

    footer a:hover{
        color: tomato;
        text-decoration: underline;
    }
}

@media (min-width: 1200px) {

    #profile-links {
        gap: 8vw;
    }

    #profile-links a i {
        display: flex;
        font-size: clamp(0px, 3vw, 3rem);
    }

    #profile-links a i span {
        display: none;
    }

    #profile-links a i span:hover{ 
        display: flex;
    }

    #description {
        font-size: 1.2rem;
    }
}