:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --text-color: #e0e0e0;
    --accent-color: #00ff88; /* Neon Green */
    --accent-secondary: #7000ff; /* Neon Purple */
    --font-main: 'Roboto', sans-serif;
    --font-header: 'Press Start 2P', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom one */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor, .cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    transition: transform 0.15s ease, width 0.3s, height 0.3s;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #222;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.2rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    perspective: 500px;
    transform: rotateX(60deg) scale(2);
    transform-origin: top center;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

.subtitle {
    color: var(--accent-secondary);
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 1rem;
}

h1.glitch {
    font-family: var(--font-header);
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    color: #fff;
}

/* Glitch Effect */
h1.glitch::before, h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

h1.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

h1.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(80px, 9999px, 100px, 0); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    60% { clip: rect(60px, 9999px, 80px, 0); }
    80% { clip: rect(20px, 9999px, 60px, 0); }
    100% { clip: rect(90px, 9999px, 100px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(60px, 9999px, 90px, 0); }
    20% { clip: rect(10px, 9999px, 40px, 0); }
    40% { clip: rect(50px, 9999px, 80px, 0); }
    60% { clip: rect(20px, 9999px, 30px, 0); }
    80% { clip: rect(90px, 9999px, 100px, 0); }
    100% { clip: rect(30px, 9999px, 60px, 0); }
}

.typing-container {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    min-height: 1.5em;
    color: #aaa;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.btn-start {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-header);
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-start:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Sections */
.section {
    padding: 6rem 10%;
}

.section-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--accent-color);
    text-transform: uppercase;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.card-image {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    background: #000; /* Fallback */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.card-content p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tags span {
    background: #222;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--accent-color);
    border: 1px solid #333;
}

.btn-small {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    border-bottom: 2px solid var(--accent-secondary);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.btn-small:hover {
    color: var(--accent-secondary);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-family: var(--font-header);
    font-size: 1rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-item {
    background: #1a1a1a;
    padding: 0.8rem;
    border-left: 3px solid var(--accent-color);
    transition: padding-left 0.3s;
}

.skill-item:hover {
    padding-left: 1.5rem;
    background: #222;
}

/* Contact */
.contact-box {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    padding: 4rem;
    text-align: center;
    border: 1px solid #333;
    border-radius: 10px;
}

.btn-contact {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 3rem;
    background: var(--accent-secondary);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.8rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1.glitch {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none; /* Simple hide for mobile for this minimal version */
    }
    
    .section {
        padding: 4rem 5%;
    }

    /* Hide custom cursor on mobile and restore default */
    .cursor, .cursor-follower {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

/* Resume Page Styles */
.resume-section {
    min-height: 100vh;
    padding-top: 8rem; /* Account for fixed nav */
}

.resume-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 8px;
}

.resume-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.resume-viewer {
    background: #fff;
    min-height: 800px;
    border-radius: 4px;
    overflow: hidden;
}

.resume-viewer iframe {
    border: none;
    display: block;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-contact {
    margin-top: 0; /* Reset margin since it's handled by flex gap */
}

.btn-github {
    background: #333;
    border: 1px solid #555;
}

.btn-github:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}