html {
    scroll-behavior: smooth;
}

body {
    background-color: #121212;
    color: limegreen;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
}
.navbar {
    background: var(--nav-bg-color, #1a1a1a);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: var(--nav-text-color, #ffffff);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--nav-text-color, #ffffff);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: limegreen;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--nav-text-color, #ffffff);
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--nav-text-color, #ffffff);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.navbar-toggler.active .hamburger {
    background: transparent;
}

.navbar-toggler.active .hamburger::before {
    transform: rotate(45deg);
}

.navbar-toggler.active .hamburger::after {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg-color, #1a1a1a);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}
.header-content {
    padding: 20px 0;
}

.profile-section {
    display: flex;
    gap: 30px;
    align-items: center;
}
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 2.5rem 0;
    padding: 0 1rem;
}

.tool-card {
    background: linear-gradient(145deg, #333333, #2a2a2a);
    border: 2px solid limegreen;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, limegreen, #ffcc00);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(50, 205, 50, 0.3);
}

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

.tool-card h3 {
    color: limegreen;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.tool-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: limegreen;
}

.tool-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-card li {
    color: #fff;
    padding: 0.8rem 0;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    margin: 0.5rem 0;
}

.tool-card li:hover {
    color: limegreen;
    transform: translateX(10px);
}

.tool-card li::before {
    content: '▹';
    color: limegreen;
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.tool-card li:hover::before {
    opacity: 1;
    transform: translateX(-20px);
}

@media (max-width: 768px) {
    .tools-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-card h3 {
        font-size: 1.2rem;
    }
    
    .tool-card li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .tools-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1rem;
    }
}
.avatar-container {
    flex-shrink: 0;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    min-width: 0; 
}

.username {
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.intro {
    font-size: 1rem;
    line-height: 1.6;
    color: white;
}

@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .avatar-container {
        margin-bottom: 20px;
    }

    .profile-avatar {
        width: 150px;
        height: 150px;
    }

    .username {
        font-size: 2rem;
    }

    .intro {
        font-size: 0.9rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .username {
        font-size: 1.8rem;
    }

    .intro {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

.intro {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    text-align: justify;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

main h1, 
main h2, 
main h3, 
main h4, 
main h5, 
main h6,
main p {
    text-align: center;
}

.game-container p,
.game-message,
.form-group label,
.game-container h2 {
    text-align: center;
}
#numberguesser p,
#guesscountry p,
#birthday p,
.progress-container {
    text-align: center;
}

.project-card h3 {
    text-align: center;
}

.project-card .btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

main section {
    margin-bottom: 3rem;
}

.text-left {
    text-align: left !important;
}
a {
    color: limegreen; 
    text-decoration: none; 
    transition: color 0.3s ease;
}

a:hover {
    color: #ffcc00; 
    text-decoration: underline;
}

.lore {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
}

.info-list {
    list-style-type: none;
    padding: 0;
}

.info-list li {
    font-size: 1.2em;
    margin-bottom: 10px;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.info-list li:hover {
    background-color: limegreen;
    color: black;
    transform: scale(1.05);
}

.info-list li strong {
    color: green; 
}

.lore-text {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s forwards;
    font-size: 1.1em; 
    line-height: 1.6; 
    margin-top: 20px; 
}

.btn {
    display: inline-block;
    background-color: limegreen;
    color: black;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #ffcc00;
    color: #000;
    transform: scale(1.1);
}

#rangerbot-title,
#java-title,
#doomhyena-title {
    font-size: 1.5em;
    color: limegreen;
    margin-bottom: 10px;
}

#rangerbot-description,
#java-description,
#doomhyena-description {
    font-size: 1em;
    color: #ddd;
    margin-bottom: 15px;
}

#rangerbot-link,
#java-link,
#doomhyena-link {
    font-weight: bold;
}

#contact-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    color: limegreen;
}

#FooterP {
    font-size: 0.9em;
    color: #888;
}

section {
    padding: 40px;
    margin: 20px 0;
    border-radius: 10px;
}

.skills {
    text-align: center;
    margin-top: 20px;
}

.skills ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skills li {
    background-color: #2c2c2c; 
    color: #ffcc00; 
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1em;
    box-shadow: 0 4px  8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.skills li:hover {
    transform: scale(1.1); 
    background-color: limegreen;
    color: black;
}

canvas {
    display: block;
    margin: 0 auto;
    width: 80% !important;
    height: 400px; 
    background-color: transparent; 
    border: 2px solid limegreen;
    border-radius: 10px;
}
canvas#radarChart {
    min-height: 300px;
    max-height: 500px;
    width: 100% !important;
    margin: 20px auto;
}

@media (max-width: 768px) {
    canvas#radarChart {
        min-height: 250px;
        max-height: 400px;
    }
}

@media (max-width: 512px) {
    canvas#radarChart {
        min-height: 200px;
        max-height: 300px;
    }
}

