* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #4E4E4E;
    font-family: 'Inter', sans-serif;
}


.fade-content-40,
.fade-content-60 {
    opacity: 0;
    display: none; /* Start hidden to prevent flash */
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.frame {
    background-color: #4E4E4E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-40 {
    flex: 0 0 40%;
    position: relative;
}

.frame-60 {
    flex: 0 0 60%;
}

.logo {
    position: absolute;
    top: 37px;
    left: 144px;
    font-family: 'Faster One', cursive;
    font-size: 2.5rem;
    width: 509px;
    height: 49px;
    line-height: 49px;
    text-align: center;
    color: #00D0FF;
}

.intro-text {
    position: absolute;
    top: 387px;
    left: 144px;
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    width: 509px;
    height: 57px;
    line-height: 57px;
    color: #ffffff;
}

.name-text {
    position: absolute;
    top: 444px;
    left: 144px;
    font-family: 'Inter', sans-serif;
    font-size: 60px;
    font-weight: bold;
    width: 509px;
    height: 57px;
    line-height: 57px;
    color: #ffffff;
}

.description-text {
    position: absolute;
    top: 501px;
    left: 144px;
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    width: 509px;
    height: 192px;
    line-height: 1.4;
    color: #ffffff;
}

.description-text .highlight {
    font-weight: bold;
    color: #00D0FF;
    font-size: 50px;
}

.frame-60 {
    flex: 0 0 60%;
    position: relative;
    background-color: #4E4E4E;
}

.pfp-image {
    position: absolute;
    top: 247px;
    left: 297px;
    width: 500px;
    height: 586px;
    object-fit: cover;
}


.frame-60 {
    flex: 0 0 60%;
    position: relative;
    background-color: #4E4E4E;
}

.navbar {
    position: absolute;
    top: 37px;
    left: 50%;
    transform: translateX(-50%);
    width: 770px;
    height: 49px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.nav-button {
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
    padding: 0 10px;
    cursor: pointer;
    user-select: none;
}

.nav-button {
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
    padding: 0 10px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.nav-button:hover {
    transform: scale(1.1);
    text-shadow: 0 10px 50px #00D0FF;
}

.nav-button.active {
    color: #00D0FF;
}

.nav-button.active:hover {
    transform: scale(1.1);
    text-shadow: 0 10px 50px #00D0FF;
}

/* Containers for sliding effect */
.container {
    position: relative;
    overflow: hidden; /* hide overflow during animation */
}

/* Slide left frame out */
.frame-40.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

/* Slide left frame in */
.frame-40.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

/* Slide keyframes */
@keyframes slideOutLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Frame-60 should stay on top and fade while new page loads */
.frame-60 {
    position: relative;
    z-index: 2; /* above frame-40 */
    transition: opacity 0.5s ease;
}

.pfp2-image {
    position: absolute;
    top: 198px;
    left: 50%px;
    transform: translateX(-50%);
    width: 600px;
    height: 700px;
}
.custom-grid {
    position: absolute;
    left: 74px;
    top: 192px;
    display: grid;
    grid-template-columns: repeat(3, 263px);
    grid-template-rows: repeat(3, 186px);
    column-gap: 46px;
    row-gap: 44px;
}

.certificates {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.certificate {
    flex: 1 1 45%;
    max-width: 300px;
    cursor: pointer;
    background-color: #393939;
    padding: 10px;
    border-radius: 10px;
    box-shadow:
    inset 0 0 15px rgba(0, 208, 255, 0.2),
    0 0 25px rgba(0, 208, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.3s;
    text-align: center;
}

.certificate:hover {
    transform: scale(1.05);
    box-shadow:
    inset 0 0 20px rgba(0, 208, 255, 0.3),
    0 0 35px rgba(0, 208, 255, 0.5);
}

.certificate img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
}

.certificate p {
    margin-top: 10px;
    font-size: 18px;
    color: white;
}

/* Modal styles */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 40px #00D0FF;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #00D0FF;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.modal-close:hover {
    color: #ffffff;
}

#modal-caption {
margin: 15px auto;
text-align: center;
color: white;
font-size: 22px;
max-width: 90%;
}





