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

/* BODY */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #1f2039;
}

/* HEADER */
header {
    display: flex;
    justify-content: flex-end;
    background: white;
    padding: 20px 50px;
}

.nav-links a {
    margin-left: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #242424;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #a5b4fc;
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 85%;
    margin: auto;
    padding: 60px 0;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    color: #a5b4fc;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #f9f8ff;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.hero .skills-title {
    margin-top: 20px;
    font-weight: bold;
}

.hero .skills {
    color: #a5b4fc;
}

.hero img {
    width: 38%;
    max-width: 520px;
    border-radius: 8px;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #4f6df5;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

/* PROJECT TITLE */
.project-title {
    background: white;
    color: #1f2039;
    text-align: center;
    font-size: 2.4rem;
    font-weight: bold;
    padding: 20px;
}

/* PROJECT GRID */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 85%;
    margin: auto;
    padding: 40px 0;
}

/* CARD */
.item {
    background-color: #2a2b4a;
    color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item h2 {
    color: white;
    margin-bottom: 5px;
}

.item h3 {
    color: white;
    font-weight: normal;
    margin-bottom: 5px;
}

.item p {
    color: white;
    margin-bottom: 10px;
}

/* BUTTONS */
.itemlink {
    display: flex;
    justify-content: flex-end;
}

.itemlink a {
    width: 150px;
    margin-left: 10px;
    padding: 10px;
    text-align: center;
}

.itemlink a:hover {
    opacity: 0.8;
}

/* MOBILE */
@media (max-width: 768px) {

    header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        border-bottom: 3px solid #8e86b5;
        justify-content: end;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero img {
        width: 100%;
    }

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

/* About me page */
.about-page {
    background-color: #1f2039;
    color: #f9f8ff;
    font-family: 'Manrope', sans-serif;
    padding: 60px 8%;
}

.about-hero {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 50px;
}

.about-hero h1 {
    color: #a5b4fc;
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: justify;
}

.about-hero strong, li {
    color: #a5b4fc;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-card {
    background-color: #2a2b4a;
    padding: 30px;
    border-radius: 12px;
}

.about-card h2,
.projects-highlight h2 {
    color: #a5b4fc;
    margin-bottom: 15px;
}

.about-card p,
.about-card li,
.project-box p {
    color: #f9f8ff;
    line-height: 1.7;
    font-size: 1rem;
}

.about-card ul {
    padding-left: 20px;
}

.projects-highlight {
    margin-top: 60px;
}

.projects-highlight h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-box {
    background-color: #f5f5f5;
    color: #1f2039;
    padding: 25px;
    border-radius: 12px;
}

.project-box h3 {
    color: #1f2039;
    margin-bottom: 10px;
}

.project-box p {
    color: #1f2039;
}

.resume-section {
    text-align: center;
    margin-top: 50px;
}

.resume-btn {
    display: inline-block;
    background: #4f6df5;
    color: white;
    margin-top: 10px;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.resume-btn:hover {
    opacity: 0.85;
}

/* Mobile */
@media (max-width: 768px) {
    .about-page {
        padding: 40px 5%;
    }

    .about-hero h1 {
        font-size: 2.3rem;
    }

    .about-grid,
    .project-list {
        grid-template-columns: 1fr;
    }
}
