body {
    font-family: "Courier New", Monospace;
    font-size: 21px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #000;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url("./images/videogame-sword.gif") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

/* Navigation */
nav {
    background: transparent;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav .logo img {
    height: 100px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1));
    margin: 0 10px;
}

.logo-text {
    font-family: "Press Start 2P", cursive;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1));
    color: #94bff3;
    font-size: 24px;
}

/* Main Content Container */
.glass {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    max-width: 790px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
    text-align: center;
    position: relative;
    animation: float 5s infinite;
    overflow-y: auto;
    max-height: 70vh;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Profile Section */
.profile-section .profile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-text {
    flex: 1;
    text-align: left;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.profile-section img {
    border-radius: 10px;
    width: 150px;
    height: 200px;
    margin-left: 20px;
    transition: transform 0.3s;
}

.profile-section img:hover {
    transform: scale(1.1);
}

/* Headings */
.animated-heading {
    font-family: "Press Start 2P", cursive;
    animation: fadeIn 1s ease-in-out;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    padding-left: 40px;
}

.animated-heading::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background-color: #94bff3;
    position: absolute;
    bottom: -10px;
    left: 0;
}

.dot {
    font-size: 30px;
    color: #94bff3;
    position: absolute;
    left: 0;
    top: -5px;
}

.nav-button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.nav-button img {
    width: 40px;
    height: 40px;
}

#prev-button {
    left: 10px;
}

#next-button {
    right: 10px;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.skill-category {
    text-align: left;
}

.skill-category h3 {
    color: #94bff3;
    font-family: "Press Start 2P", cursive;
    font-size: 16px;
    margin-bottom: 15px;
}

.skill-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-btn {
    background: rgba(148, 191, 243, 0.1);
    border: 2px solid #94bff3;
    border-radius: 5px;
    padding: 8px 15px;
    color: #000;
    font-family: "Courier New", Monospace;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-btn:hover {
    background: #94bff3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skill-btn.active {
    background: #94bff3;
    color: white;
}

/* Skill Description Box */
.skill-description-box {
    margin-top: 20px;
    background: rgba(148, 191, 243, 0.1);
    border: 2px solid #94bff3;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.skill-description-content {
    text-align: left;
}

.skill-description-content h4 {
    color: #94bff3;
    font-family: "Press Start 2P", cursive;
    font-size: 14px;
    margin-bottom: 10px;
}

.skill-description-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    transition: opacity 0.3s ease;
}

/* Certificates Section */
.certificates-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: 400px;
}

.cert-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.cert-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(148, 191, 243, 0.1);
    border-left: 4px solid #94bff3;
    border-radius: 0 5px 5px 0;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(148, 191, 243, 0.2);
    transform: translateX(5px);
}

.cert-icon {
    font-size: 24px;
    margin-right: 15px;
    opacity: 0.8;
}

.cert-info {
    flex: 1;
}

.cert-info h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-family: "Courier New", Monospace;
}

.cert-date {
    font-size: 14px;
    color: #666;
    display: block;
    margin-top: 4px;
}

.cert-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cert-issuer {
    font-size: 14px;
    color: black;
}

