:root {
    --header-color: rgba(7, 30, 23, 0.75);
    --primary-green: #239e23;
    --secondary-green: #37f637;
    --dimmed-green: #2d412d;
    --dark-bg: #0c1b14;
    --darker-bg: #041b0c;
    --light-text: #f1fff0a4;
    --header-text: #ceffcabb;
    --gray-text: #94a3b8;
    --accent: #efffee;
    --card-bg: rgba(15, 42, 31, 0.7);
    --transition: all 0.3s ease;
    --grid-color1: rgba(19, 220, 153, 0.123);
    --grid-color2:  rgba(19, 220, 153, 0.123);
    --shadow-color: rgba(16, 185, 129, 0.2);
    --border-color: rgba(16, 185, 129, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 75, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(59, 165, 246, 0.05) 0%, transparent 20%);
    z-index: -1;
}

h1,
h2,
h3,
h4 {
    color: var(--header-text);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.grid-pattern {
    z-index: -1;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    background-image:
        /* linear-gradient(var(--grid-color1) 1px, transparent 1px), */
        linear-gradient(85deg, var(--grid-color2) 1px, transparent 1px);
    background-size: 30px 30px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

#games p {
    margin-bottom: 1.5em;
}

.about-content p {
    color: var(--gray-text);
    font-size: 1.25em;
    line-height: 1.75em;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    text-align: justify;
}

.btn {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.btn:hover {
    background: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px var(--shadow-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--secondary-green);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: var(--header-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    background: linear-gradient(to right, var(--primary-green), var(--accent));
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: var(--primary-green);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    animation: pulse 2s infinite;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-green);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 30%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-green), var(--accent));
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--gray-text);
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: var(--gray-text);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border: 1px solid var(--dimmed-green);
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.portfolio-badge-dev {
    color: var(--secondary-green);
    background: var(--dimmed-green);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.portfolio-content h3 i {
    margin-right: 10px;
    color: var(--primary-green);
}

.portfolio-content p {
    color: var(--gray-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.portfolio-meta span {
    display: flex;
    align-items: center;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.portfolio-meta i {
    margin-right: 5px;
    color: var(--primary-green);
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-green);
}

.footer-column p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.1);
    color: var(--light-text);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a, .footer-links span {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover, .footer-links span:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-links a i, .footer-links span i {
    margin-right: 10px;
    font-size: 12px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

.large-link {
    text-align: center;
    font-size: 2rem;
    overflow-wrap: anywhere;
}

.large-link a {
    transition: var(--transition);
    text-decoration: none;
    color: var(--gray-text);
}

.large-link a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.large-link a i {
    margin-right: 4px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--darker-bg);
        transition: var(--transition);
        padding: 30px 0;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    section {
        padding: 60px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}