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

body {
    color: white;
    font-family: 'poppins', sans-serif;
    overflow-x: hidden;
    background: url('second.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 11, 94, 0.7);
    z-index: -1;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 95px;
    width: 100%;
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    color: lavender;
    font-size: 1.02rem;
}

.left {
    font-size: 3rem;
    font-family: Kapakana;
    font-style: italic;
}

.firstSection {
    display: flex;
    justify-content: space-between;
    margin: 25px auto 0;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.leftSection {
    width: 60%;
    font-size: 3rem;
}

.rightSection {
    width: 40%;
    display: flex;
    justify-content: center;
}

.rightSection img {
    max-width: 140%;
    height: auto;
    border-radius: 10px;
    box-shadow: none;
    border: none;
    outline: none;
    display: block;
}

.textColor {
    color: rgb(178, 115, 238);
}

#element {
    color: rgb(178, 115, 238);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 3rem;
}

.secondSection {
    max-width: 90vw;
    margin: 20px auto;
    padding: 30px;
    font-size: 1rem;
    position: relative;
    height: 80vh;
    border-radius: 10px;
}

main hr {
    height: 3px;
    background: lavender;
    margin: 30px auto;
    border: 0;
    width: 90%;
}

.skills-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.skills-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: rgb(178, 115, 238);
    margin-bottom: 40px;
    font-weight: 600;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 1.15rem;
    transition: transform 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(178, 115, 238, 0.4);
}

.projects-section {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 40px 20px;
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: rgb(178, 115, 238);
    margin-bottom: 40px;
    font-weight: 600;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(178, 115, 238, 0.5);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
    color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.3rem;
}

.project-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.3;
}

.project-links a {
    text-decoration: none;
    color: rgb(178, 115, 238);
    font-weight: 600;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: white;
}

footer {
    background-color: rgba(12, 11, 94, 0.8);
    padding: 25px 0;
    text-align: center;
    color: white;
    font-size: 1rem;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-container div a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-container div a:hover {
    color: rgb(178, 115, 238);
}

.footer-container i {
    font-size: 1.2rem;
    margin-right: 8px;
}