.view-cert-btn {
    background: transparent;
    border: 1px solid #94bff3;
    color: #94bff3;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-cert-btn:hover {
    background: #94bff3;
    color: white;
}
.cert-preview {
    flex: 1;
    background: rgba(148, 191, 243, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.preview-message {
    color: #666;
    font-style: italic;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 1000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    margin: 5px 0;
    font-size: 14.5px;
}

.social-icons {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive Styles with Fixes */
@media screen and (max-width: 768px) {
    body {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0;
        margin: 0;
        position: relative;
    }

    .glass {
        position: relative;
        width: 85%;
        height: auto;
        min-height: 60vh;
        max-height: 60vh;
        margin: 50px auto 80px;
        padding: 15px;
        overflow-y: auto;
        animation: float 5s infinite;
        -webkit-overflow-scrolling: touch;
        transform: none;
    }

    nav {
        background: transparent;
        padding: 3px 0;
    }

    .logo-container {
        scale: 0.7;
    }

    .content {
        padding: 10px;
        margin-bottom: 60px;
    }

    .profile-section .profile-container {
        flex-direction: column-reverse;
        gap: 15px;
        padding: 10px;
    }

    .profile-text {
        font-size: 18px;
        text-align: center;
        padding: 0 2px;
    }

    .profile-section img {
        margin: 10px auto;
        width: 120px;
        height: 160px;
    }

    .animated-heading {
        font-size: 18px;
        padding-left: 30px;
    }

    .nav-button {
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }

    .nav-button img {
        width: 20px;
        height: 20px;
    }

    #prev-button {
        left: 5px;
    }

    #next-button {
        right: 5px;
    }

    .certificates-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .cert-list {
        max-height: 300px;
    }

    .footer-content {
        padding: 4px 10px;
    }

    .footer-center p {
        font-size: 10px;
    }

    .social-icons {
        position: static;
        justify-content: center;
        margin-top: 8px;
        transform: none;
    }
}

/* Very Small Screens */
@media screen and (max-width: 360px) {
    .glass {
        width: 95%;
        margin: 100px auto 70px;
        padding: 10px;
    }

    .profile-text {
        font-size: 17px;
    }

    .logo-container {
        scale: 0.6;
    }

    .animated-heading {
        font-size: 18px;
    }
}

/* Landscape Mode */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .glass {
        margin: 90px auto 70px;
        max-height: 65vh;
    }

    .profile-section .profile-container {
        flex-direction: row;
        align-items: center;
    }

    .profile-text {
        font-size: 14px;
    }

    nav {
        padding: 2px 0;
    }

    .logo-container {
        scale: 0.6;
    }
}

/* Utility Classes */
.nav-fade {
    opacity: 0;
    pointer-events: none;
}

/* Scrollbar Styling */
.glass::-webkit-scrollbar,
.cert-list::-webkit-scrollbar {
    width: 6px;
}

.glass::-webkit-scrollbar-track,
.cert-list::-webkit-scrollbar-track {
    background: rgba(148, 191, 243, 0.1);
}

.glass::-webkit-scrollbar-thumb,
.cert-list::-webkit-scrollbar-thumb {
    background: #94bff3;
    border-radius: 3px;
}
/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
}

/* Project Card */
.project-card {
    background: rgba(148, 191, 243, 0.1);
    border: 2px solid #94bff3;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    background: rgba(148, 191, 243, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #94bff3;
}

.project-title {
    font-family: "Press Start 2P", cursive;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.project-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-link {
    color: #94bff3;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #fff;
    background-color: #94bff3;
    padding: 5px 10px;
    border-radius: 5px;
}

.github-link {
    margin-top: 30px;
    font-size: 16px;
    text-align: center;
}

.github-link a {
    color: #94bff3;
    text-decoration: none;
    font-weight: bold;
}

.github-link a:hover {
    text-decoration: underline;
}

.contact-email-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #94bff3;
    color: white;
    text-decoration: none;
    font-family: "Courier New", Monospace;
    font-size: 18px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.contact-email-btn:hover {
    background: #7ba8e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-social-icons .social-icon {
    color: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.contact-social-icons .social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.contact-social-icons .social-icon svg {
    width: 24px;
    height: 24px;
}

/* Blogs Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
}

/* Blog Card */
.blog-card {
    background: rgba(148, 191, 243, 0.1);
    border: 2px solid #94bff3;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    background: rgba(148, 191, 243, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-family: "Press Start 2P", cursive;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more-btn {
    color: #94bff3;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.read-more-btn:hover {
    color: #fff;
    background-color: #94bff3;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 10px;
    padding: 20px;
    margin: 15% auto;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
