
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background-color: rgba(2, 2, 36, 0.95);
    color: white;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    background-color: rgb(71, 71, 135, 0.9);
}
.left {
    font-size: 24px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    font-size: 1.5rem;
    color: rgb(144, 67, 216);
    transition: font-size 0.3s ease;
}

main {
    flex: 1; 
}

main hr {
    border: 0;
    background: rgba(255, 255, 255, 0.774);
    height: 1px;
    margin: 20px 84px;
}

.firstSection, .secondSection {
    padding: 20px;
}

.firstSection {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.firstSection > div {
    width: 42%;
}

.leftSection {
    font-size: 2rem;
    margin: 30px 0;
}

.rightSection img {
    width: 80%;
    margin: 30px 0;
}

.name {
    color: rgb(236 241 7);
}

#element {
    color: rgb(236 241 7);
}

.secondSection {
    max-width: 80vw;
    margin: auto;
    height: 35vw;
}

.secondSection h1 {
    font-size: 2rem;
}

.secondSection .box {
    background: white;
    width: 80vw;
    height: 2px;
    margin: 56px 0;
    display: flex;
}

.secondSection .vertical {
    height: 90px;
    width: 1px;
    background-color: white;
    margin: 0 160px;
}

.image-top {
    width: 40px;
    position: relative;
    top: -45px;
    left: -10px;
}

.vertical-title {
    position: relative;
    top: 75px;
    font-size: 20px;
}

.vertical-desc {
    position: relative;
    top: 86px;
    width: 150px;
    font-size: small;
}

.vertical-desc ul {
    list-style: none;
    padding-left: 0;
}

footer {
    background-color: rgb(71, 71, 135, 0.9);
    padding: 20px;
    text-align: center;
    color: white;
}

.footer-socials a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2em;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: rgb(144, 67, 216);
}

@media (max-width: 768px) {
    .firstSection {
        flex-direction: column;
        align-items: center;
    }

    .firstSection > div {
        width: 100%;
    }

    .secondSection {
        height: auto;
    }
}

.about-section {
    max-width: 80vw;
    margin: auto;
    padding: 40px 20px;
    color: white;
}

.about-section h1 {
    font-size: 2.5rem;
    color: rgb(73, 7, 134);
    text-align: center;
    margin-bottom: 20px;
}

.about-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    max-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.skills-section {
    margin-top: 40px;
}

.skills-section h2 {
    font-size: 2rem;
    color: rgb(73, 7, 134);
    margin-bottom: 20px;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill-item {
    background-color: rgba(71, 71, 135, 0.9);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.project-main h1 {
    font-size: 2.5rem;
    color: rgb(118, 12, 218);
    text-align: center;
    margin-bottom: 20px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.project-card {
    background-color: rgba(14, 14, 39, 0.9);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.project-card a {
    display: inline-block;
    background-color: rgb(144, 67, 216);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.project-card a:hover {
    background-color: rgb(135, 96, 241);
}
