:root {
    --bg-color: #030508;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-neon: #00ff41; /* classic matrix / terminal green */
    --accent-cyan: #00e5ff;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border-color: rgba(0, 255, 65, 0.2);
    --glow: 0 0 10px rgba(0, 255, 65, 0.3), 0 0 20px rgba(0, 255, 65, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background effects */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0.15;
}

.glow-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.03) 0%, rgba(0, 255, 65, 0.02) 20%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Typography styles */
h1, h2, h3, h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.cyber-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.highlight {
    color: var(--accent-neon);
    font-family: 'JetBrains Mono', monospace;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-neon);
    text-shadow: var(--glow);
}

/* UI Elements */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: transparent;
    color: var(--accent-neon);
    border: 1px solid var(--accent-neon);
    box-shadow: inset 0 0 0 rgba(0, 255, 65, 0), 0 0 10px rgba(0, 255, 65, 0.2);
}

.btn-primary:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.3), 0 0 20px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 100;
    background: rgba(3, 5, 8, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-neon);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

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

.nav-links a {
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.nav-links a:hover {
    color: var(--accent-neon);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
    min-height: 50vh;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: "";
    height: 1px;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
}

.terminal-window {
    background: #0d1117;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    margin-bottom: 3rem;
    max-width: 700px;
}

.terminal-header {
    background: #161b22;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.terminal-header .close { background: #ff5f56; }
.terminal-header .minimize { background: #ffbd2e; }
.terminal-header .maximize { background: #27c93f; }

.terminal-title {
    color: #8b949e;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    margin-left: 1rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-neon);
    min-height: 120px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background-color: var(--accent-neon);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

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

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.hero-content h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

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

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-neon);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline/Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: rgba(0, 255, 65, 0.2);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-neon);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
    z-index: 1;
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: rgba(0, 229, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.timeline-content h3 {
    margin-bottom: 0.2rem;
    font-size: 1.3rem;
}

.timeline-content .company {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1rem;
}

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

.skill-category h3 {
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

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

.skill-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-neon);
}

/* Contact */
.contact-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-methods a {
    width: 100%;
    max-width: 300px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    background: rgba(3, 5, 8, 0.8);
}

.footer-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-content .location {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile styling */
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .timeline::before {
        left: 0;
    }
    .timeline-item {
        margin-left: 0;
        padding-left: 2rem;
    }
    .timeline-item::before {
        left: -6px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
