:root {
    --background: #0d0d0d;
    --primary-blue: #0f1f3a;
    --accent-green: #00ff95;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-light);
}

/* Header */

header {
    background-color: var(--primary-blue);
    padding: 20px;
    text-align: center;
}

h1,
h2 {
    font-family: 'Fira Code', 'Inter', Arial, sans-serif;
}

nav {
    margin-top: 10px;
}

nav a {
    color: var(--accent-green);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-light);
}

/* Intro Section */

.intro {
    text-align: center;
    padding: 50px 20px;
}

.intro h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--accent-green);
}

.intro p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.button-group {
    margin-top: 40px;
}

.button-group a {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    background-color: var(--primary-blue);
    color: var(--accent-green);
    font-weight: bold;
    text-decoration: none;
    border: 2px solid var(--accent-green);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.button-group a:hover {
    background-color: var(--accent-green);
    color: var(--background);
    transform: scale(1.05);
}

/* About Section */

.about-section {
    background-color: #0f1f3a;
    padding: 80px 20px;
    color: var(--text-light);
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.about-text {
    flex: 1 1 400px;
    padding: 20px;
}

.about-text h2 {
    font-family: 'Fira Code', 'Inter', Arial, sans-serif;
    color: var(--accent-green);
    font-size: 2em;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.6em;
    color: var(--text-muted);
}

.about-image {
    flex: 1 1 300px;
    padding: 20px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--accent-green);
}

/* Games Section */

.projects-section {
    background-color: var(--background);
    padding: 80px 20px;
    text-align: center;
}

.projects-section h2 {
    font-family: 'Fira Code', 'Inter', Arial, sans-serif;
    color: var(--accent-green);
    font-size: 2em;
    margin-bottom: 40px;
}

/* Buttons in Projects */

.learn-more {
    text-align: right;
    margin-top: 20px;
}

.learn-more a {
    display: inline-block;
    font-family: 'Fira Code', 'Inter', Arial, sans-serif;
    font-size: 0.9em;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--accent-green);
    padding: 8px 12px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.learn-more a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-green);
    transition: width 0.4s ease;
    z-index: 0;
}

.learn-more a span {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.learn-more a:hover::before {
    width: 100%;
    left: 0;
    right: auto;
}

.learn-more a:hover span.text {
    opacity: 0;
}

.learn-more a:hover span.arrow {
    color: var(--background);
}

/* Featured Project */

.featured-project {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--primary-blue);
    border: 2px solid var(--accent-green);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.featured-project img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.project-text {
    padding: 20px;
}

.project-text h3 {
    font-family: 'Fira Code', 'Inter', Arial, sans-serif;
    color: var(--accent-green);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.project-text p {
    color: var(--text-muted);
    font-size: 1.1em;
    line-height: 1.5em;
}

/* Smaller Projects Row */

.projects-grid-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.small-project {
    flex: 1 1 45%;
    background-color: var(--primary-blue);
    border: 2px solid var(--accent-green);
    border-radius: 10px;
    max-width: 500px;
    text-align: left;
    padding: 20px;
}

.small-project img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.small-project h3 {
    font-family: 'Fira Code', 'Inter', Arial, sans-serif;
    color: var(--accent-green);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.small-project p {
    color: var(--text-muted);
    font-size: 1em;
    line-height: 1.4em;
}

/* Tools Section */

.tools-section {
    background-color: var(--primary-blue);
    padding: 80px 20px;
    text-align: center;
}

.tools-section h2 {
    font-family: 'Fira Code', 'Inter', Arial, sans-serif;
    color: var(--accent-green);
    font-size: 2em;
    margin-bottom: 40px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background-color: var(--background);
    border: 2px solid var(--accent-green);
    border-radius: 10px;
    max-width: 350px;
    text-align: left;
    padding: 20px;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: scale(1.05);
}

.tool-card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-family: 'Fira Code', 'Inter', Arial, sans-serif;
    color: var(--accent-green);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 1em;
    line-height: 1.4em;
}

/* Contact Section */

.contact-section {
    background-color: var(--background);
    padding: 80px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    font-family: 'Fira Code', 'Inter', Arial, sans-serif;
    color: var(--accent-green);
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.2em;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section a {
    color: var(--accent-green);
    font-weight: bold;
    text-decoration: none;
}

.contact-section a:hover {
    color: var(--text-light);
}

/* Form */

form {
    max-width: 600px;
    margin: 40px auto 0 auto;
    text-align: left;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: 2px solid var(--accent-green);
    border-radius: 5px;
    font-size: 1em;
}

button[type="submit"] {
    background-color: var(--primary-blue);
    color: var(--accent-green);
    font-weight: bold;
    padding: 12px 24px;
    font-size: 1em;
    border: 2px solid var(--accent-green);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: var(--accent-green);
    color: var(--background);
}

/* Footer */

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: var(--text-muted);
    background-color: var(--primary-blue);
}

/* Animations */

/* Base hidden state */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll animations */
.fade-in-up {
    transform: translateY(20px);
}

.fade-in-down {
    transform: translateY(-20px);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .intro h1 {
        font-size: 2em;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        display: inline-block;
        margin: 10px 8px;
        font-size: 0.9em;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        flex: 1 1 100%;
    }

    .about-image {
        flex: 1 1 100%;
        margin-top: 20px;
    }

    .projects-grid-row {
        flex-direction: column;
    }

    .small-project,
    .featured-project {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .tool-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .intro h1 {
        font-size: 1.6em;
    }

    .intro p {
        font-size: 1em;
    }

    nav a {
        font-size: 0.85em;
        margin: 8px 5px;
    }

    .about-text p {
        font-size: 1em;
    }

    .project-text h3,
    .small-project h3,
    .tool-card h3 {
        font-size: 1em;
    }

    .project-text p,
    .small-project p,
    .tool-card p {
        font-size: 0.95em;
    }

    .contact-section h2 {
        font-size: 1.5em;
    }

    .contact-button {
        font-size: 1em;
        padding: 10px 18px;
    }
}
