/* === SHARED STYLES === */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #050a10;
    --bg-card: rgba(10, 20, 40, 0.65);
    --bg-card-hover: rgba(16, 32, 56, 0.8);
    --primary-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-orange: #f59e0b;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(16, 185, 129, 0.4);
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-code: 'Fira Code', monospace;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === BACKGROUND EFFECTS === */
canvas#binaryCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.background-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
}

.glow-1 {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.glow-2 {
    bottom: -30%;
    right: -15%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

/* === LAYOUT === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { 
    font-weight: 700; 
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.code-font { font-family: var(--font-code); }
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-green { color: var(--accent-green); }
.text-muted { color: var(--text-muted); }

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(5, 10, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(5, 10, 16, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-code);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover { color: var(--accent-green); }
.logo span { color: var(--accent-green); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* === CARDS === */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    background: var(--bg-card-hover);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

/* === STATUS BADGE === */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 999px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent-green);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* === TAGS === */
.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-code);
    font-size: 0.8rem;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-green);
}

/* === SECTION STYLES === */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .eyebrow {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

footer p {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(5, 10, 16, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-toggle { display: flex; }
    
    .section { padding: 4rem 0; }
}

/* ========================================
   PAGE-SPECIFIC STYLES
   ======================================== */

/* === PAGE HERO (shared across pages) === */
.page-hero { padding: 8rem 0 4rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; }

/* === INDEX PAGE === */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero-content { max-width: 600px; }
.hero h1 { margin: 1.5rem 0; line-height: 1.1; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.terminal-window { background: rgba(10, 20, 35, 0.9); border: 1px solid var(--glass-border); border-radius: var(--radius); width: 100%; max-width: 420px; overflow: hidden; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5); }
.terminal-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid var(--glass-border); }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }
.terminal-title { flex: 1; text-align: center; font-family: var(--font-code); font-size: 0.8rem; color: var(--text-dim); }
.terminal-body { padding: 1.5rem; font-family: var(--font-code); font-size: 0.85rem; line-height: 1.8; }
.terminal-line { margin-bottom: 0.5rem; opacity: 0; animation: terminalType 0.3s ease forwards; }
.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2s; }
.terminal-line:nth-child(5) { animation-delay: 2.5s; }
.terminal-line:nth-child(6) { animation-delay: 3s; }
@keyframes terminalType { to { opacity: 1; } }
.terminal-prompt { color: var(--accent-green); }
.terminal-cmd { color: var(--text-main); }
.terminal-output { color: var(--text-muted); padding-left: 1rem; }
.overview-section { padding: 6rem 0; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.overview-card { padding: 2rem; position: relative; overflow: hidden; }
.overview-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--accent-green), transparent); opacity: 0; transition: var(--transition); }
.overview-card:hover::before { opacity: 1; }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.card-number { font-family: var(--font-code); font-size: 0.75rem; color: var(--accent-green); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.overview-card h3 { margin-bottom: 0.75rem; }
.overview-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.card-link { font-family: var(--font-code); font-size: 0.85rem; color: var(--accent-green); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.card-link:hover { gap: 0.75rem; }
.card-link::after { content: "->"; transition: var(--transition); }
.skills-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.skill-pill { padding: 0.4rem 0.8rem; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 999px; font-size: 0.75rem; font-family: var(--font-code); color: var(--accent-green); }
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; padding: 3rem 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); margin: 4rem 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--accent-green); font-family: var(--font-code); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.cta-section { text-align: center; padding: 6rem 0; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-visual { margin-top: 3rem; }
}

/* === ABOUT PAGE === */
.about-section { padding: 4rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }

.profile-card { position: sticky; top: 100px; }
.profile-image { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(6,182,212,0.2)); display: flex; align-items: center; justify-content: center; font-size: 6rem; border: 1px solid var(--glass-border); margin-bottom: 1.5rem; }
.profile-card h3 { margin-bottom: 0.5rem; }
.profile-card .title { color: var(--accent-green); font-family: var(--font-code); font-size: 0.9rem; margin-bottom: 1rem; }
.profile-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.profile-links a { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.profile-links a:hover { background: rgba(16,185,129,0.2); border-color: var(--accent-green); color: var(--accent-green); }
.social-icon { width: 22px; height: 22px; object-fit: contain; filter: brightness(0.7); transition: var(--transition); }
.profile-links a:hover .social-icon { filter: brightness(1); }

.about-content h2 { font-size: 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.about-content h2::before { content: '//'; color: var(--accent-green); font-family: var(--font-code); }
.about-content p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.about-content section { margin-bottom: 3rem; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.skill-card { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 1.25rem; transition: var(--transition); }
.skill-card:hover { border-color: var(--accent-green); transform: translateY(-2px); }
.skill-card h4 { font-size: 0.9rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.skill-card h4 span { font-size: 1.2rem; }
.skill-card p { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-code); }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.value-item { padding: 1.5rem; background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); }
.value-item h4 { color: var(--accent-green); margin-bottom: 0.5rem; }
.value-item p { font-size: 0.9rem; color: var(--text-muted); }

.learning-path { margin-top: 1.5rem; }
.learning-item { display: flex; gap: 1rem; padding: 1.25rem; background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); margin-bottom: 1rem; transition: var(--transition); }
.learning-item:hover { border-color: var(--accent-cyan); }
.learning-icon { font-size: 1.5rem; min-width: 40px; text-align: center; }
.learning-content h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.learning-content p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.learning-status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-family: var(--font-code); }
.learning-status.active { background: rgba(6,182,212,0.15); color: var(--accent-cyan); border: 1px solid rgba(6,182,212,0.3); }
.learning-status.planned { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.learning-progress { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 0.75rem; overflow: hidden; }
.learning-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan)); border-radius: 2px; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .profile-card { position: relative; top: 0; max-width: 300px; margin: 0 auto 2rem; text-align: center; }
    .profile-links { justify-content: center; }
}

/* === CONTACT PAGE === */
.contact-section { padding: 4rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }

/* Contact Info */
.contact-info h3 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }

.contact-methods { margin-bottom: 3rem; }
.contact-method { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); margin-bottom: 1rem; transition: var(--transition); }
.contact-method:hover { border-color: var(--accent-green); transform: translateX(5px); }
.contact-method .icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(16,185,129,0.1); border-radius: var(--radius-sm); font-size: 1.25rem; }
.contact-method .info h4 { margin-bottom: 0.25rem; font-size: 0.95rem; }
.contact-method .info a { color: var(--accent-green); text-decoration: none; font-family: var(--font-code); font-size: 0.9rem; }
.contact-method .info span { color: var(--text-muted); font-size: 0.85rem; }

.contact-section .social-links { display: flex; gap: 1rem; }
.social-link { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text-muted); text-decoration: none; font-size: 1.25rem; transition: var(--transition); }
.social-link:hover { background: rgba(16,185,129,0.2); border-color: var(--accent-green); color: var(--accent-green); transform: translateY(-3px); }

/* Contact Form */
.contact-form-card { padding: 2.5rem; }
.contact-form-card h3 { margin-bottom: 0.5rem; }
.contact-form-card .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; font-family: var(--font-code); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1rem; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text-main); font-family: var(--font-main); font-size: 1rem; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-color); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.submit-btn { width: 100%; padding: 1rem 2rem; background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); color: var(--bg-color); border: none; border-radius: var(--radius); font-family: var(--font-code); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16,185,129,0.3); }

/* Terminal Response */
.terminal-response { margin-top: 2rem; padding: 1.5rem; background: rgba(0,0,0,0.4); border-radius: var(--radius); border: 1px solid var(--glass-border); font-family: var(--font-code); font-size: 0.85rem; display: none; }
.terminal-response.show { display: block; animation: fadeIn 0.3s ease; }
.terminal-response .line { margin-bottom: 0.5rem; }
.terminal-response .prompt { color: var(--accent-green); }
.terminal-response .success { color: var(--accent-green); }

/* Availability */
.availability-card { margin-top: 2rem; padding: 1.5rem; background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.2); border-radius: var(--radius); }
.availability-card h4 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.95rem; }
.availability-card h4::before { content: '●'; color: var(--accent-green); animation: pulse 2s ease-in-out infinite; }
.availability-card p { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* === CV PAGE === */
.cv-section { padding: 4rem 0; }
.cv-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }

/* Sidebar */
.cv-sidebar { position: sticky; top: 100px; height: fit-content; }
.sidebar-card { padding: 2rem; margin-bottom: 1.5rem; }
.sidebar-card h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--accent-green); font-family: var(--font-code); }
.sidebar-card h3::before { content: '// '; }