.projects {
    padding: 4rem 0;
    background: var(--bg-color);
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.projects h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto;
    border-radius: 2px;
}

.projects-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 20px;
}

.project-card {
    background: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.project-card:hover::before {
    width: 6px;
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--heading-color);
    font-weight: 600;
}

.project-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-card .btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--accent-color);
    color: var(--btn-text-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.project-card .btn:hover {
    background: var(--accent-color-hover);
    transform: translateX(5px);
}

:root {
    --bg-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --accent-color: limegreen;
    --accent-color-hover: #ffcc00;
    --heading-color: #2d3436;
    --text-color: #636e72;
    --btn-text-color: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --card-bg-color: #2d2d2d;
        --heading-color: #ffffff;
        --text-color: #b0b0b0;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 3rem 0;
    }

    .projects h2 {
        font-size: 2rem;
    }

    .project-card {
        padding: 2rem;
    }

    .project-card h3 {
        font-size: 1.5rem;
    }

    .project-card p {
        font-size: 1rem;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

form {
    background-color: #1a1a1a;
    border: 1px solid limegreen;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-size: 1.2em;
    color: limegreen;
    margin-bottom: 5px;
}

form input,
form textarea {
    background-color: #333;
    color: limegreen;
    border: 1px solid limegreen;
    border-radius: 5px;
    padding: 10px;
    font-size: 1em;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 5px #ffcc00;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    background-color: limegreen;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

form button:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}

.feedback {
    text-align: center;
    font-size: 1.1em;
    margin-top: 10px;
}
.game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.game-form {
    margin: 20px 0;
}

.form-group {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-input {
    padding: 10px 15px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
}

.game-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 8px;
    background-color: var(--message-bg, #f8f9fa);
}

.flag-image {
    max-width: 300px;
    height: auto;
    margin: 20px auto;
    display: block;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
}

.progress-container {
    margin: 20px 0;
    padding: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--progress-bg, #ddd);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--progress-fill, #4CAF50);
    transition: width 0.3s ease;
}
@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }

    .form-input {
        max-width: 250px;
    }

    .flag-image {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .form-input {
        max-width: 200px;
    }

    .flag-image {
        max-width: 200px;
    }
}
.progress-container {
    background-color: #333;
    border: 2px solid limegreen;
    border-radius: 10px;
    width: 100%;
    height: 30px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    background: linear-gradient(90deg, limegreen, #333);
    height: 100%;
    line-height: 30px;
    text-align: center;
    color: black;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 8px 0 0 8px;
    transition: width 0.5s ease-in-out;
}

.hobbies ul,
.gaming-stats ul,
.favorite-music ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: center;
}

.hobbies li,
.gaming-stats li,
.favorite-music li {
    margin: 10px 0;
}

.project-card ul {
    margin-top: 15px;
}

.project-card li {
    margin: 8px 0;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.header-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .project-card {
        margin-bottom: 20px;
    }
}

#social {
    background-color: #1a1a1a;
    color: #fff;
}
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.social-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
}

.social-buttons .btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .social-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 40px;
        max-width: 500px;
        margin: 0 auto;
        padding: 15px 30px; 
    }

    .social-buttons .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        width: 100%;
        white-space: nowrap; 
    }
}

@media (max-width: 480px) {
    .social-buttons {
        gap: 12px 30px; 
        padding: 10px 20px;
        max-width: 400px;
    }

    .social-buttons .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .social-buttons {
        gap: 10px 20px;
        padding: 10px;
    }
}

footer {
    text-align: center;
    background-color: #1a1a1a;
    padding: 20px;
    color: #fff;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: limegreen;
    color: black;
    border: none;
    width: 50px;
    height: 50px; 
    font-size: 1.5em; 
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center; 
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .avatar img {
        max-width: 200px;
        margin: 20px auto;
    }

    .project-card {
        margin-bottom: 20px;
    }

    .social-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}

.scroll-to-top.visible {
    display: flex; 
    opacity: 1;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}


.scroll-to-top:hover {
    background-color: #ffcc00;
}


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

@keyframes typingEffect {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; } 
}
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}