/* --- Global Variables & Reset --- */
:root {
    --bg-main: #050508;
    --bg-secondary: #0b0b10;
    --bg-card: #121218;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --neon-cyan: #00ffff;
    --neon-purple: #bc13fe;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo, .cta-button, .card-btn, .badge {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Utility Classes --- */
.highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.bg-dark-alt {
    background-color: var(--bg-secondary);
    border-top: 1px solid #ffffff10;
    border-bottom: 1px solid #ffffff10;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(10px); /* Glass effect */
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    height: 35px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-cyan);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at 50% 50%, #1a1a3a 0%, var(--bg-main) 70%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* Responsive font size */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--neon-cyan);
    color: var(--bg-main);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

/* --- Sections General --- */
.container {
    padding: 100px 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

/* decorative line under titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--neon-purple);
    margin: 20px auto 0;
    box-shadow: 0 0 10px var(--neon-purple);
}

/* --- Project Cards --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid #ffffff15;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 40px -10px rgba(0, 255, 255, 0.2);
}

.card-image {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Badges for game status */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--neon-cyan);
    padding: 5px 10px;
    font-size: 0.7rem;
    border-radius: 4px;
    border: 1px solid var(--neon-cyan);
}

/* Placeholder backgrounds */
.nebula-bg { background-image: linear-gradient(45deg, #3b1e65, #0b0b10); }
.starlight-bg { background-image: linear-gradient(45deg, #0f2c3e, #0b0b10); }

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--neon-cyan);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.card-btn {
    width: 100%;
    padding: 12px;
    background: #1e1e26;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.project-card:hover .card-btn {
    background: var(--neon-cyan);
    color: var(--bg-main);
}

/* --- About & Contact --- */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-content p {
    margin-bottom: 20px;
}

.contact-box {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid #ffffff10;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-box p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* --- Footer --- */
footer {
    background: #020203;
    padding: 50px 10% 20px;
    text-align: center;
    border-top: 1px solid #ffffff0d;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.copyright {
    color: #555;
    font-size: 0.9rem;
}

/* --- Reveal Animation States --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.5rem; }

    .footer-content { flex-direction: column; }
}