.info-item { margin-bottom: 1rem; }
.info-item label { display: block; font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.info-item span { color: var(--text-main); }

.download-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan)); color: var(--bg-color); border: none; border-radius: var(--radius); font-family: var(--font-code); font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; }
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16,185,129,0.3); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--accent-green), var(--accent-cyan), transparent); }

.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -2rem; top: 0.5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-green); border: 3px solid var(--bg-color); transform: translateX(-6px); box-shadow: 0 0 15px rgba(16,185,129,0.5); }

.timeline-date { font-family: var(--font-code); font-size: 0.85rem; color: var(--accent-green); margin-bottom: 0.5rem; }
.timeline-item h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.timeline-company { color: var(--accent-cyan); font-weight: 600; margin-bottom: 1rem; }
.timeline-item p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }

.timeline-tasks { list-style: none; margin-top: 1rem; }
.timeline-tasks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.timeline-tasks li::before { content: '>'; position: absolute; left: 0; color: var(--accent-green); font-family: var(--font-code); }

/* Certifications */
.certs-section { padding: 4rem 0; border-top: 1px solid var(--glass-border); margin-top: 2rem; }
.certs-section h2 { margin-bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; }
.certs-section h2::before { content: '//'; color: var(--accent-green); font-family: var(--font-code); }

.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.cert-card { padding: 1.5rem; background: var(--card-bg); border: 1px dashed var(--glass-border); border-radius: var(--radius); text-align: center; }
.cert-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.cert-card h4 { margin-bottom: 0.5rem; }
.cert-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.cert-status { display: inline-block; padding: 0.25rem 0.75rem; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); border-radius: 999px; font-size: 0.75rem; font-family: var(--font-code); color: #fbbf24; }

.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 1rem; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan)); border-radius: 3px; animation: progressPulse 2s ease-in-out infinite; }
@keyframes progressPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

@media (max-width: 900px) {
    .cv-grid { grid-template-columns: 1fr; }
    .cv-sidebar { position: relative; top: 0; }
}

/* === PROJECTS PAGE === */
.projects-section { padding: 4rem 0; }

.project-card { margin-bottom: 3rem; padding: 2.5rem; }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.project-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.project-tag { padding: 0.35rem 0.75rem; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); border-radius: 999px; font-size: 0.75rem; font-family: var(--font-code); color: var(--accent-green); }
.project-status { padding: 0.35rem 0.75rem; background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); border-radius: 999px; font-size: 0.75rem; font-family: var(--font-code); color: var(--accent-cyan); }

.project-card h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.project-card .subtitle { color: var(--accent-green); font-family: var(--font-code); font-size: 0.9rem; margin-bottom: 1rem; }
.project-card p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

.project-features { margin: 2rem 0; }
.project-features h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; font-family: var(--font-code); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.feature-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: rgba(255,255,255,0.02); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05); }
.feature-item span { color: var(--accent-green); }

.tech-stack { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.tech-stack h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; font-family: var(--font-code); }
.tech-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-item { padding: 0.5rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); font-size: 0.85rem; font-family: var(--font-code); color: var(--text-main); }

.project-visual { margin: 2rem 0; padding: 2rem; background: rgba(0,0,0,0.3); border-radius: var(--radius); border: 1px solid var(--glass-border); font-family: var(--font-code); font-size: 0.85rem; }
.project-visual .line { margin-bottom: 0.5rem; }
.project-visual .comment { color: var(--text-dim); }
.project-visual .prompt { color: var(--accent-green); }
.project-visual .output { color: var(--text-muted); padding-left: 1rem; }

.project-screenshot { margin: 2rem 0; text-align: center; }
.project-screenshot img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--glass-border); }

.future-projects { padding: 4rem 0; border-top: 1px solid var(--glass-border); margin-top: 2rem; }
.future-projects h2 { margin-bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; }
.future-projects h2::before { content: '//'; color: var(--accent-green); font-family: var(--font-code); }
.future-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.future-card { padding: 1.5rem; background: var(--card-bg); border: 1px dashed var(--glass-border); border-radius: var(--radius); }
.future-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.future-card p { font-size: 0.9rem; color: var(--text-muted); }
