:root {
    /* DARK MODE PALETTE */
    --bg-base: #0f0f11; /* Deep Charcoal */
    --bg-gradient: linear-gradient(135deg, #0f0f11 0%, #18181f 100%);
    
    /* SMOKED GLASS (Dark, Transparent) */
    --glass-bg: rgba(30, 32, 40, 0.75); 
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    
    /* TEXT */
    --text-main: #ededed; /* Off-white */
    --text-light: #a0a0a0; /* Silver */
    
    /* ACCENTS */
    --accent-primary: #8b5cf6; /* Violet */
    --accent-secondary: #3b82f6; /* Blue */
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.4); /* Darker shadow */
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-base);
    background-image: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Utility for Monospace Text */
.mono { font-family: 'Space Mono', monospace; font-size: 0.85rem; letter-spacing: -0.5px; }

/* LAYOUT */
.app-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 300px;
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

/* SMOKED GLASS EFFECT */
.glass-card, .glass-panel {
    background: var(--glass-bg);
    /* The blur creates the frosted look */
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    
    /* Subtle border for definition */
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.15); /* Highlight top edge */
    
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover effect for cards */
.project-card:hover, .contact-row:hover, .skill-card:hover {
    border-color: rgba(139, 92, 246, 0.3); /* Purple tint on hover */
    background: rgba(40, 42, 50, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* PROFILE SECTION */
.avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}
.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #48bb78; /* Online Green */
    border: 2px solid var(--bg-base);
    border-radius: 50%;
    box-shadow: 0 0 8px #48bb78;
}

.sidebar h2 { font-weight: 700; font-size: 1.5rem; margin-top: 0.5rem; }
.role { color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; }

.coordinates-box {
    background: rgba(0,0,0,0.2); /* Darker inset */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}
.coord-text { display: flex; flex-direction: column; }
.coord-text strong { font-weight: 500; color: var(--text-main); }
.coord-text small { color: #666; font-size: 0.7rem; }

/* NAV */
.nav-menu { display: flex; flex-direction: column; gap: 0.5rem; margin: 2rem 0; }
.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    padding: 0.8rem;
    border-radius: 8px;
    transition: 0.2s;
    font-weight: 500;
}
.nav-menu a:hover, .nav-menu a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left: 3px solid var(--accent-primary);
    padding-left: 1.2rem; /* Slight shift */
}

.social-links { display: flex; gap: 1rem; font-size: 0.8rem; }
.social-links a { text-decoration: none; color: var(--text-light); border-bottom: 1px dotted #555; }
.social-links a:hover { color: #fff; border-color: #fff; }

/* --- MAIN CONTENT --- */
.content-area { flex: 1; padding-bottom: 4rem; }
section { margin-bottom: 3rem; scroll-margin-top: 2rem; }

.section-title {
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* HERO */
.intro-panel { padding: 3rem; position: relative; overflow: hidden; }
.hologram-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.badge {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa; /* Light Purple */
    padding: 4px 8px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
}

.intro-panel h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1px; }
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
}

.bio-wrapper { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2.5rem; min-height: 60px; font-weight: 300; }
.cursor { animation: blink 1s infinite; color: var(--accent-secondary); }

/* STATS */
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat-pill {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    transition: 0.3s;
}
.stat-pill:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.stat-pill .label { font-size: 0.6rem; color: #666; margin-bottom: 4px; }
.stat-pill .val { font-size: 1.2rem; font-weight: bold; color: #fff; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-weight: 500; color: #ccc; }
.progress-track {
    background: rgba(255,255,255,0.05); /* Dark track */
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* PROJECTS */
.projects-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.p-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.p-header h4 { font-size: 1.1rem; color: #fff; }
.tag { font-size: 0.7rem; background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; color: #aaa; }
.project-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.5; }
.tech-stack { font-size: 0.75rem; color: #a78bfa; }

/* TIMELINE */
.timeline-box { padding: 0; }
.timeline-item {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}
.timeline-item:last-child { border-bottom: none; }
.time { width: 120px; color: #666; font-size: 0.8rem; padding-top: 4px; flex-shrink: 0; }
.event h5 { margin-bottom: 0.3rem; color: #fff; }
.event p { font-size: 0.9rem; color: var(--text-light); }

/* CONTACT */
.contact-panel { text-align: center; }
.contact-panel h3 { margin-bottom: 2rem; color: #fff; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; margin: 0 auto; }
.contact-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}
.contact-row .label { color: #666; }
.contact-row .value { font-weight: 500; color: #fff; }

footer { text-align: center; padding: 2rem; color: #555; font-size: 0.7rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .app-container { flex-direction: column; padding: 1rem; }
    .sidebar { width: 100%; height: auto; position: relative; top: 0; z-index: 1; }
    .intro-panel h1 { font-size: 2.5rem; }
    .timeline-item { flex-direction: column; }
    .time { margin-bottom: 0.5rem; }
}

@keyframes blink { 50% { opacity: 0; } }
