* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --purple: #7558d8;
    --dark: #242238;
    --muted: #737184;
    --light: #f5f2ff;
}

body {
    font-family: Arial, sans-serif;
    color: var(--dark);
    line-height: 1.7;
}

a {
    text-decoration: none;
}

/* Navigation */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 12px #00000010;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
}

.logo {
    font-size: 27px;
    font-weight: bold;
    color: var(--dark);
}

.logo span {
    color: var(--purple);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    font-weight: bold;
    font-size: 14px;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--purple);
}

#menu {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 25px;
}

/* Home */

.home {
    min-height: 580px;
    padding: 80px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    background: linear-gradient(120deg, #fcfbff, #eee9ff);
}

.small-title {
    color: var(--purple);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.home h1 {
    font-size: clamp(36px, 5vw, 55px);
    line-height: 1.2;
}

.home h1 span {
    color: var(--purple);
}

.home h2 {
    font-size: 20px;
    margin-top: 18px;
}

.home-content p:not(.small-title) {
    max-width: 580px;
    color: var(--muted);
    margin-top: 18px;
}

.buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    background: var(--purple);
    color: white;
    border-radius: 7px;
    font-weight: bold;
    transition: .3s;
}

.btn:hover {
    background: #543bb1;
    transform: translateY(-4px);
}

.btn-outline {
    background: white;
    color: var(--purple);
    border: 1px solid var(--purple);
}

.profile-circle {
    min-width: 230px;
    height: 230px;
    border-radius: 50%;
    background: linear-gradient(140deg, #9b88e9, #6246c5);
    display: grid;
    place-items: center;
    box-shadow: 0 15px 40px #7558d855;
}

.initials {
    font-size: 75px;
    color: white;
    font-weight: bold;
}

/* General Sections */

section {
    padding: 80px 10%;
}

.heading {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark);
}

.light-section {
    background: #faf9fd;
}

/* About */

.about-container {
    display: flex;
    align-items: center;
    gap: 35px;
    max-width: 950px;
    margin: auto;
}

.about-image {
    min-width: 170px;
    height: 170px;
    background: var(--light);
    border-radius: 25px;
    display: grid;
    place-items: center;
    color: var(--purple);
    font-size: 55px;
    font-weight: bold;
}

.about-text h3 {
    font-size: 23px;
    margin-bottom: 12px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 12px;
}

.about-tags,
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.about-tags span,
.tags span {
    background: var(--light);
    color: var(--purple);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* Education and Projects */

.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    position: relative;
    padding: 28px;
    background: white;
    border: 1px solid #eee;
    border-radius: 13px;
    box-shadow: 0 5px 20px #00000008;
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px #7558d825;
}

.card h3 {
    color: var(--purple);
    font-size: 20px;
    margin: 12px 0;
}

.card p {
    color: var(--muted);
    margin: 10px 0;
}

.card h4 {
    color: var(--purple);
    margin-top: 15px;
}

.number {
    position: absolute;
    right: 20px;
    top: 12px;
    color: #d5cdf3;
    font-size: 25px;
    font-weight: bold;
}

/* Skills */

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: auto;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name h3 {
    font-size: 16px;
}

.skill-name span {
    color: var(--purple);
    font-weight: bold;
}

.progress {
    height: 9px;
    background: #eee9ff;
    border-radius: 20px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #a08dec, #654bc9);
    border-radius: 20px;
    transition: width .8s;
}

.skill:hover .progress span {
    filter: brightness(1.15);
}

/* Projects */

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 285px;
}

.project-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 20px;
    color: var(--purple);
    font-weight: bold;
    font-size: 14px;
}

.project-link:hover {
    text-decoration: underline;
}

/* Certificates */

#certificates .card-container {
    grid-template-columns: repeat(2, 1fr);
}

/* Contact */

.contact-section {
    background: linear-gradient(120deg, #7558d8, #4e38a6);
    text-align: center;
    color: white;
}

.contact-section .heading,
.contact-section .small-title {
    color: white;
}

.contact-section p:not(.small-title) {
    margin-bottom: 25px;
}

.contact-section .btn {
    background: white;
    color: var(--purple);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 28px;
}

.social-links a {
    color: white;
    font-weight: bold;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Footer */

footer {
    background: var(--dark);
    color: white;
    padding: 22px 5%;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px;
}

footer a {
    color: #c9baff;
}

/* Responsive Navigation and Layout */

@media(max-width: 850px) {

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .home {
        padding: 65px 7%;
    }
}

@media(max-width: 700px) {

    .navbar {
        flex-wrap: wrap;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 15px 0;
    }

    #menu:checked ~ .nav-links {
        display: flex;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-content p:not(.small-title) {
        margin-left: auto;
        margin-right: auto;
    }

    .buttons {
        justify-content: center;
    }

    .profile-circle {
        min-width: 180px;
        height: 180px;
    }

    .card-container,
    .skills-container,
    #certificates .card-container {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-tags {
        justify-content: center;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}