:root {
    --bg-color: #0a0a0f;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-1: #00f0ff;
    --accent-2: #b624ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 { font-weight: 900; }
p { font-weight: 300; line-height: 1.6; color: var(--text-muted); }

.highlight {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    user-select: none;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px var(--accent-1), 0 0 20px var(--accent-2);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 0 20px rgba(182, 36, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-1);
    color: var(--accent-1);
}

.btn-secondary:hover {
    background: var(--accent-1);
    color: var(--bg-color);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.glitch {
    font-size: 6rem;
    position: relative;
    color: #fff;
    text-shadow: 0.05em 0 0 var(--accent-1), -0.025em -0.05em 0 var(--accent-2), 0.025em 0.05em 0 #fff;
    animation: glitch 3s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 var(--accent-1), -0.05em -0.025em 0 var(--accent-2), 0.025em 0.05em 0 #fff; }
    14% { text-shadow: 0.05em 0 0 var(--accent-1), -0.05em -0.025em 0 var(--accent-2), 0.025em 0.05em 0 #fff; }
    15% { text-shadow: -0.05em -0.025em 0 var(--accent-1), 0.025em 0.025em 0 var(--accent-2), -0.05em -0.05em 0 #fff; }
    49% { text-shadow: -0.05em -0.025em 0 var(--accent-1), 0.025em 0.025em 0 var(--accent-2), -0.05em -0.05em 0 #fff; }
    50% { text-shadow: 0.025em 0.05em 0 var(--accent-1), 0.05em 0 0 var(--accent-2), 0 -0.05em 0 #fff; }
    99% { text-shadow: 0.025em 0.05em 0 var(--accent-1), 0.05em 0 0 var(--accent-2), 0 -0.05em 0 #fff; }
    100% { text-shadow: -0.025em 0 0 var(--accent-1), -0.025em -0.025em 0 var(--accent-2), -0.025em -0.05em 0 #fff; }
}

.subtitle {
    font-size: 1.5rem;
    margin: 1.5rem 0 3rem;
}

/* Background Shapes */
.shape {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.shape-1 { width: 400px; height: 400px; background: var(--accent-1); top: -100px; left: -100px; }
.shape-2 { width: 500px; height: 500px; background: var(--accent-2); bottom: -150px; right: -100px; animation-delay: -5s; }
.shape-3 { width: 600px; height: 600px; background: linear-gradient(var(--accent-1), var(--accent-2)); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.15; }
.shape-4 { width: 300px; height: 300px; background: var(--accent-2); bottom: 10%; left: 10%; }


@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-section, .resume-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 2;
}

.about-container {
    display: flex;
    background: var(--glass-bg);
    max-width: 1000px;
    overflow: hidden;
    gap: 3rem;
    padding: 3rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    filter: blur(30px);
    z-index: 1;
    opacity: 0.5;
    border-radius: 15px;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Resume Section */
.resume-container {
    text-align: center;
    padding: 4rem;
    max-width: 600px;
}

.resume-container h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.resume-container p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* fade-in animation */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

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

/* Modal for Game */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    background: #111;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid var(--accent-2);
    box-shadow: 0 0 40px rgba(182, 36, 255, 0.4);
}

.modal-content h2 {
    color: var(--accent-1);
    margin-bottom: 0.5rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff3366;
}

canvas {
    background: #000;
    border: 2px solid #333;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.small-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .glitch { font-size: 4rem; }
    .about-container { flex-direction: column; padding: 2rem; }
    .resume-container { padding: 3rem; }
}
