:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --bg-primary: #0b0b0b;
    --bg-secondary: #0f0f10;
    --border-color: #1f2937;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', 'Noto Sans', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background: #000;
    background-attachment: fixed;
    overflow-x: hidden;
    /* subtle green ambient glow */
    box-shadow: inset 0 0 120px rgba(6,180,120,0.02);
    /* Enhanced hacker background */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
}

/* Matrix rain background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: 
        linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="0" y="15" fill="%2300ff00" font-size="12" opacity="0.8">01</text><text x="20" y="25" fill="%2300ff41" font-size="12" opacity="0.6">10</text><text x="40" y="35" fill="%2300ff00" font-size="12" opacity="0.9">11</text><text x="60" y="45" fill="%2300ff41" font-size="12" opacity="0.7">00</text><text x="80" y="55" fill="%2300ff00" font-size="12" opacity="0.5">01</text><text x="10" y="65" fill="%23ff0080" font-size="10" opacity="0.4">DE</text><text x="30" y="75" fill="%2380ff00" font-size="10" opacity="0.6">AD</text><text x="50" y="85" fill="%2300ffff" font-size="10" opacity="0.5">BE</text><text x="70" y="95" fill="%23ff8000" font-size="10" opacity="0.7">EF</text></svg>');
    background-size: 120px 120px;
    animation: matrix 2s linear infinite;
    pointer-events: none;
}

@keyframes matrix {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

/* Add glitch effect */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 980px;
    width: calc(100% - 48px);
    background: rgba(0,8,0,0.55);
    border: 1px solid rgba(0,255,0,0.28);
    color: #9ef99e;
    z-index: 1000;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 6px 30px rgba(0,255,0,0.06), inset 0 0 12px rgba(0,255,0,0.04);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes subtleGlitch {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    92% { transform: translateX(-50%) translateY(0); }
    93% { transform: translateX(-50%) translateY(-1px); }
    94% { transform: translateX(-50%) translateY(0); }
    95% { transform: translateX(-50%) translateY(1px); }
    96% { transform: translateX(-50%) translateY(0); }
}

/* ensure inner container lays out items centrally */
.nav-container { display:flex; align-items:center; justify-content:space-between; gap:1rem; width:100%; padding:0 1rem; font-family: 'Space Mono', monospace; }

/* show nav menu inline */
.nav-menu { 
    display:flex; 
    gap:1.2rem; 
    align-items:center; 
    justify-content:center; 
    flex:1; 
    text-align:center;
    flex-wrap: wrap; /* Added for responsiveness */
}

/* subtle link styling tuned for hacker aesthetic */
.nav-link { color: #9ef99e; font-weight:600; text-decoration:none; padding:0.15rem 0.6rem; border-radius:6px; border-left:1px solid rgba(0,255,0,0.06); border-right:1px solid rgba(0,255,0,0.02); font-family: 'Space Mono', monospace; }
.nav-link:hover { background: rgba(0,255,0,0.04); color: #dfffdf; text-decoration: none; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    display: none !important;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    display: none !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.typewriter {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #ffffff;
    color: #0b0b0b;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #111213;
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: initial;
    background-clip: text;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-secondary);
    display: none !important;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: none !important;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.skills h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 2rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: var(--bg-primary);
    display: none !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #0f0f10;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    background: #0b0b0b;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0.6;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111213;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #ffffff;
    color: #0b0b0b;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-secondary);
    text-align: center;
    display: none !important;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0f0f10;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: #ffffff;
    color: #0b0b0b;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 680px) {
    .nav-menu { gap:0.6rem; font-size:0.95rem; }
    .navbar { padding:0.4rem 0.6rem; }
}

.terminal-layout {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 6rem auto 2rem;
    padding: 0 2rem;
}

/* Enhanced ID panel */
.id-panel {
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,10,0,0.9), rgba(0,5,0,0.95));
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 0, 0.1),
        0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Add subtle animated border */
.id-panel::before,
.terminal-panel::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff00, #00ffff, #ff00ff, #00ff00);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.id-card {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.id-photo {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    border: 1px solid #1f2937;
}

.id-meta h1 {
    font-size: 1.25rem;
    color: #e5e7eb;
}

.id-meta p {
    color: #9ca3af;
}

/* Enhanced terminal panel with more hacker aesthetic */
.terminal-panel {
    border: 1px solid rgba(0, 255, 0, 0.4);
    background: linear-gradient(180deg, rgba(0,20,0,0.95), rgba(0,5,0,0.98));
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.2),
        inset 0 0 20px rgba(0, 255, 0, 0.1),
        0 8px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Add circuit board pattern to terminal */
.terminal-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 255, 0, 0.02) 10px,
            rgba(0, 255, 0, 0.02) 20px
        );
    pointer-events: none;
    z-index: 0;
}

.terminal-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #1f2937;
}

.terminal-nav button,
.terminal-nav .sep {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    font: inherit;
    padding: 0.25rem 0.35rem;
    cursor: pointer;
}

.terminal-nav button:hover {
    color: #ffffff;
    text-decoration: underline;
}

.terminal-window {
    padding: 1rem;
    height: 60vh;
    overflow: auto;
    position: relative;
    font-family: 'Space Mono', monospace;
    text-shadow: 0 0 0.4px rgba(255,255,255,0.2);
}

