* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #011E1F;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

body.dark-mode {
    background-color: #F6F0F0; 
  
}

body.dark-mode .pages, body.dark-mode .text h1, body.dark-mode .icons a{
    color: #444444;
}
body.dark-mode .text h1 span {
    color:#02BDB7;
}
body.dark-mode  .description {
    color: #555555;
}
body.dark-mode i{
    color: gray !important;
}
body.dark-mode i:hover, body.dark-mode a:hover{
    color: #02BDB7 !important; 
}
body.dark-mode h2 {
    color: #343434;
}

body.dark-mode .project-item {
    background-color: #E0E0E0; 
    color: #343434;
}

.introduction {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0 20px; 
    align-items: center;
    gap: 50px;
}

.text p {
    text-align: left;
}
.description {
    padding-left: 20px;
}

  
  

.image-container {
    background-color: #063b3b; 
    padding: 10px;           
    /* border: 1px solid #ccc;   */
    border-radius: 2%;     
    display: flex;           
    justify-content: center; 
    align-items: center;     
    width: 400px;
}

.image-container img {
    object-fit: cover;
    max-width: 100%;          
    max-height: 100%;        

}



img {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.6)); 
    border-radius: 8px; 
}

.pages p {
    transition: color 0.1s ease;
}


.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: #02BDB7 ;
    padding: 4rem 11rem;
}

.navbar a {
    display: flex;
}

.icons a {
    color:#B8FCFA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.5rem;
}



.name {
    display: flex;
    justify-content: center;  
    align-items: center; 
    font-size: 2.7rem;
    font-family: inherit;
    font-weight: 900;
}

#introduction_name {
    color:#02BDB7;
}

.pages {
    
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 35%;
    color: #BBFFFF;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}





.pages.dark a {
    color: #FFF;
}

.pages.dark #theme-toggle {
    color: #FFF;
}

.text {
    overflow-wrap: break-word;
    padding: 3rem 0rem;
    width: 50%;
    font-family: inherit;
    color: #B8FCFA;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 0;
    line-height: 1.5;
    gap: 10px;
}



.text h1 {
    font-size: 4rem;
    font-weight: bold;
}

.first_page {
    width: 100%;
}

.text p {
    font-size: 1.5rem;
    font-weight: 200;
}


.icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

i {
    /* font-size: 30px; */
    color: #BBFFFF;
    padding: 1rem;
    cursor: pointer;
    transition: color 0.14s ease;
}

i:hover {
    color: #02BDB7 !important;
}

.second_page {
    padding: 2rem;
}

.dot {
    font-size: 2.5rem;
}

.projects-grid {
    gap: 3rem;
    padding: 0rem 9rem;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, auto); 
}

.project-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    background-color:#022526; 
    color:#B8FCFA; 
    padding: 2rem 4rem;

    text-align: left;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-3px); 
    box-shadow:#011E1F 0px 4px 16px 0px; 
    box-shadow: rgba(99, 99, 99, 0.2) 0px 1px 5px 0px;
}


.project-item p {
    font-size: 1.7rem;
    line-height: 1.3;
}

.project-item a {
    display: flex; 
     justify-content: center;
}

.project-item i {
    display: flex;
    justify-content: center;
}

#project_summary {
    font-size: 1.27rem;
}

.project-name {
    color:#02BDB7;
    text-align: center;
}

#tech_stack {
    font-size: 1.07rem;
    text-align: center;
}


h2 {
    text-align: center;
    color:#B8FCFA;
    padding: 4rem;
}




.third_page {
    text-align: center;
    padding: 2rem;
}

.third_page h2 {
    font-size: 3rem;
    color:#B8FCFA;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 0.1fr);
    gap: 1.5rem;
    justify-items: center; 
    justify-content: center;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color:#02BDB7;
    transition: color ease 0.14s
}

.skill-box {
    background-color: #0D2B2C; 
    color: #B8FCFA; 
    padding: 1rem 2rem; 
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px; 
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .skill-box {
    background-color: #E0E0E0; /* Dark mode grid background */
    color: #343434; /* Dark mode text color */
}

.skill-box:hover {
    transform: translateY(-3px); 
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 12px;
}


.contact_section {
    text-align: center;
    margin: 3rem 0;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-icons a {
    font-size: 2rem;
    color: #BBFFFF; 
    transition: color 0.3s ease;
}

.contact-icons a:hover {
    color: #02BDB7; 
}



@media (max-width: 1200px) {
    .pages {
        font-size: 1.25rem;
        gap: 2rem;
    }
    .icons a{
        font-size: 1.25rem;
    }
    .project-item {
        width: 400px;
    }

}

@media (max-width: 959px) {
    .text h1 {
        font-size: 3rem;
    }
    .text p {
        font-size: 1.4rem;
    }
    .navbar {
        /* width: 90%; */
        justify-content: space-between;
        padding: 3rem 8rem ;
    }
    .pages{
        width: fit-content;
        /* width: fit-content; */
    }
    .image-container {
        width: 340px;
    }
    .project-item {
        width: 370px;
    }
    .project-name{
        font-size: 1.6rem ;
    }
    #project_summary{
        font-size: 1.2rem;
    }

    .contact-icons a {
        font-size: 1.8rem;
    }
}


@media (max-width: 860px) {
    .pages a, .pages i{
        font-size: 1.17rem;
    }
    .navbar {
        gap: 2rem;
        padding-left: 5rem;
    }
    .text h1 {
        font-size: 2.3rem;
    }
    .text p {
        font-size: 1.3rem;
    }
    .project-item {
        width: 350px;
    }
    .project-name{
        font-size: 1.4rem ;
    }
    #project_summary{
        font-size: 1.1rem;
    }
}

@media (max-width: 830px) {
    .project-item {
        width: 300px;
    }
    .project-name{
        font-size: 1.3rem ;
    }
    #project_summary{
        font-size: 1rem;
    }
}

@media (max-width: 727px) {
    .pages a, .pages i{
        font-size: 1.1rem;
    }
    .pages {
        gap: 1.36rem;
    }
    .navbar {
        gap: 1.5rem;
    }
    .icons a{
        font-size: 1rem;
    }
    .text h1 {
        font-size: 2rem;
    }
    .text p .text i{
        font-size: 1.09rem;
    }
    .project-item {
        width: 270px;
        padding: 1rem 2rem;
    }
}

@media (max-width: 620px) {
    .introduction {
        flex-direction: column;
        gap: 0.6rem;
    }
    .navbar {
        padding: 1rem 2rem;
        justify-content: center;
    }
    .pages {
        width: fit-content;
    }
    .icons {
        gap: 1.6rem;
    }
    .icons i{
        font-size: 2rem !important;
        padding: 0.5rem;
    }
    .icons a {
        font-size: 1.2rem;
    }
    .pages a {
        font-size: 1.2rem ;
    }
    .image-container {
        width: 300px;
    }
    .text {
        padding-top: 1rem;
        width: 90%;
    }
    .text h1 {
        font-size: 3rem;
    }
    .text p .text i{
        font-size: 2rem;
    }
    .project-item {
        padding: 1rem 2rem;
        width: 90vw;
    }
    .projects-grid {
        justify-content: center;
        align-items: center;
        grid-template-columns: repeat(1, 1fr);
        padding: 0rem 0rem;
    }
    .skill-box {
        font-size: 1rem;
    }

}

