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

:root {
    --primary: #00ff41;
    --secondary: #008f11;
    --dark: #0d0208;
    --dark-alt: #1a1a1a;
    --text: #00ff41;
    --text-dim: #00aa2b;
    --glow: 0 0 10px rgba(0, 255, 65, 0.5);
}

body {
    font-family: 'Courier New', monospace;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 2, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary);
    z-index: 1000;
    box-shadow: var(--glow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: var(--glow);
}

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

.nav-link {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: var(--glow);
}

main {
    margin-top: 80px;
}

.section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.hero {
    text-align: center;
}

.hero-content {
    animation: fadeIn 1s ease-in;
}

.dev-name {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2rem;
}

.glitch {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: var(--primary);
    letter-spacing: 0.5rem;
    animation: glitch 2s infinite;
    margin-bottom: 1rem;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 94px, 0);
    }
    25% {
        clip: rect(70px, 9999px, 43px, 0);
    }
    50% {
        clip: rect(65px, 9999px, 20px, 0);
    }
    75% {
        clip: rect(30px, 9999px, 80px, 0);
    }
    100% {
        clip: rect(50px, 9999px, 60px, 0);
    }
}

.typing-text {
    font-size: 2.5rem;
    margin: 2rem 0;
    color: var(--primary);
    text-shadow: var(--glow);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: var(--glow);
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    transform: translateY(-2px);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--glow);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    }
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: var(--glow);
}

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

.about-card {
    background: rgba(13, 2, 8, 0.8);
    border: 1px solid var(--primary);
    padding: 2rem;
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: var(--glow);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-card p {
    color: var(--text-dim);
}

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

.project-card {
    background: rgba(13, 2, 8, 0.8);
    border: 1px solid var(--secondary);
    padding: 2rem;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    opacity: 0.5;
}

.project-status {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.project-card p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-tags span {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--secondary);
    font-size: 0.9rem;
    color: var(--text);
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s;
}

.project-link:hover {
    text-shadow: var(--glow);
    transform: translateX(5px);
}

.more-projects-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.more-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
}

.more-projects-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.5s;
}

.more-projects-btn:hover::before {
    left: 100%;
}

.more-projects-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.5rem;
    animation: pulse-icon 2s infinite;
}

.btn-arrow {
    transition: transform 0.3s;
}

.more-projects-btn:hover .btn-arrow {
    transform: translateX(5px);
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.projects-page {
    min-height: auto;
    padding: 6rem 2rem 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    color: var(--primary);
    text-shadow: var(--glow);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.projects-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-card-full {
    background: rgba(13, 2, 8, 0.8);
    border: 1px solid var(--secondary);
    padding: 2.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card-full:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
    transform: translateY(-5px);
}

.project-details {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--secondary);
    border-bottom: 1px solid var(--secondary);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.1rem;
}

.detail-value {
    color: var(--primary);
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.project-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--text);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
}

.project-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.project-btn-primary {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary);
}

.project-btn-primary:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

.back-home-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: var(--glow);
}

.back-home-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    transform: translateY(-3px);
}

.back-home-btn .btn-arrow {
    transition: transform 0.3s;
}

.back-home-btn:hover .btn-arrow {
    transform: translateX(-5px);
}

.terminal-window {
    background: rgba(13, 2, 8, 0.95);
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.terminal-header {
    background: rgba(0, 255, 65, 0.1);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--primary);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

.btn-close {
    background: #ff5f56 !important;
}

.btn-minimize {
    background: #ffbd2e !important;
}

.btn-maximize {
    background: #27c93f !important;
}

.terminal-title {
    color: var(--primary);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--dark);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

#terminal-output {
    margin-bottom: 1rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: var(--text);
    white-space: pre-wrap;
}

.terminal-prompt {
    color: var(--primary);
    margin-right: 0.5rem;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    outline: none;
    caret-color: var(--primary);
}

.terminal-help {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-dim);
}

.command-hint {
    color: var(--primary);
    font-weight: bold;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    text-decoration: none;
    padding: 1rem;
    border: 1px solid var(--secondary);
    transition: all 0.3s;
}

.contact-link:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateX(10px);
}

.link-icon {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-form {
    background: rgba(13, 2, 8, 0.8);
    border: 1px solid var(--primary);
    padding: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--secondary);
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.submit-button:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
}

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--primary);
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .typing-text {
        font-size: 1.8rem;
    }
    
    .about-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .projects-full-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .project-links {
        flex-direction: column;
    }
}