body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "ArcadeClassic", sans-serif;
    font-size: 20px;
}

.navigation-box {
    display: flex;
    background-color: black;
    border-radius: 15px;
    padding: 10px;
    margin: 5px 0;
    justify-content: center;
}
.footer-box {
    display: flex;
    background-color: black;
    border-radius: 15px;
    padding: 10px;
    margin: 5px 0;
    justify-content: center;
}

.nav-item, .footer-item {
    font-size: 1em;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-item:hover {
    background-color: white;
    color: black;
    cursor: pointer;
}

.outside-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    width: auto;
    border-radius: 15px;
    padding: 10px;
}

.sections-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.about-me-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    width: 48%;
    border-radius: 15px;
    padding: 10px;
    margin: 1em 0;
    border: 2px solid white;
    text-align: center;
}

.about-me-section h2 {
    color: white;
    font-size: 35px;
}

.about-me-section p {
    color: white;
    font-size: 30px;
    text-align: center;
    margin: 1em;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid white;
    width: 48%;
    border-radius: 15px;
    padding: 10px;
    margin: 1em 0;
    background-color: black;
}

.contact-section h2 {
    color: white;
    font-size: 35px;
}

.contact-section p {
    color: white;
    font-size: 30px;
}

.social-links {
    margin-top: 30px;
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a {
    color: rgb(252, 252, 252);
    font-size: 3.5em;
    margin: 0 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #333;
}

/* Project Styles */
.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    width: 280px;
    min-height: 160px;
    background: #000;
    border: 3px solid #fff;
    border-radius: 0;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 0 3px #000, 0 0 0 6px #fff;
    image-rendering: pixelated;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 4px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px #000, 0 0 0 6px #fff, 0 0 20px rgba(255, 255, 255, 0.5);
}

.project-icon {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    image-rendering: pixelated;
}

.project-icon i {
    font-size: 24px;
    color: #000;
}

.project-content {
    position: relative;
    z-index: 2;
}

.project-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 2px;
}

.project-issuer {
    color: #fff;
    font-size: 14px;
    margin: 0 0 6px 0;
    font-weight: 500;
    text-shadow: 1px 1px 0px #000;
    letter-spacing: 1px;
}

.project-description {
    color: #ccc;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 0px #000;
    letter-spacing: 1px;
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0px #000;
}

.project-card:hover .project-badge {
    color: #ffff00;
    transform: scale(1.1);
}

/* Responsive Design for Projects */
@media only screen and (max-width: 768px) {
    .project-container {
        justify-content: center;
        gap: 15px;
        padding: 10px;
    }

    .project-card {
        width: 100%;
        max-width: 280px;
        min-height: 160px;
        padding: 15px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-issuer {
        font-size: 12px;
    }

    .project-description {
        font-size: 10px;
    }

    .project-icon {
        width: 40px;
        height: 40px;
    }

    .project-icon i {
        font-size: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .project-card {
        padding: 12px;
        min-height: 140px;
        max-width: 250px;
    }

    .project-title {
        font-size: 16px;
    }

    .project-issuer {
        font-size: 11px;
    }

    .project-description {
        font-size: 9px;
    }

    .project-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 12px;
    }

    .project-icon i {
        font-size: 16px;
    }
}

.project-item {
    position: relative;
    width: 250px;
    height: 250px;
    background-color: lightgray;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.project-name {
    font-size: 1.5em;
    color: white;
    font-style: italic;
    text-align: center;
    z-index: 2;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    letter-spacing: 2px;
}

.project-details {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 100%;
    text-align: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    letter-spacing: 1px;
}

.project-item:hover .project-details {
    opacity: 1;
}

@font-face {
    font-family: "ArcadeClassic";
    src: url("https://db.onlinewebfonts.com/t/e56a870b21f646b6839a20f19401fcd7.eot");
    src: url("https://db.onlinewebfonts.com/t/e56a870b21f646b6839a20f19401fcd7.eot?#iefix") format("embedded-opentype"),
         url("https://db.onlinewebfonts.com/t/e56a870b21f646b6839a20f19401fcd7.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/e56a870b21f646b6839a20f19401fcd7.woff") format("woff"),
         url("https://db.onlinewebfonts.com/t/e56a870b21f646b6839a20f19401fcd7.ttf") format("truetype"),
         url("https://db.onlinewebfonts.com/t/e56a870b21f646b6839a20f19401fcd7.svg#ArcadeClassic") format("svg");
}

/* Game Section Styles */
.game-section {
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    width: 90%;
    box-sizing: border-box;
}
.game-section h2 {
    color: white;
    font-size: 25px;
}

.game-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem auto;
}

#dino {
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dino svg {
    width: 100%;
    height: 100%;
}

#cactus {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cactus svg {
    width: 100%;
    height: 100%;
}

#score {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

#game-over {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#game-over:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

#game-over i {
    font-size: 2rem;
}

#game-over button {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 1rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

