@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Press+Start+2P&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --primary-color: #00f2ea;
    --secondary-color: #7b2cbf;
    --card-bg: rgba(20, 20, 22, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

header {
    padding: 1.5rem 0;
    animation: fadeInDown 1s ease-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--primary-color);
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInUp 1s ease-out;
}

.hero h1 .highlight {
    color: var(--primary-color);
    display: block;
    -webkit-text-fill-color: var(--primary-color);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #a0a0a0;
    line-height: 1.6;
    animation: slideInUp 1s ease-out 0.2s;
    animation-fill-mode: backwards;
}

.hero .btn {
     animation: slideInUp 1s ease-out 0.4s;
     animation-fill-mode: backwards;
}

.services {
    padding: 6rem 0;
}

.services h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 4rem;
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, var(--primary-color), transparent 70%);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 242, 234, 0.1);
}

.service-card:hover::before {
    opacity: 0.1;
    transform: scaleY(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: #a0a0a0;
    line-height: 1.6;
}

footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

footer .logo {
     margin-bottom: 1rem;
}

footer p {
    color: #777;
}

.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.5s ease-in-out;
    border-left: 4px solid var(--primary-color);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.game-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-menu-overlay.visible {
    display: flex;
    opacity: 1;
}

#game-menu-canvas {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    text-shadow: 0 0 10px var(--primary-color);
}

.game-instructions {
    color: var(--primary-color);
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    text-shadow: 0 0 5px var(--primary-color);
}

.game-instructions kbd {
    display: inline-block;
    padding: 0.2em 0.4em;
    font-family: 'Press Start 2P', cursive;
    background-color: var(--primary-color);
    color: #000;
    border-radius: 3px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 0 #00b3ad, 0 3px 3px rgba(0,0,0,0.5);
    margin: 0 0.2em;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
     animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}