:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #10152e;
    --bg-tertiary: #1a1f3a;
    --text-primary: #e0e6ed;
    --text-secondary: #a0aec0;
    --accent-primary: #00d9ff;
    --accent-secondary: #7c3aed;
    --accent-green: #00ff88;
    --border-color: #2d3748;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

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

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

.navbar {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    text-shadow: 0 0 20px var(--accent-primary);
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.terminal-link {
    color: var(--accent-green) !important;
}

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.typing-container {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.prompt {
    color: var(--accent-green);
    margin-right: 0.5rem;
}

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

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profession {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

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

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

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

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

.btn-terminal {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.btn-terminal:hover {
    background: transparent;
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.code-window {
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.window-header {
    background: var(--bg-secondary);
    padding: 0.8rem;
    display: flex;
    gap: 0.5rem;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
}

.code-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.keyword { color: #c792ea; }
.class-name { color: #ffcb6b; }
.function { color: #82aaff; }
.string { color: #c3e88d; }
.comment { color: #697098; }

.quick-links {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

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

.quick-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.quick-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.quick-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.page-header {
    padding: 4rem 0 2rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.hash {
    color: var(--accent-green);
    margin-right: 0.5rem;
}

.section-box {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.section-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.section-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-box p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-section {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--accent-green);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.stats {
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.projects-section {
    padding: 4rem 0;
}

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

.project-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--bg-secondary);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-primary);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--accent-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-section {
    padding: 4rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(10px);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.date {
    color: var(--text-secondary);
}

.category {
    background: var(--accent-secondary);
    color: var(--text-primary);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
}

.blog-card h2 {
    margin-bottom: 1rem;
}

.blog-card h2 a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.blog-card h2 a:hover {
    text-shadow: 0 0 10px var(--accent-primary);
}

.excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
}

.sidebar-widget {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding-left: 1rem;
}

.blog-detail {
    padding: 4rem 0;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 3rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-header h1 {
    font-size: 3rem;
    line-height: 1.2;
}

.post-body {
    background: var(--bg-tertiary);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.post-body h1,
.post-body h2,
.post-body h3 {
    color: var(--accent-primary);
    margin: 2rem 0 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.post-body code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--accent-green);
}

.post-body pre {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-footer {
    margin-top: 3rem;
}

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

.back-link:hover {
    gap: 1rem;
}

.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.social-cards {
    display: grid;
    gap: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(10px);
}

.social-card svg {
    flex-shrink: 0;
}

.social-card h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.social-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item .label {
    color: var(--text-secondary);
}

.info-item .value {
    color: var(--accent-primary);
    font-weight: 600;
}

.terminal-window {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-green);
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.term-btn.red { background: #ff5f56; }
.term-btn.yellow { background: #ffbd2e; }
.term-btn.green { background: #27c93f; }

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

.terminal-body {
    padding: 2rem;
    min-height: 500px;
    font-family: 'JetBrains Mono', monospace;
}

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

.output-line {
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.output-line.error {
    color: #ff5f56;
}

.output-line.info {
    color: var(--accent-primary);
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

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

.terminal-prompt {
    color: var(--accent-green);
    flex-shrink: 0;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    flex: 1;
    caret-color: var(--accent-green);
}

.terminal-hint {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-secondary);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

.messages-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.alert-success {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.alert-error {
    border-color: #ff5f56;
    color: #ff5f56;
}

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

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.code-block {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    display: inline-block;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero-content,
    .about-grid,
    .blog-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