#game-over button:hover {
    background: #ccc;
}

.jump {
    animation: jump 0.5s linear;
}

@keyframes jump {
    0% { bottom: 0; }
    50% { bottom: 100px; }
    100% { bottom: 0; }
}

/* Specific Resolution for Vertical Layout */
@media only screen and (min-width: 1600px) and (min-height: 2600px) {
    .sections-container {
        flex-direction: column !important;
        align-items: center;
        gap: 30px;
        width: 70%;
    }

    .about-me-section, .contact-section {
        width: 90% !important;
        margin: 0;
        flex: none !important;
        margin-top: 3em;
    }

    .game-section {
        width: 85% !important;

        margin-top: 30px;
    }
}

/* 2K and Higher Resolution */
@media only screen and (min-width: 2560px) {

    .about-me-section, .contact-section {
        width: 37% !important;
        padding: 1.5em;
        height: 70%;
        border: 2px solid white;
    }

    .about-me-section h2, .contact-section h2 {
        font-size: 25px;
        margin-bottom: 0.3em;
        margin-top: -0.5em;
    }

    .about-me-section p, .contact-section p {
        font-size: 18px;
        line-height: 1.5;
        margin: 10px 0;
    }

    .nav-item, .footer-item {
        font-size: 1.5em;
    }

    .game-section {
        width: 70%;
        padding: 3rem;
    }

    .game-container {
        height: 300px;
    }

    .sections-container {
        max-width: 2000px;
        margin: 0 auto;
    }
}

/* Full HD Resolution */
@media only screen and (min-width: 1920px) {
    .sections-container {
        margin: 1em auto;
        word-spacing: 0.3em;
        justify-content: center;
    }
    .outside-box {
        height: 70%;
    }

    .about-me-section, .contact-section {
        width: 37% !important;
        padding: 1.5em;
        height: 70%;
        border: 2px solid white;
    }

    .about-me-section h2, .contact-section h2 {
        font-size: 25px;
        margin-bottom: 0.3em;
        margin-top: -0.5em;
    }

    .about-me-section p, .contact-section p {
        font-size: 18px;
        line-height: 1.5;
        margin: 10px 0;
    }

    .social-links {
        margin-top: 30px;
    }

    .social-links a {
        font-size: 1.5em;
        margin: 0 25px;
    }

    .game-section {
        width: 80% !important;
        margin-top: -2em;
        padding: 0em;
    }

    .game-section h2 {
        font-size: 25px;
        margin-bottom: -0.5em;
    }

    .game-container {
        height: 200px;
        border: 2px solid white;
    }

    .nav-item, .footer-item {
        font-size: 0.8em;
    }

    .footer-item {
        font-size: 0.7em;
        padding: 10px;
    }

    .navigation-box {
        padding: 10px;
        margin: 5px 0;
    }
}

/* Tablet Portrait */
@media only screen and (max-width: 1025px) {
    .sections-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px;
        word-spacing: 0.3em;
    }

    .about-me-section, .contact-section {
        width: 85%;
        margin: 0;
    }

    body {
        font-size: 25px;
    }

    .game-section {
        width: 93%;
        margin: 30px auto;
    }

    .about-me-section h2, .contact-section h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .about-me-section p, .contact-section p {
        font-size: 25px;
        line-height: 1.4;
    }
}
@media only screen and (max-width: 1919px) {
    .sections-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px;
        word-spacing: 0.3em;
    }

    .about-me-section, .contact-section {
        width: 85%;
        margin: 0;
    }

    body {
        font-size: 25px;
    }

    .game-section {
        width: 90%;
        margin: 30px auto;
    }

    .about-me-section h2, .contact-section h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .about-me-section p, .contact-section p {
        font-size: 25px;
        line-height: 1.4;
    }
    .footer-item {
        font-size: 0.7em;
        padding: 10px;
    }
    .social-links a {
        font-size: 1.5em;
    }
}

/* Mobile Portrait */
@media only screen and (max-width: 480px) {



    .about-me-section, .contact-section {
        width: 80%;

    }
    .about-me-section h2, .contact-section h2 {
        font-size: 0.5em;
        margin-bottom: 0.3em;
        margin-top: 0.5em;
    }
    .about-me-section p, .contact-section p {
        font-size: 0.4em;
        line-height: 1.4;
    }

    .navigation-box {
        border-radius: 10px;
        padding: 0.1em;
    }

    .social-links a {
        font-size: 1em;
    }

    .sections-container {
        flex-direction: column;
        align-items: center;

    }
    .nav-item {
        font-size: 0.4em;
    }
    .footer-item {
        font-size: 0.3em;
        padding: 10px;
    }

    .project-item {
        width: 200px;
        height: 200px;
    }

    .project-name {
        font-size: 1.2em;
        letter-spacing: 1px;
    }

    /* Certificate specific styles for mobile */
    .outside-box h1 {
        font-size: 0.8em;
        margin-bottom: 1em;
    }

}

