* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

p {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

.header {
    background: linear-gradient(to bottom, #77aaff, #000000);
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
}

.nav {
    background: #77aaff;
    color: #fff;
    padding: 10px 0;
    margin-bottom: 20px;
    position: relative;
}

.nav-links {
    list-style: none;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 10px;
}

.nav-links li {
    display: inline;
    margin: 0 20px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #333;
}

.menu {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #230303;
    margin: 5px 0;
    transition: 0.3s;
}

section {
    padding: 20px 0;
}

#about {
    margin-top: 10px;
}

#about, #skills, #projects, #contact {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

#skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

#skills ul li {
    position: relative;
    margin: 10px;
    padding: 20px;
    background-color: rgb(123, 224, 255);
    color: #201212;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border-radius: 5px;
    overflow: hidden; 
    cursor: pointer;
    transition: transform 0.3s;
    flex: 1 1 calc(33.333% - 40px); 
    box-sizing: border-box;
}

#skills ul li:hover {
    transform: scale(1.05);
}


.content {
    position: relative;
    z-index: 1; 
    transition: opacity 0.5s ease-in-out; 
}


.overlay {
    position: absolute;
    top: 0;
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.8); 
    opacity: 0; 
    transition: left 0.5s ease-in-out, opacity 0.5s ease-in-out; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    z-index: 2; 
}


#skills ul li:hover .overlay {
    left: 0; 
    opacity: 1; 
}


#skills ul li:hover .content {
    opacity: 0; 
}


.text {
    margin: 0; 
    padding: 0; 
}

#skills .container2 li {
    display: flex;
    flex-direction: column;
}

#skills .container2 ul li {
    background: #ffffff;
    color: #77aaff;
    margin: 10px;
    padding: 20px;
    border-radius: 5px;
    border: 1px dashed #77aaff;
    font-size: 1.1em;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s;
}

#skills .container2 ul li div {
    display: flex;
    flex-direction: column;
}

#skills .container2 img {
    width: 60px;
    height: 60px;
    align-self: center;
    margin-right: 5px;
}

.project {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.project h3 {
    margin-bottom: 10px;
    color: #77aaff;
}

#projects .container {
    display: flex;
    flex-direction: column;
}

#projects .container .project {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#projects .container img {
    margin-right: 10px;
    width: 50px;
    height: 50px;
}

#contact p {
    display: flex;
    font-size: 1.2em;
    margin-bottom: 10px;
    align-items: center;
}

#contact p a {
    color: #77aaff;
    text-decoration: none;
    transition: color 0.3s;
}

#contact p a:hover {
    color: #333;
}

#contact p img {
    margin-right: 10px;
    align-self: center;
    width: 40px;
    height: 40px;
}

#contact .container div {
    display: flex;
    justify-items: center;
    justify-self: center;
}

footer {
    text-align: center;
    padding: 10px;
    background: #333;
    color: #fff;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        display: block;
        margin: 10px 0;
    }

    .menu {
        display: block;
    }

    #skills ul {
        flex-direction: column;
    }

    #skills ul li {
        flex: 1 1 100%; 
    }

    .contact-me button {
        margin-left: 10%;
    }
}


.reach-me {
    background-color: white;
    align-items: center;
    justify-content: center;
}

.reach-me .contact-me button {
    align-self: center;
    justify-self: center;
}

.contact-me {
    width: 50%;
    justify-self: center;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.contact-me button {
    margin-left: 35%;
    margin-top: 5px;
    width: 200px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background-color: #77aaff;
    color: white;
    font-weight: bold;
}

.contact-me button:hover {
    background-color: white;
    color: #77aaff;
    border: 1px solid #77aaff;
    font-weight: bold;
}

.contact-me h2 {
    align-self: center;
}

.contact-me input {
    padding-left: 5px;
    padding-right: 5px;
    width: 100%;
    border: 1px solid;
    border-color: #77aaff;
    background-color: aliceblue;
    height: 30px;
    border-radius: 5px;
}

.contact-me input:focus {
    border-color: var(--textcolor);
}

.contact-me .message {
    height: 100px;
    text-align: start;
    align-self: baseline;
    border: 1px solid;
    border-color: #77aaff;
    background-color: aliceblue;
    border-radius: 5px;
}

.contact-me .message:focus {
    border: 1px solid;
    border-color: #77aaff;
    background-color: aliceblue;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .contact-me button {
        text-align: center;
        margin-left: 25%;
    }

    .reach-me .contact-me {
        width: 90%;
    }
}