*{
    padding: 0;
    margin: 0;
    font-family: "Nova Square", sans-serif;
    box-sizing: border-box;
    outline: 0;
    text-decoration: none;
}

body{
    background-color: #000000;
}

nav{
    display: grid;
    grid-template-columns: 1fr 2fr repeat(5, 0.5fr);
    gap: 10px;
    align-items: center;
    text-wrap: nowrap;
    padding: 15px;
    padding-left: 10px;
    place-items: center;
    background-color: rgba(0, 0, 0, );
}

nav a img{
    max-width: 325px;
}

.nav_text{
    font-size: 2rem;
    text-decoration: none;
    color: rgb(255,255,255);
    padding: 10px;
    border-bottom: 1px whitesmoke hidden;
}

.nav_text_name{
    font-size: 2.5rem;
    text-decoration: none;
    color: rgb(255,255,255);
    padding: 10px;
}

nav a:hover{
    color: rgb(200, 200, 200);
    transition: color 0.2s ease-in-out;
    border-bottom: 1px solid whitesmoke;
}

.main_text{
    place-self: center;
    font-size: 3rem;
    color: rgb(255,255,255);
    font-family: "Nova Square", sans-serif;
    padding-bottom: 0;
    margin-bottom: 0;
    font-size: 2.8rem;
}

._text{
    place-self: center;
    font-size: 1.75rem;
    color: rgb(255,255,255);
    margin: 10px;
    text-align: center;
    font-family: "Nova Square", sans-serif;
}

._text_heading{
    place-self: center;
    color: rgb(255,255,255);
    font-family: "Nova Square", sans-serif;
    margin: 10px;
    text-align: center;
}

.about_main_split{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 5%;
    place-content: center;
}

.main_box{
    background-color: black;
    width: 100%;
    height: fit-content;
    padding: 15px 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.skill_box{
    background-color: #222;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(247, 245, 245, 0.199);
    transition: transform 0.3s ease;
    color: white;
    height: 10rem;
}

.skill_box:hover{
    transform: translateY(-10px);
    border: rgb(99, 99, 99) solid 1px;
    box-shadow: 0 5px 15px rgba(247, 245, 245, 0.4);
}

.skill_grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 55px;
    max-width: 1400px;
    width: 90%;
    padding: 20px 0;
}

.navbar a{
  padding-bottom: 5px;  
}

a.active{
  border-bottom: 1px solid whitesmoke;
}

.projects_container.list_view{
    grid-template-columns: 1fr;
    gap: 20px;
}

.projects_container .skill_box{
    background-color: #222;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(247, 245, 245, 0.199);
    transition: transform 0.3s ease;
    color: white;
    height: 10rem;
    width: 100%; 
    display: flex; 
    justify-content: center;
    align-items: center;
}

.projects_container.list_view .skill_box{
    text-align: left; 
    height: auto; 
    padding: 20px;
}

.icon_toggle{
    color: white;
    font-size: 2rem;
    cursor: pointer;
    margin: 0 10px;
    transition: color 0.2s ease-in-out;
}

.icon_toggle:hover{
    color: #aaa;
}

.projects_main_controls{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    width: 90%;
    max-width: 1400px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.project_image{
    width: 65vw;
    height: auto;
    display: flex;
    place-self: center;
}
.main_background{
    padding: 50px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
    box-sizing: border-box;
}

.about_introduction_text{
    font-size: 1.2rem;
    line-height: 1.7; 
    color: #cccccc; 
    max-width: 700px; 
    margin: 15px auto; 
}

.about_main_split{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    width: 90%;
    max-width: 900px; 
    margin-top: 40px;
    margin-left: auto; 
    margin-right: auto;

}

.about_card{ 
    background-color: #222; 
    padding: 30px; 
    border-radius: 10px; 
    border: 1px solid rgb(99, 99, 99); 
    box-shadow: 0 5px 15px rgba(247, 245, 245, 0.199); 
    text-align: left; 
    transition: transform 0.3s ease; 
}

.about_card:hover{
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(247, 245, 245, 0.4); 
}

.about_text_list{
    font-size: 1.1rem; 
    margin-bottom: 12px;
    padding-left: 30px; 
    position: relative; 
}

.projects_container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    width: 90%;
    padding: 20px 0;
    align-items: stretch;
}

.project_card{
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: center;
    height: 20rem;
    max-width: 55vw;
    margin: 0 auto;
}


.project_card:hover{
    transform: translateY(-15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #555;
}

.project_title{
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.project_description{
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    overflow: visible;
    text-align: center;
    place-content: center;
}

.project_tags{
    margin-top: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.project_tags_text{
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.project_card_link{
    text-decoration: none;
    color: inherit;
    display: block;
    height: auto;
}

.contact-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

.contact-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #b0b0b0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: "Nova Square", sans-serif;
    color: #e0e0e0;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-family: "Audiowide", sans-serif;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #6a8eff;
    box-shadow: 0 0 8px rgba(106, 142, 255, 0.4);
}

.form-select option {
    background-color: #1a1a1a;
    color: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}

.submit-button {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    background-color: #6a8eff;
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #8daaff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.project-carousel {
    display: flex;
    align-items: center; 
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative; 
    max-width: 80%; 
    width: 100%;
}

.project_image_link {
    display: block; 
    margin: 0 10px; 
}

.carousel-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
    position: absolute; 
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-button {
    left: 0; 
    transform: translateX(-100%); 
}

.next-button {
    right: 0; 
    transform: translateX(100%); 
}

.icon{
    font-size: 2em;
    margin-top: 0;
}

.icon_toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

.icon_toggle:hover {
    opacity: 0.8;
}

.icon_toggle svg {
    width: 24px;
    height: 24px;
}

@media only screen and (max-width: 767px){

    nav{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-wrap: nowrap;
        padding: 20px;
        padding-left: 10px;
    }

    .project_card{
        height: auto;
        padding: 20px;
        max-width: none;
    }

}