
/* CSS Variables */
:root {
    --primary-color: #00ff41;
    --secondary-color: #ff0080;
    --accent-color: #00d4ff;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #00ff41;
    --text-muted: #888888;
    --glow-primary: 0 0 20px rgba(0, 255, 65, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 0, 128, 0.5);
    --glow-accent: 0 0 20px rgba(0, 212, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Matrix Rain Background */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.terminal-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
    z-index: 1000;
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.prompt {
    color: var(--secondary-color);
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Fira Code', monospace;
}

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

/* Common Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

section {
    padding: 6rem 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(45deg, var(--bg-primary), var(--bg-secondary));
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Terminal Window */
.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: var(--glow-primary);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: #ff5f57; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #28ca42; }

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

.terminal-body {
    padding: 1.5rem;
    min-height: 200px;
}

.command-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.command {
    color: var(--accent-color);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

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

.output {
    color: var(--text-muted);
    white-space: pre-wrap;
    margin-bottom: 1rem;
}

/* Hero Content */
.hero-content {
    text-align: left;
}

.glitch-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
    margin-bottom: 1rem;
    position: relative;
    animation: glitch 2s infinite;
}

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

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--secondary-color);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@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-1 {
    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-2 {
    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); }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.code-bracket {
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Fira Code', monospace;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    box-shadow: var(--glow-accent);
}

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

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

.skill-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

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

.skill-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.skill-bar {
    background: var(--bg-secondary);
    height: 8px;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0;
    transition: width 2s ease;
}

.skill-level {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.project-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

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

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

.project-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

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

.project-title {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.contact-details h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Chatbot */
.chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    box-shadow: var(--glow-primary);
    z-index: 1000;
}

.chatbot-header {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    color: var(--primary-color);
    font-weight: 600;
}

.chatbot-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 300px;
}

.message {
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.bot-message {
    color: var(--text-muted);
}

.user-message {
    color: var(--accent-color);
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--primary-color);
}

.chat-input input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}

.chat-input button {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.chatbot-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
    z-index: 1000;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
    box-shadow: var(--glow-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .chatbot {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}