/* Small Mobile Portrait */
@media only screen and (max-width: 320px) {
    .flex-item1, .flex-item2, .game-section {
        width: 100%;
    }

}

/* Mobile Responsive Styles for Game */
@media screen and (max-width: 480px) {
    .game-section {
        width: 100%;
        margin-top: -2em;
        margin-bottom: -2em;
    }
    .game-section h2 {
        font-size: 0.4em;
        margin-bottom: -2em;
    }

    .game-container {
        height: 120px;
    }

    #dino {
        width: 20px;
        height: 35px;
        left: 30px;
    }

    #cactus {
        width: 10px;
        height: 25px;
    }

    #score {
        font-size: 0.3em;
    }
    .outside-box {
        height: auto;
    }
}

#play-button {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

#play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

#play-button i {
    font-size: 2rem;
}

#resolution-display {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 24px;
    z-index: 1000;
    display: none; /* Hidden by default */
}

@media screen and (max-width: 480px) {
    #resolution-display {
        font-size: 12px;
        bottom: 5px;
        right: 5px;
    }
}

/* 4K Resolution Specific Styles */
@media only screen and (min-width: 3840px) {
    .sections-container {
        max-width: 3000px;
        margin: 2em auto;
        gap: 30px;
        display: flex;
        justify-content: space-between;
        word-spacing: 0.3em;
        padding: 0 30px;
    }
    .nav-item, .footer-item {
        font-size: 30px;
    }

    .about-me-section, .contact-section {
        width: 48% !important;
        margin: 1em 0;
        padding: 30px;
        height: 90%;
        border: 2px solid white;
    }

    .about-me-section h2, .contact-section h2 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .about-me-section p, .contact-section p {
        font-size: 35px;
        line-height: 1.5;
        margin: 20px 0;
    }

    .social-links {
        margin-top: 30px;
    }

    .social-links a {
        font-size: 4em;
        margin: 0 25px;
    }

    .game-section {
        width: 70% !important;
        margin: 30px auto;
        padding: 30px;
    }

    .game-section h2 {
        font-size: 35px;
        margin-bottom: 25px;
    }

    .game-container {
        height: 350px;
        border: 2px solid white;
    }

    .footer-item {
        font-size: 1em;
        padding: 10px;
    }

    .navigation-box {
        padding: 10px;
        margin: 5px 0;
    }
}

/* Specific Resolution for Vertical Layout */
@media only screen and (min-width: 1600px) and (min-height: 2600px) {
    .sections-container {
        flex-direction: column !important;
        align-items: center;
        gap: 30px;
        width: 70%;
    }

    .about-me-section, .contact-section {
        width: 90% !important;
        margin: 0;
        flex: none !important;
        margin-top: 3em;
    }

    .game-section {
        width: 85% !important;

        margin-top: 30px;
    }
}

/* Certificate Styles */
.certificate-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-card {
    position: relative;
    width: 280px;
    min-height: 160px;
    background: #000;
    border: 3px solid #fff;
    border-radius: 0;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 0 0 3px #000, 0 0 0 6px #fff;
    image-rendering: pixelated;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 4px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.certificate-card:hover::before {
    opacity: 1;
}

.certificate-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px #000, 0 0 0 6px #fff, 0 0 20px rgba(255, 255, 255, 0.5);
}

.certificate-icon {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    image-rendering: pixelated;
}

.certificate-icon i {
    font-size: 24px;
    color: #000;
}

.certificate-content {
    position: relative;
    z-index: 2;
}

.certificate-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 2px;
}

.certificate-issuer {
    color: #fff;
    font-size: 14px;
    margin: 0 0 6px 0;
    font-weight: 500;
    text-shadow: 1px 1px 0px #000;
    letter-spacing: 1px;
}

.certificate-description {
    color: #ccc;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 0px #000;
    letter-spacing: 1px;
}

.certificate-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0px #000;
}

.certificate-card:hover .certificate-badge {
    color: #ffff00;
    transform: scale(1.1);
}

/* Responsive Design for Certificates */
@media only screen and (max-width: 768px) {
    .certificate-container {
        justify-content: center;
        gap: 15px;
        padding: 10px;
    }

    .certificate-card {
        width: 100%;
        max-width: 280px;
        min-height: 160px;
        padding: 15px;
    }

    .certificate-title {
        font-size: 18px;
    }

    .certificate-issuer {
        font-size: 12px;
    }

    .certificate-description {
        font-size: 10px;
    }

    .certificate-icon {
        width: 40px;
        height: 40px;
    }

    .certificate-icon i {
        font-size: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .certificate-card {
        padding: 12px;
        min-height: 140px;
        max-width: 250px;
    }

    .certificate-title {
        font-size: 16px;
    }

    .certificate-issuer {
        font-size: 11px;
    }

    .certificate-description {
        font-size: 9px;
    }

    .certificate-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 12px;
    }

    .certificate-icon i {
        font-size: 16px;
    }
}
