:root {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #333333;
    --text-color: #ffffff;
    --background-color: #000000;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #000000, #1a1a1a, #000000, #1a1a1a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-speed);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

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

.nav-links a {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    animation: float 6s ease-in-out infinite;
}

.hero-name {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: -2px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
                     0 0 20px rgba(255, 255, 255, 0.2),
                     0 0 30px rgba(255, 255, 255, 0.1);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
                     0 0 30px rgba(255, 255, 255, 0.3),
                     0 0 40px rgba(255, 255, 255, 0.2);
    }
}

.hero h1 {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-buttons .project-link {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all var(--transition-speed);
    font-family: 'Courier New', monospace;
}

.hero-buttons .project-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about h3 {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
}

.about p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
    font-family: 'Courier New', monospace;
    color: #ffffff;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    padding: 5rem 2rem;
    position: relative;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.project-card h3 {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.project-card p {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--accent);
}

.project-links {
    margin-top: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #00ff00;
    transform: translateX(5px);
}

.project-link i {
    font-size: 1.2em;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    position: relative;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.7s;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    transition: all var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.contact-form button {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.contact-form button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.contact p {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    color: #ffffff;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all var(--transition-speed);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.footer-content {
    color: #888;
    font-size: 0.9rem;
}

.footer-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.footer-content a:hover {
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switch {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-switch:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* 3D Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* Repository Cards */
.repo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.repo-header i {
    font-size: 1.2rem;
    color: #888;
}

.repo-description {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

.repo-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.repo-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.repo-link {
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.repo-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-form {
        padding: 2rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Background Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Add floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 40%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 30%; top: 60%; animation-delay: 1s; }
.particle:nth-child(4) { left: 40%; top: 80%; animation-delay: 1.5s; }
.particle:nth-child(5) { left: 50%; top: 20%; animation-delay: 2s; }
.particle:nth-child(6) { left: 60%; top: 40%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 70%; top: 60%; animation-delay: 3s; }
.particle:nth-child(8) { left: 80%; top: 80%; animation-delay: 3.5s; }
.particle:nth-child(9) { left: 90%; top: 20%; animation-delay: 4s; }
.particle:nth-child(10) { left: 95%; top: 40%; animation-delay: 4.5s; }

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.terminal-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    overflow: hidden;
    font-family: 'Courier New', monospace;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.terminal-widget:hover {
    transform: translateY(-5px);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    margin-right: 10px;
}

.terminal-buttons span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}

.terminal-buttons span:nth-child(2) {
    background: #ffbd2e;
}

.terminal-buttons span:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    color: rgba(0, 255, 0, 0.8);
    font-size: 0.8rem;
}

.terminal-content {
    padding: 15px;
    color: #00ff00;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 150px;
    overflow-y: auto;
}

.terminal-content::-webkit-scrollbar {
    width: 5px;
}

.terminal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 3px;
}

.line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.prompt {
    color: #00ff00;
    margin-right: 8px;
}

.command {
    color: #00ff00;
}

.output {
    color: #ffffff;
    margin-left: 15px;
}

.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.playground {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.playground h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.playground-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.game-container {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#snakeGame {
    display: block;
    width: 400px;
    height: 400px;
    background: #000;
    border: 2px solid #ffffff;
    margin: 0 auto;
    image-rendering: pixelated;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.game-controls {
    margin-top: 25px;
    text-align: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ffffff;
}

.score {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

#startGame {
    background: #ffffff;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin: 10px 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

#startGame:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.controls-info {
    margin-top: 15px;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.controls-info p {
    margin: 8px 0;
    font-size: 0.95em;
    color: #ccc;
}

.code-preview {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid #ffffff;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.code-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ffffff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.code-header span {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
}

.copy-code {
    background: #ffffff;
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.copy-code:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.code-preview pre {
    margin: 0;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(400px - 50px);
    background: rgba(0, 0, 0, 0.5);
}

.code-preview code {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Custom scrollbar for code preview */
.code-preview pre::-webkit-scrollbar {
    width: 8px;
}

.code-preview pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.code-preview pre::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 4px;
}

.code-preview pre::-webkit-scrollbar-thumb:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .playground-content {
        grid-template-columns: 1fr;
    }

    #snakeGame {
        width: 300px;
        height: 300px;
    }
}

.examples {
    padding: 80px 20px;
    background-color: rgba(0, 0, 0, 0.8);
}

.examples h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 2em;
}

.examples-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.example-card {
    background: rgba(0, 0, 0, 0.9);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.example-card h3 {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 1.4em;
    margin: 0;
}

.example-card p {
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(0, 255, 0, 0.1);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--accent);
}

.example-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    margin-top: auto;
}

.example-link:hover {
    color: #00ff00;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .examples-content {
        grid-template-columns: 1fr;
    }
} 