* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    background: #111111;
    color: white;
    min-height: 100vh;
}


/* =========================
   NAVIGATION
========================= */

nav {
    height: 90px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    color: white;
    text-decoration: none;

    font-size: 28px;
    font-weight: 900;
}


.nav-links {
    display: flex;
    align-items: center;

    gap: 45px;
}


.nav-links a {
    display: inline-block;

    color: white;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s;
}


.nav-links a:hover {
    transform: translateX(-5px);
    opacity: 0.7;
}


/* =========================
   ABOUT PAGE
========================= */

.about-page {
    padding: 30px 8% 100px;
}


/* =========================
   BACK BUTTON
========================= */

.back-button {
    display: inline-block;

    color: white;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    margin-bottom: 80px;

    transition: 0.3s;
}


.back-button:hover {
    transform: translateX(-5px);
    opacity: 0.7;
}


/* =========================
   MAIN CONTENT
========================= */

.about-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    max-width: 1200px;

    margin-bottom: 120px;
}


/* =========================
   HEADING
========================= */

.small-title {
    font-size: 13px;

    letter-spacing: 4px;

    color: #777777;

    margin-bottom: 25px;
}


.about-heading h1 {
    font-size: clamp(70px, 9vw, 130px);

    line-height: 0.85;

    font-weight: 700;
}


/* =========================
   TEXT
========================= */

.about-text {
    padding-top: 50px;

    max-width: 550px;
}


.about-text h2 {
    font-size: 32px;

    margin-bottom: 30px;
}


.about-text p {
    color: #999999;

    font-size: 17px;

    line-height: 1.7;

    margin-bottom: 20px;
}


/* =========================
   CV BUTTON
========================= */

.cv-button {
    display: inline-block;

    margin-top: 25px;

    padding: 15px 25px;

    border: 1px solid white;

    color: white;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition: 0.3s;
}


.cv-button:hover {
    background: white;
    color: black;
}


/* =========================
   DETAILS
========================= */

.details {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    max-width: 1200px;
}


.detail-box {
    border-top: 1px solid #333333;

    padding-top: 25px;

    min-height: 170px;
}


.detail-box span {
    color: #666666;

    font-size: 13px;
}


.detail-box h3 {
    font-size: 22px;

    margin: 20px 0 15px;
}


.detail-box p {
    color: #888888;

    font-size: 15px;

    line-height: 1.5;
}


/* =========================
   UNIVERSITY LINK
========================= */

.detail-box a {
    display: inline-block;

    color: #888888;

    text-decoration: none;

    font-size: 15px;

    margin-bottom: 5px;

    transition: 0.3s;
}


.detail-box a:hover {
    color: white;

    transform: translateX(5px);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 1000px) {

    .details {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 800px) {

    .nav-links {
        gap: 20px;
    }


    .about-content {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .about-text {
        padding-top: 0;
    }

}


@media (max-width: 500px) {

    nav {
        padding: 0 5%;
    }


    .nav-links {
        gap: 12px;
    }


    .nav-links a {
        font-size: 11px;
    }


    .about-page {
        padding: 20px 5% 60px;
    }


    .about-heading h1 {
        font-size: 70px;
    }


    .details {
        grid-template-columns: 1fr;
    }

}
/* =========================
   PAGE TRANSITION
========================= */

body {
    opacity: 0;
    animation: pageFadeIn 0.6s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


body.page-exit {
    animation: pageFadeOut 0.4s ease forwards;
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}