* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg,
            #141e36 0%,
            #040b27 100%);
    margin: 0;
    background-size: cover;
    min-height: 100vh;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: stretch;
    margin-top: 0;
}

/* Left side */

.left-side {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}

.header-text {
    text-align: center;
    margin-bottom: -15px;
    transition: transform 0.3s ease;
}

.header img {
    width: 250px;
    height: 250px;
    border-radius: 45px;
}

.header h1 {
    color: white;
    margin-top: 5px;
    margin-bottom: 5px;
}

.header p {
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
}

.header .univ {
    text-decoration: none;
    color: #bbbbbb;
}

.header .univ:hover {
    color: rgba(255, 255, 255, 0.8);
}

.contact {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.contact a {
    text-decoration: none;
    color: white;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
}

.contact a i {
    color: white;
    font-size: 30px;
    transition: transform 0.2s ease;
}

.contact a:hover i {
    transform: scale(1.15);
}

/* Right side */

.right-side {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    text-align: center;
    justify-content: center;
    font-weight: 700;
    margin-top: 0px;
    margin-bottom: 10px;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Projects */

.projects {
    color:white;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.projects .section-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.project-card {
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.055);
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.project-github {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, color 0.15s ease;
}

.project-github:hover {
    transform: scale(1.08);
    color: #ffffff;
}

.project-desc {
    margin: 0;
    color: #e3d6f6;
    line-height: 1.45;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.project-tags .tag {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

/* Skills */

.skills {
    color:white;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skills .section-content.skills-grid {
    gap: 18px;
}

.skill-card {
    gap: 25px;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.055);
}

.skill-card h3 {
    margin-bottom: 0;
    font-size: 18px;
    margin-top: 10px;
}

.skill-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chips .chip {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1px;
}


/* Responsive */

@media (max-width: 1000px) {
    .projects .section-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 24px 16px;
        flex-direction: column;
        gap: 28px;
        align-items: stretch;
    }

    .left-side {
        width: 100%;
        align-items: center;
    }

    .right-side {
        gap: 28px;
    }

    .projects .section-content {
        grid-template-columns: 1fr;
    }

    .skills .section-content.skills-grid {
        grid-template-columns: 1fr;
    }

    .header img {
        width: 200px;
        height: 200px;
        border-radius: 45px;
    }

    .contact {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .title {
        font-size: 18px;
        padding: 12px;
    }
}