@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Code+Latin:wght@100..700&display=swap');

* {
    text-decoration: none;
    color: white;
}

body {
    background-color: #131316;
    color: #ffffff;
    font-family: 'M PLUS Code Latin', monospace;
    font-size: 24px;
    line-height: 1.5;
    padding: 0;
    margin: 0;
}

section {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 100vh;
}

.hidden {
    opacity: 0;
    filter: blur(80px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.image-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
    width: 100%;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.image-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.image-item:hover {
    transform: scale(1.05);
}

.image-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Overlay styles */
.overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background: #222;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.overlay-content iframe {
    width: 80vw;
    height: 60vh;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 16px;
}

.overlay-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive styles merged */
@media (max-width: 600px) {
    section {
        padding: 12px;
        text-align: center;
        font-size: 12px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 8px;
        padding-right: 8px;
    }

    #open-tab-btn,
    #close-overlay-btn {
        font-size: 12px;
        padding: 0.5em 1em;
    }

    .profile-pic {
        width: 90px;
        height: 90px;
    }

    .intro-text {
        font-size: 1rem;
        max-width: 90vw;
    }

    html body section.hidden.show div.profile-intro img.scroll-down {
        height: 100px;
    }
}

@media (min-width: 601px) and (max-width: 1200px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        padding-left: 24px;
        padding-right: 24px;
    }

    html body section.hidden.show div.profile-intro img.scroll-down {
        height: 100px;
    }
}

@media (min-width: 1201px) {
    .image-grid {
        grid-template-columns: repeat(4, 1fr);
        padding-left: 32px;
        padding-right: 32px;
    }

    html body section.hidden.show div.profile-intro img.scroll-down {
        height: 100px;
    }
}

/* Responsive button font size */
#open-tab-btn,
#close-overlay-btn {
    --neon: #39ff14;
    padding: 0.6em 1.2em;
    font-size: 14px;
    font-family: inherit;
    color: var(--neon);
    background: transparent;
    border: none;
    outline: 2px solid var(--neon);
    outline-offset: 0.3em;
    border-radius: 8px;
    box-shadow: 0 0 8px 2px #39ff1440;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 6px #39ff1440;
    margin: 0 6px;
    transition:
        outline-offset 0.3s,
        box-shadow 0.3s,
        color 0.3s,
        background 0.3s,
        transform 0.15s;
}

#open-tab-btn:hover,
#close-overlay-btn:hover,
#open-tab-btn:focus-visible,
#close-overlay-btn:focus-visible {
    outline-offset: 0.1em;
    color: #ffffff;
    background: #39ff1420;
    box-shadow: 0 0 16px 4px #39ff1460;
    transform: scale(1.04);
    text-shadow: 0 0 12px #39ff1440;
    animation: neonPulse 0.7s alternate infinite;
    will-change: transform, opacity;
}

#open-tab-btn:active,
#close-overlay-btn:active {
    transform: scale(0.97);
    box-shadow: 0 0 24px 8px #39ff1430;
    background: #39ff1430;
    color: #fff;
}

@keyframes neonPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

.profile-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
}

#open-tab-btn,
#close-overlay-btn {
    will-change: transform, opacity;
}

.scroll-down {
    height: 40px;
    animation: bounce 2s infinite;
    will-change: transform, opacity;
}

.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #39ff14;
    box-shadow: 0 0 150px #37ff1485;
    margin-bottom: 8px;
}

.intro-text {
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    max-width: 320px;
}

.intro-text h3 {
    margin: 0 0 8px 0;
    color: #39ff14;
    font-size: 1.3rem;
    font-weight: 700;
}

.scroll-down {
    /* height: 40px; */
    animation: bounce 2s infinite;
    will-change: transform;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.accolades-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.neon-link {
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.neon-link:hover {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00;
    transform: scale(1.05);
}

.cert-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.cert-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-link:hover .cert-image {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 255, 0, 0.4);
    /* Neon green glow */
}

@media (max-width: 600px) {
    .cert-image {
        max-width: 90%;
    }
}