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

:root {
    --neon-green: #00FF00;
    --neon-blue: #00E5FF;
    --dark-bg: #050505;
    --dark-surface: #0A0A0A;
    --text-gray: #888888;
    --border-green: rgba(0, 255, 0, 0.3);
    --glow-green: 0 0 10px rgba(0, 255, 0, 0.3);
    --glow-blue: 0 0 10px rgba(0, 229, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--dark-bg);
    color: var(--neon-green);
    overflow-x: hidden;
    position: relative;
}

/* Background Patterns */
.binary-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: monospace;
    font-size: 12px;
    color: rgba(0, 255, 0, 0.05);
    white-space: pre-wrap;
    word-break: break-all;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.3;
}

.matrix-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 0, 0.03) 25%, rgba(0, 255, 0, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, 0.03) 75%, rgba(0, 255, 0, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 0, 0.03) 25%, rgba(0, 255, 0, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, 0.03) 75%, rgba(0, 255, 0, 0.03) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Color Classes */
.neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green);
}

.neon-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
}

.neon-gray {
    color: var(--text-gray);
}

.white-text {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-family: 'VT323', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-text {
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-text {
    text-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.download-btn {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.6rem 1.2rem;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 15px var(--neon-green);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-green);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    position: relative;
    z-index: 10;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Terminal Window */
.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

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

.terminal-header {
    background: rgba(0, 255, 0, 0.1);
    border-bottom: 1px solid var(--neon-green);
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: rgba(0, 255, 0, 0.6);
}

.terminal-dots {
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red {
    background: #FF5555;
}

.dot.yellow {
    background: #FFFF55;
}

.dot.green {
    background: #55FF55;
}

.terminal-title {
    color: rgba(0, 255, 0, 0.8);
    margin-left: auto;
}

.terminal-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-terminal {
    animation-delay: 0.2s;
}

/* Hero Title */
.hero-title {
    font-family: 'VT323', monospace;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 1rem 0;
    letter-spacing: 2px;
}

/* Terminal Prompt */
.terminal-prompt {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.terminal-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    border-left: 2px solid rgba(0, 255, 0, 0.3);
    padding-left: 1rem;
    max-width: 550px;
}

/* Tech Stack */
.tech-section {
    margin: 2rem 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tech-tag {
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: rgba(0, 255, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-tag:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* CPU Processor Styles */
.cpu-processor {
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4)) drop-shadow(0 0 40px rgba(255, 0, 255, 0.2));
    animation: cpuRotate 30s linear infinite;
}

@keyframes cpuRotate {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Chip Case Styling */
.chip-case {
    stroke: url(#chipGradient);
    animation: caseGlow 2s ease-in-out infinite;
}

@keyframes caseGlow {
    0%, 100% {
        opacity: 0.7;
        filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.3));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.6));
    }
}

/* CPU Core Animation */
.cpu-core {
    stroke: #00FF00;
    animation: corePulse 1.5s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% {
        opacity: 0.6;
        stroke-width: 2.5;
        filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.3));
    }
    50% {
        opacity: 1;
        stroke-width: 3;
        filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.8));
    }
}

/* Core Pulse Ring */
.core-pulse {
    animation: radioPulse 1.8s ease-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.5));
}

@keyframes radioPulse {
    0% {
        r: 15;
        opacity: 1;
        stroke-width: 2;
    }
    100% {
        r: 35;
        opacity: 0;
        stroke-width: 0.5;
    }
}

/* Core Lines */
.core-line {
    animation: energyFlow 2.5s ease-in-out infinite;
}

@keyframes energyFlow {
    0%, 100% {
        opacity: 0.3;
        stroke-width: 0.8;
    }
    50% {
        opacity: 0.8;
        stroke-width: 1.2;
    }
}

/* Circuit Paths */
.circuit {
    stroke-dasharray: 5, 5;
    animation: circuitFlow 2s linear infinite;
    filter: drop-shadow(0 0 5px currentColor);
}

@keyframes circuitFlow {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -10;
        opacity: 0.6;
    }
}

/* Connection Nodes */
.connection-nodes .node {
    animation: nodeGlow 1.5s ease-in-out infinite;
}

@keyframes nodeGlow {
    0%, 100% {
        r: 2.5;
        opacity: 0.5;
    }
    50% {
        r: 4.5;
        opacity: 1;
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* Pins */
.pin {
    animation: pinActive 2s ease-in-out infinite;
    filter: drop-shadow(0 0 3px currentColor);
}

@keyframes pinActive {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* Glow Rings */
.glow-ring {
    animation: ringGlow 3s ease-in-out infinite;
}

.glow-ring-2 {
    animation: ringGlow 4s ease-in-out infinite 0.5s;
}

@keyframes ringGlow {
    0%, 100% {
        r: 50;
        opacity: 0.1;
    }
    50% {
        r: 60;
        opacity: 0.4;
    }
}

/* Status Windows */
.status-window {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-green);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    min-width: 200px;
    animation: float 4s ease-in-out infinite;
}

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

.status-1 {
    top: 20px;
    left: -30px;
}

.status-2 {
    bottom: 30px;
    right: -30px;
}

.status-title {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
}

.status-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    color: var(--text-gray);
}

.status-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 0, 0.2);
    margin-top: 0.8rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-fill {
    width: 100%;
    height: 100%;
    background: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
    animation: fillBar 3s ease-in-out infinite;
}

@keyframes fillBar {
    0%, 100% {
        width: 80%;
    }
    50% {
        width: 100%;
    }
}

.status-code {
    color: rgba(0, 255, 0, 0.7);
    font-size: 0.7rem;
    line-height: 1.4;
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.prompt-start {
    color: var(--neon-green);
    font-size: 1.2rem;
}

.section-title {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.dashed-line {
    flex: 1;
    height: 1px;
    border-top: 1px dashed rgba(0, 255, 0, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    transition: all 0.3s ease;
    border-color: var(--neon-green);
}

.project-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.3);
    transform: translateY(-5px);
}

.project-card.featured {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.project-card.featured .terminal-header {
    background: rgba(0, 229, 255, 0.1);
    border-bottom-color: var(--neon-blue);
}

.project-card.featured .terminal-header.featured-header {
    color: var(--neon-blue);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-name {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.project-tech {
    color: rgba(0, 255, 0, 0.6);
    font-size: 0.8rem;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    padding-top: 1rem;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
    color: var(--text-gray);
}

.control-btn {
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.control-btn:hover {
    color: #fff;
}

.control-btn.close:hover {
    color: #FF5555;
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
}

.stats-window {
    border-color: var(--neon-green);
}

.stats-prompt {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid rgba(0, 255, 0, 0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-window {
    border-color: var(--neon-green);
}

.contact-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.8rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 255, 0, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

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

.social-link {
    color: var(--neon-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.social-link:hover {
    text-shadow: 0 0 10px currentColor;
    border-bottom: 1px solid currentColor;
}

.social-link.neon-blue {
    color: var(--neon-blue);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 0.85rem;
    line-height: 1.6;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--neon-green);
    padding: 0.6rem 1rem;
    background: rgba(0, 255, 0, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-green);
    animation: blink 1s infinite;
}

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

.status-text {
    font-size: 0.8rem;
    color: var(--neon-green);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 100px 1rem 2rem;
    }
}