.terminal-window::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px);
    mix-blend-mode: overlay;
}

.terminal-output .line + .line {
    margin-top: 0.35rem;
}

.prompt {
    color: #a1a1aa;
    margin-right: 0.5rem;
}

.prompt .u { color:#60a5fa; } .prompt .h { color:#f59e0b; } .prompt .p { color:#34d399; }

.terminal-inputline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid #1f2937;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e5e7eb;
    outline: none;
    font: inherit;
    caret-color: #e5e7eb;
}

/* boot status colors (avoid green-on-black cliché; use subtle neutrals) */
.line.ok {
    color: #c7f9cc;
}

.line.wait {
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .terminal-layout { grid-template-columns: 1fr; }
    .terminal-window { height: 50vh; }
}

/* Added for very small screens */
@media (max-width: 400px) {
    .terminal-layout {
        padding: 0 1rem; /* Reduce padding for smaller screens */
    }
    .logo-text, 
    .online-status {
        font-size: 0.85em; /* Make logo and status smaller */
    }
    .nav-link {
        padding: 0.1rem 0.4rem; /* Smaller padding for nav links */
        font-size: 0.85em;
    }
}

/* Enhanced terminal output with more vibrant colors */
.terminal-output .c-green{color:#44ff44;text-shadow:0 0 10px rgba(68,255,68,0.5)}
.terminal-output .c-cyan{color:#44ffff;text-shadow:0 0 10px rgba(68,255,255,0.5)}
.terminal-output .c-yellow{color:#ffff44;text-shadow:0 0 10px rgba(255,255,68,0.5)}
.terminal-output .c-red{color:#ff4444;text-shadow:0 0 10px rgba(255,68,68,0.5)}
.terminal-output .c-magenta{color:#ff44ff;text-shadow:0 0 10px rgba(255,68,255,0.5)}

/* Add flickering effect to terminal text */
.terminal-output .line {
    animation: textFlicker 0.1s infinite;
}

@keyframes textFlicker {
    0% { opacity: 1; }
    50% { opacity: 0.98; }
    100% { opacity: 1; }
}

/* Enhanced drift animation */
@keyframes drift {
    from { 
        background-position: 0 0; 
        transform: translateY(0) scale(1); 
        filter: hue-rotate(0deg);
    }
    to { 
        background-position: 0 1200px; 
        transform: translateY(-30px) scale(1.02); 
        filter: hue-rotate(360deg);
    }
}

/* Neon profile card */
.neon-card {
    background: #070707;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0,255,0,0.12);
    box-shadow: 0 10px 40px rgba(0,255,0,0.06), inset 0 0 30px rgba(0,255,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    position: relative;
    overflow: visible;
}

.avatar-wrap { position: relative; margin-top: 6px; }

.avatar {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(0,0,0,0.6);
    box-shadow: 0 0 18px rgba(0,255,0,0.35), 0 0 6px rgba(0,255,0,0.12) inset;
    background: #0b0b0b;
}

.avatar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 132px;
    height: 132px;
    border-radius: 50%;
    z-index: -1;
    box-shadow: 0 0 26px rgba(0,255,0,0.35);
    border: 2px solid rgba(0,255,0,0.18);
}

/* small status dot near avatar */
.avatar-status {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #071;
    border: 3px solid #0c0c0c;
    box-shadow: 0 0 8px rgba(0,255,0,0.6);
}

.avatar-status::after { content: ''; display:block; width:100%; height:100%; border-radius:inherit; }

/* text */
.neon-meta { text-align: center; padding: 0.6rem 0.4rem; color: #aef9a9; font-family: 'Space Mono', monospace; }
.meta-name { font-size: 1.15rem; letter-spacing: 1px; color: #7aff7a; margin: 0.45rem 0 0.15rem; }
.meta-role { color: #cdeccf; margin: 0 0 0.25rem; font-weight: 600; }
.meta-sub { color: #98f398; font-size: 0.85rem; margin-bottom: 0.6rem; opacity: 0.95; }

/* meta grid rows */
.meta-grid { width: 100%; display: grid; gap: 0.5rem; margin: 0.4rem 0 0.6rem; }
.meta-row { display:flex; justify-content:space-between; align-items:center; padding:0.6rem; border-radius:8px; border:1px solid rgba(0,255,0,0.06); background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.25)); }
.label { color: #9fd99f; font-size:0.9rem; }
.value { color: #dfffd9; font-weight:700; display:flex; align-items:center; gap:0.5rem; }

/* inline dot style for status */
.dot { width:10px; height:10px; border-radius:50%; display:inline-block; background:#444; box-shadow:0 0 6px rgba(0,0,0,0.6); }
.dot.on { background: #25ff55; box-shadow: 0 0 8px rgba(37,255,85,0.7); }

/* tagline and footer */
.tagline { font-size: 0.82rem; color: #8ff18f; opacity: 0.85; margin-top: 0.4rem; }
.card-footer { width:100%; text-align:center; font-size:0.78rem; color:#6fe36f; padding-top:0.4rem; border-top:1px solid rgba(0,255,0,0.04); margin-top:0.6rem; }