:root {
    --primary-color: #dc2626;
    --primary-dark: #991b1b;
    --bg-color: #000;
    --text-color: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4);
}

.btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    border-color: rgba(220, 38, 38, 0.6);
    background: rgba(220, 38, 38, 0.3);
}

section {
    padding: 80px 0;
    position: relative;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    font-family: monospace;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--text-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: -16px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.typing-container {
    display: block;
    position: relative;
    margin-top: 2px;
}

.typing-text {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    font-size: 3.5rem;
    min-height: 1.2em;
    line-height: 1.2;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.about {
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.section-title h2 {
    font-size: 3rem;
    text-transform: uppercase;
}

.section-title p {
    color: var(--text-secondary);
    font-family: monospace;
    margin-top: 10px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom right, rgba(220, 38, 38, 0.3), rgba(0, 0, 0, 0.8));
    border: 1px solid rgba(220, 38, 38, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-family: monospace;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.projects {
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.soon-text {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 1.5rem;
    text-align: center;
}

.contact {
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.8), rgba(220, 38, 38, 0.3));
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.contact-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-form {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-top: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: monospace;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: monospace;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(220, 38, 38, 0.5);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--text-color);
    padding: 12px 24px;
    font-family: monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}

footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    position: relative;
    padding: 60px 0 30px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220, 38, 38, 0.2), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 2px solid rgba(220, 38, 38, 0.7);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-color);
}

.footer-links a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(220, 38, 38, 0.5);
    border-radius: 50%;
    margin-right: 10px;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.8rem;
}

.footer-contact {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 2px;
    }
    
    .typing-text {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .terminal {
        display: none;
    }
    
    .hero {
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .typing-text {
        font-size: 1.8rem;
        min-height: 1.2em;
    }
    
    .typing-cursor {
        height: 1.2em;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .feature-card, .contact-card {
        padding: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.terminal {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.close {
    background: #ff5f56;
}

.terminal-button.minimize {
    background: #ffbd2e;
}

.terminal-button.maximize {
    background: #27c93f;
}

.terminal-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 auto;
}

.terminal-body {
    padding: 20px;
    font-family: monospace;
    font-size: 0.9rem;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-prompt {
    color: var(--primary-color);
}

.terminal-user {
    color: #10b981;
}

.terminal-path {
    color: #3b82f6;
}

.terminal-command {
    color: #ef4444;
    font-weight: bold;
}

.terminal-output {
    color: var(--text-secondary);
}

.progress-bar {
    display: inline-block;
    width: 150px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
    vertical-align: middle;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 100%;
}

.profile-page {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
}

.profile-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(120,0,0,0.15), transparent 70%);
    pointer-events: none;
}

.profile-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.profile-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.profile-banner {
    height: 160px;
    background: linear-gradient(to right, rgba(120,0,0,0.3), rgba(0,0,0,0.2), rgba(120,0,0,0.2));
    position: relative;
}

.profile-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.8) 100%);
}

.profile-avatar {
    position: absolute;
    left: 32px;
    bottom: -64px;
    display: flex;
    align-items: center;
}

.avatar-img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid #000;
    overflow: hidden;
}

.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-actions {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(120, 0, 0, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.profile-content {
    margin-top: 80px;
    padding: 0 32px 32px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-badge {
    color: var(--primary-color);
}

.profile-username {
    font-size: 1.25rem;
    font-family: monospace;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.profile-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
    font-size: 0.75rem;
    margin-top: 2px;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    margin-top: -4px;
}

.profile-bio {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bio-label {
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 4px;
}

.bio-content {
    color: rgba(255, 255, 255, 0.6);
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    flex-grow: 1;
}